prometheus-conntrack

command module
v0.0.0-...-0631643 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2023 License: BSD-3-Clause Imports: 12 Imported by: 0

README

Prometheus Conntrack Metrics

Build Status

prometheus-conntrack exposes conntrack 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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL