Graphite mappings for graphite-exporter not working?

793 views
Skip to first unread message

joh...@digitalis.io

unread,
May 17, 2016, 7:23:07 AM5/17/16
to Prometheus Developers
Hi,

I am having difficulty getting the mappings working for the graphite exporter and was wondering if anyone has some additional examples as following the ones on the github repo and in the tests dont seem to work.

For example with this metric

# HELP _jvm_uptime Graphite metric .jvm.uptime
# TYPE _jvm_uptime gauge
_jvm_uptime 526

No matter what I try, I cant catch it and transform. Its probably my error as it seems a pretty fundamental issue. The config file is definitely getting picked up (as it fails when the syntax is invalid).

I have even tried using the catch all thats in the project tests:

*.*
name="catchall"
first="$1"
second="$2"
third="$3"
job="$1-$2-$3"

jvm.*
name="jvm"
type="$1"


jvm.uptime
name="jvm_uptime"
type="$1"


Any help is appreciated, even if that help is that someone is actually using this and it does work would be good.

Thanks,

Johnny

Julius Volz

unread,
May 28, 2016, 11:06:48 PM5/28/16
to Johnny Miller, Prometheus Developers
I think the reason would be that the regex that matches Graphite metrics does not allow for empty segments between dots (as ".jvm.uptime" has a leading empty segment):


Is that even a valid Graphite metric name?

--

Any views or opinions presented are solely those of the author and do not necessarily represent those of the company. digitalis.io is a trading name of Digitalis.io Ltd. Company Number: 98499457 Registered in England and Wales. Registered Office: Kemp House, 152 City Road, London, EC1V 2NX, United Kingddom

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

Reply all
Reply to author
Forward
0 new messages