Skip to content

Lightweight Prometheus exporter for Linux containers/cgroups.

License

Notifications You must be signed in to change notification settings

jcmoraisjr/container-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Container Exporter

Lightweight Prometheus exporter for Linux containers/cgroups.

Container Exporter collects metrics from within a Linux container. Useful to scrape container metrics without read access to host metrics. If you have host access or at least to its metrics, you should consider cadvisor instead.

Usage

Copy, chmod +x and run container-exporter as a daemon before start the main process. The default listening port is 9009, change the default port with the optional -b :8000 command-line argument.

Metrics

The following metrics are available:

Name Description
container_memory_usage_bytes Current memory usage in bytes
container_cpu_usage_seconds_total Cumulative CPU time consumed in seconds
container_network_transmit_bytes_total Cumulative count of bytes transmitted
container_network_receive_bytes_total Cumulative count of bytes received

CPU and network metrics are counters and might be used with rate() to calculate per-second average rate.

About

Lightweight Prometheus exporter for Linux containers/cgroups.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published