consul_exporter icon indicating copy to clipboard operation
consul_exporter copied to clipboard

consul-exporter is not exposing full metrics

Open hanumank8 opened this issue 4 months ago • 0 comments

I am using consul_exporter in ec2 vm instance, consul_exporter-0.11.0.linux-amd64, Noticed that we are not getting all metrics and the following metrics only showing in Prometheus. Furthermore, consul_up gives 1.

consul_raft_peers consul_serf_lan_members consul_catalog_services consul_catalog_service_node_healthy consul_health_node_status consul_health_service_status

I am running

systemctl status consul_exporter.service ● consul_exporter.service - Consul Exporter Loaded: loaded (/etc/systemd/system/consul_exporter.service; enabled; vendor preset: disabled) Active: active (running) since Thu 2024-02-15 09:28:25 UTC; 13min ago Main PID: 11770 (consul_exporter) CGroup: /system.slice/consul_exporter.service └─11770 /usr/local/bin/consul_exporter

Feb 15 09:28:25 xxx.net systemd[1]: Started Consul Exporter. Feb 15 09:28:25 xxxx.net consul_exporter[11770]: ts=2024-02-15T09:28:25.863Z caller=consul_exporter.go:82 level=info msg="Starting consul_exporter" vers...8160ee8)" Feb 15 09:28:25 xxx.net consul_exporter[11770]: ts=2024-02-15T09:28:25.863Z caller=consul_exporter.go:83 level=info build_context="(go=go1.21.5, platfo...unknown)" Feb 15 09:28:25 xxx.net consul_exporter[11770]: ts=2024-02-15T09:28:25.863Z caller=tls_config.go:274 level=info msg="Listening on" address=[::]:9107 Feb 15 09:28:25 xxx.net consul_exporter[11770]: ts=2024-02-15T09:28:25.863Z caller=tls_config.go:277 level=info msg="TLS is disabled." http2=false addr...[::]:9107

in Prometheus I have belowconfig

  • job_name: 'consul_exporter' scrape_interval: 5s static_configs:
    • targets: ['11.0.0.1:9107']

in Prometheus targets http://11.0.0.1:9107:9107/metrics not working. Can you help me know on this once? to get all metrics.

Thanks, .....

hanumank8 avatar Feb 15 '24 09:02 hanumank8