Consul Exporter - How to get host IP or FQDN

132 views
Skip to first unread message

Ashish Jain

unread,
Nov 28, 2016, 1:11:43 AM11/28/16
to Prometheus Developers
Hello,

I am running a consul exporter and currently I see the following

consul_catalog_service_node_healthy{node="consul1",service="consul"} 1
consul_catalog_service_node_healthy{node="consul4",service="gapi"} 1
consul_catalog_service_node_healthy{node="consul4",service="webserver"} 1
consul_catalog_service_node_healthy{node="testhost",service="node_name"} 1

Value for "node" key is the hostname, is it possible to get say IP or FQDN of the host?

Regards
Ashish

Ben Kochie

unread,
Nov 28, 2016, 3:07:45 AM11/28/16
to Ashish Jain, Prometheus Developers
This is provided by the consul_sd_config meta labels at discovery time.


Also, please take support requests to the prometheus-users list.

--
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/dd1888e4-e122-4555-b82a-2cd6237f53c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ashish Jain

unread,
Nov 28, 2016, 4:26:00 AM11/28/16
to Prometheus Developers, jain.a...@gmail.com
Moved the discussion to user list as suggested. But I still need your help.


On Monday, 28 November 2016 08:07:45 UTC, Ben Kochie wrote:
This is provided by the consul_sd_config meta labels at discovery time.


Also, please take support requests to the prometheus-users list.
On Mon, Nov 28, 2016 at 7:11 AM, Ashish Jain <jain.a...@gmail.com> wrote:
Hello,

I am running a consul exporter and currently I see the following

consul_catalog_service_node_healthy{node="consul1",service="consul"} 1
consul_catalog_service_node_healthy{node="consul4",service="gapi"} 1
consul_catalog_service_node_healthy{node="consul4",service="webserver"} 1
consul_catalog_service_node_healthy{node="testhost",service="node_name"} 1

Value for "node" key is the hostname, is it possible to get say IP or FQDN of the host?

Regards
Ashish

--
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...@googlegroups.com.

Sambi Reddy

unread,
Oct 14, 2019, 11:48:55 AM10/14/19
to Prometheus Developers
How do you define consul key values in prometheus config, I tried multiple ways to ship consul key values to prometheus using below documentation but all of them failed


On Monday, November 28, 2016 at 3:07:45 AM UTC-5, Ben Kochie wrote:
This is provided by the consul_sd_config meta labels at discovery time.


Also, please take support requests to the prometheus-users list.
On Mon, Nov 28, 2016 at 7:11 AM, Ashish Jain <jain.a...@gmail.com> wrote:
Hello,

I am running a consul exporter and currently I see the following

consul_catalog_service_node_healthy{node="consul1",service="consul"} 1
consul_catalog_service_node_healthy{node="consul4",service="gapi"} 1
consul_catalog_service_node_healthy{node="consul4",service="webserver"} 1
consul_catalog_service_node_healthy{node="testhost",service="node_name"} 1

Value for "node" key is the hostname, is it possible to get say IP or FQDN of the host?

Regards
Ashish

--
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...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages