Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tsuru/prometheus-conntrack
Expose conntrack metrics to prometheus
https://github.com/tsuru/prometheus-conntrack
conntrack docker kubelet metrics prometheus
Last synced: 10 days ago
JSON representation
Expose conntrack metrics to prometheus
- Host: GitHub
- URL: https://github.com/tsuru/prometheus-conntrack
- Owner: tsuru
- License: bsd-3-clause
- Created: 2016-12-02T17:45:08.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-06-21T18:09:28.000Z (over 1 year ago)
- Last Synced: 2024-08-01T19:38:24.089Z (3 months ago)
- Topics: conntrack, docker, kubelet, metrics, prometheus
- Language: Go
- Size: 8.77 MB
- Stars: 11
- Watchers: 8
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Prometheus Conntrack Metrics
============================[![Build Status](https://travis-ci.org/tsuru/prometheus-conntrack.png?branch=master)](https://travis-ci.org/tsuru/prometheus-conntrack)
`prometheus-conntrack` exposes [conntrack](http://conntrack-tools.netfilter.org/) metrics for docker containers or kubelet pods.
For example, the series `conntrack_workload_connections{destination="192.168.50.4:2375",container="my-container",protocol="TCP",state="ESTABLISHED"} 2` means that the container "my-container" has two connections established with tcp://192.168.50.4:2375.
You can run `prometheus-conntrack` in a container or run the binary directly.
Docker Usage
--------------```
$ go get github.com/tsuru/prometheus-conntrack
$ prometheus-conntrack --listen-address :8080 --docker-endpoint unix:///var/run/docker.sock
````prometheus-conntrack` will fetch running containers from the `--docker-endpoint` and
expose their outbound connections on `:8080/metrics`.Kubelet Usage
---------------```
$ go get github.com/tsuru/prometheus-conntrack
$ prometheus-conntrack -engine kubelet --listen-address :8080
````prometheus-conntrack` will fetch running pods from the local kubelet