Skip to content

Place the node role as a label value #207

@jorgelbg

Description

@jorgelbg

I'm opening this issue to discuss if this change would make sense

At the moment the role of each server in the cluster is stored in a label with a true/false value:

metric_name{cluster="cluster1",es_client_node="true",es_data_node="false",
es_ingest_node="false", es_master_node="true",...}

This provides the ability to filter by a given role in the cluster, but it's not very friendly to dashboard solutions.

Having the role as the value of a label (...,role="client",...) could be easier to integrate into some dashboarding solutions. For instance, on Grafana, this value could be fetched from the metric with the label_values(metric, label) function. This would allow using the "values group" feature.

So far the alternative that I've found for this is to accomplish this using relabeling. If the feature is welcomed I can submit a PR.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions