In general, the dashboard should allow using just a specific label,
for example in Grafana, use
{{name}}
as the Legend format.
To "remove" one or more labels in a query, you need to aggregate over
them as appropriate, see
https://prometheus.io/docs/querying/operators/#aggregation-operators
for the options.
Finally, you can use metric relabelling to remove or manipulate labels
at collection time:
https://prometheus.io/docs/operating/configuration/#<metric_relabel_config>
but this should not be necessary if you want what I think you want.
/MR
On Thu, Jun 30, 2016 at 6:31 PM, Marco Pas <
marco....@gmail.com> wrote:
> When trying to query Prometheus for example using
> 'container_memory_usage_bytes' the label that is returned for a graph,
> contains a lot of data that is used as the label for the graph. I would like
> to use the Docker Container name as a label to use in the graph. Is there a
> way to set the label for the returned dataseries?
>
> - Marco
>
> --
> You received this message because you are subscribed to the Google Groups
> "Prometheus Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
prometheus-devel...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.
--
Matthias Rampke
Engineer
SoundCloud Ltd. | Rheinsberger Str. 76/77, 10115 Berlin, Germany | +49
173 6395215
Managing Director: Alexander Ljung | Incorporated in England & Wales
with Company No. 6343600 | Local Branch Office | AG Charlottenburg |
HRB 110657B