--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/bda5506a-3139-493a-a8f5-bb21b09b4324%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
It looks like you're using matching to get the metric names instead of using the actual metric name like this:apcupsd_voltage{instance="isoflurane"}This is probably why you're having issues.It also looks like your instances names are missing fqdn:port as is recommended.
On Wed, Jun 28, 2017 at 2:58 AM, <efa...@gmail.com> wrote:
Hey,So I am trying to query multiple metrics at once. I am using {__name__=~"apcupsd.+voltage.+",instance="isoflurane"} to query a bunch of voltages from my UPS via netdata. The issue is that the voltages are mV and I need them in V. So I tried to just do {__name__=~"apcupsd.+voltage.+",instance="isoflurane"} / 100 .... but when I do that the result of the query seems to loose all of the metric names..... Am I doing something wrong?-Eric
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
Grafana usually handles the unit conversions for me.
For example if I graph a _seconds metric I will set the Grafana axis unit to seconds. Grafana will then display it in minutes/hours/day/etc depending on the value.
I have a feeling you can just set the unit to mV and Grafana will do the rest.
Nicholas
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/e991dca2-5e19-4886-8a4e-d37228ebac26%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/e991dca2-5e19-4886-8a4e-d37228ebac26%40googlegroups.com.
Right, but I'm wondering what is between those asterisks that is causing you to have to do it this way. What I'm getting at is you possibly have a metric name / labeling issue that can be fixed, completely eliminating the root cause of the problem.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CABbyFmo6UeRKPi%3D2Mwmj2OSGNDZMQg1ys3RTCRFcUmhtw%3DoT5w%40mail.gmail.com.
Thanks for the information. That's definately the problem. These metrics come from NetData so I don't have a lot of control over them.-Eric
-Eric
You received this message because you are subscribed to a topic in the Google Groups "Prometheus Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/prometheus-users/fOGpOd97tAo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CABbyFmrpkjx%3D0ZZU2F%2BqN8YGkvbaFQKaeOKXYcEM_xqxtafgag%40mail.gmail.com.
These are being directly exported via NetData. See: https://github.com/firehol/netdata/wiki/Using-Netdata-with-PrometheusBasically in my setup I have a single NetData instance which gathers data from 3 other computers. NetData exports the metrics via the URLhttp://{ip_of_vm}:19999/api/v1/allmetrics?format=prometheus_all_hostsI can easily fix the instance name not being fully qualified since that is just whatever I set the netdata hostname to.I have little control over the names themselves. And actually looking through the rest of the metrics via netdata it seems that most, if not all, don't really utilize labels correctly and instead have metric names e.g.system_cpu_cpu0 instead of system_cpu(cpu="cpu0")I posted on the netdata github and am actually looking into their base to see if I could modify their code to give better labels/names.Relabeling would be difficult due to the number of metrics and the fact that they don't have a format that would be "easily" regexed.
Yeah. I think I may convert over and use that. And then use NetData and relabel just the ones I need.-Eric
-Eric