Unknown Function label_values?

2,128 views
Skip to first unread message

dshi...@vt.edu

unread,
Mar 15, 2018, 9:36:39 AM3/15/18
to Prometheus Users
I've just started my migration to Prometheus 2+ and have run into my first issue.  It seems that label_value functions that I was using before no longer work.  When checking this out in the Prometheus graph view, it gives me a "Error executing query: parse error at char 13: unknown function with name "label_values"".  Is this true?  Did this function get removed?  I can't seem to find any documentation on it on the Prometheus site and am just following the documentation I found on Grafana (http://docs.grafana.org/features/datasources/prometheus/).

My current version of Prometheus:



And proof of my error:



Brian Brazil

unread,
Mar 15, 2018, 9:37:37 AM3/15/18
to Daniel Shiplett, Prometheus Users
On 15 March 2018 at 13:36, <dshi...@vt.edu> wrote:
I've just started my migration to Prometheus 2+ and have run into my first issue.  It seems that label_value functions that I was using before no longer work.  When checking this out in the Prometheus graph view, it gives me a "Error executing query: parse error at char 13: unknown function with name "label_values"".  Is this true?  Did this function get removed?  I can't seem to find any documentation on it on the Prometheus site and am just following the documentation I found on Grafana (http://docs.grafana.org/features/datasources/prometheus/).

label_values is a feature of Grafana templating, not Prometheus.

Brian
 

My current version of Prometheus:



And proof of my error:



--
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/c20c834a-1324-4823-ab1e-45d7390c1bf0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

dshi...@vt.edu

unread,
Mar 15, 2018, 9:47:49 AM3/15/18
to Prometheus Users
Welp.  That explains why I couldn't find Prometheus docs about it!

Thanks Brian!


On Thursday, March 15, 2018 at 9:37:37 AM UTC-4, Brian Brazil wrote:
On 15 March 2018 at 13:36, <dshi...@vt.edu> wrote:
I've just started my migration to Prometheus 2+ and have run into my first issue.  It seems that label_value functions that I was using before no longer work.  When checking this out in the Prometheus graph view, it gives me a "Error executing query: parse error at char 13: unknown function with name "label_values"".  Is this true?  Did this function get removed?  I can't seem to find any documentation on it on the Prometheus site and am just following the documentation I found on Grafana (http://docs.grafana.org/features/datasources/prometheus/).

label_values is a feature of Grafana templating, not Prometheus.

Brian
 

My current version of Prometheus:



And proof of my error:



--
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.



--
Reply all
Reply to author
Forward
0 new messages