hiveco / conntrack_exporter

Prometheus exporter for tracking network connections
Apache License 2.0
136 stars 15 forks source link

Sometimes failed to get metric #3

Closed feli5 closed 1 year ago

feli5 commented 5 years ago

Below is the entire output of the exporter

# HELP exposer_bytes_transferred bytesTransferred to metrics services
# TYPE exposer_bytes_transferred counter
exposer_bytes_transferred 165825104.000000
# HELP exposer_total_scrapes Number of times metrics were scraped
# TYPE exposer_total_scrapes counter
exposer_total_scrapes 961.000000
# HELP exposer_request_latencies Latencies of serving scrape requests, in milliseconds
# TYPE exposer_request_latencies histogram
exposer_request_latencies_count 961
exposer_request_latencies_sum 28441.000000
exposer_request_latencies_bucket{le="1.000000"} 633
exposer_request_latencies_bucket{le="5.000000"} 639
exposer_request_latencies_bucket{le="10.000000"} 651
exposer_request_latencies_bucket{le="20.000000"} 696
exposer_request_latencies_bucket{le="40.000000"} 772
exposer_request_latencies_bucket{le="80.000000"} 837
exposer_request_latencies_bucket{le="160.000000"} 933
exposer_request_latencies_bucket{le="320.000000"} 959
exposer_request_latencies_bucket{le="640.000000"} 959
exposer_request_latencies_bucket{le="1280.000000"} 959
exposer_request_latencies_bucket{le="2560.000000"} 959
exposer_request_latencies_bucket{le="+Inf"} 961
dbendelman commented 5 years ago

I'm guessing you ran it under docker? Which version of docker & conntrack_exporter and what was your commandline?

@feli5 please provide a sample of output from:

$ docker pull hiveco/conntrack_exporter
$ docker run --rm -it --cap-add=NET_ADMIN --net=host --name=conntrack_exporter hiveco/conntrack_exporter -d

As well the what the /metrics endpoint shows for the above.