I think this is very useful for in some cases, you don't know what you've collected from the job. And currently prometheu don't support query metrics names by labels. You may ofthen got very greedy metric name like "jvm_memory_...". Only when you query it then you can tell it may just be jvm info of a small application.
--
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-developers+unsub...@googlegroups.com.
To post to this group, send email to prometheus-developers@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/84f1c5ea-2241-4bc1-b020-3c961e9ef0b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This can be done with metric_relabel_configs.
Add this to the job:
metric_relabel_configs:
- source_labels: [__name__]target_label: __name__replacement: "prefix_${1}"
On Sun, Aug 13, 2017 at 10:32 PM, <keh...@gmail.com> wrote:
Hi,
Is it possible for Prometheus to support a [prefix:<string>] filed in <scrape_config>.
So that the names of the metrics collected from this scrape job will have a prefix. I got the idea from the netdata prometheus API, where you can set prefix=netdata_ in url params and then you got data looks like
netdata_aa_aa
netdata_aa_bb
I think this is very useful for in some cases, you don't know what you've collected from the job. And currently prometheu don't support query metrics names by labels. You may ofthen got very greedy metric name like "jvm_memory_...". Only when you query it then you can tell it may just be jvm info of a small application.
--
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-developers+unsubscri...@googlegroups.com.
To post to this group, send email to prometheus-developers@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/84f1c5ea-2241-4bc1-b020-3c961e9ef0b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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-developers+unsub...@googlegroups.com.
To post to this group, send email to prometheus-developers@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/CABbyFmpn2FZwgT6vKAGZaj1uAh8EVjBVmw4gWV%2Bbz7G%2BX4ZRCg%40mail.gmail.com.