Config file Syntax

78 views
Skip to first unread message

scott...@gmail.com

unread,
Nov 19, 2017, 3:29:59 PM11/19/17
to Prometheus Users

I've got a Prometheus instance running in a docker container, and I want to turn the __meta_ec2_tag_Name into a label that I can query on Grafana (preferably not using the 'instance' label but maybe something like 'cluster'). This configuration worked until I added the chunk that begins with the line: " -source_labels: [__meta_ec2_tag_Name]". 

However, now my docker container will not even launch. Can someone give me a tip or an example of how I might create a label with the __meta_ec2_tag_Name value as a new label?

Brian Brazil

unread,
Nov 19, 2017, 3:33:15 PM11/19/17
to Scott, Prometheus Users
The indentation is off by one space, try indenting those 4 lines.

--

scott...@gmail.com

unread,
Nov 19, 2017, 3:41:14 PM11/19/17
to Prometheus Users
I fixed that but I still can't get the Prometheus docker to start unless I remove them completely. Could it be something else?

Nicholas Capo

unread,
Nov 19, 2017, 6:33:38 PM11/19/17
to scott...@gmail.com, Prometheus Users

Are there any error logs from the Prometheus process?

Nicholas


--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/bb4662d1-357d-4c78-b364-4dc61991425f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

scott...@gmail.com

unread,
Nov 19, 2017, 9:08:08 PM11/19/17
to Prometheus Users
Unfortunately it won't even create the docker container, so I can't even see the logs.

Matt Palmer

unread,
Nov 20, 2017, 12:27:53 AM11/20/17
to promethe...@googlegroups.com

On Sun, Nov 19, 2017 at 06:08:08PM -0800, scott...@gmail.com wrote:
> Unfortunately it won't even create the docker container, so I can't even
> see the logs.

That's not a Prometheus problem then, it's a Docker problem. Usually
dockerd logs useful(ish) information, so check the dockerd logs.

- Matt

Reply all
Reply to author
Forward
0 new messages