No project description provided
Project description
CGroups exporter
Exporter for CGroups metrics, for LXD/Docker/systemd.
Installation
pip install cgroups-exporter
cgroups-exporter --cgroups-path "/sys/fs/cgroup/*/lxc.payload.*"
Usage
Args that start with --
(eg. -s) can also be set in a config file
(~/.cgroups-exporter.conf
or /etc/cgroups-exporter.conf
).
Config file syntax allows: key=value
, flag=true
, stuff=[a,b,c]
(for details, see syntax here).
If an arg is specified in more than one place, then commandline values override environment variables which override config file values which override defaults.
usage: cgroups-exporter [-h]
[-s POOL_SIZE]
[-u USER]
[--log-level {debug,info,warning,error,fatal}]
[--log-format {stream,color,json,syslog}]
[--metrics-address METRICS_ADDRESS]
[--metrics-port METRICS_PORT]
--cgroups-path CGROUPS_PATH [CGROUPS_PATH ...]
[--collector-interval COLLECTOR_INTERVAL]
[--collector-delay COLLECTOR_DELAY]
[--collector-workers COLLECTOR_WORKERS]
[--profiler]
[--profiler-interval PROFILER_INTERVAL]
[--profiler-top-results PROFILER_TOP_RESULTS]
[--memory-tracer]
[--memory-tracer-interval MEMORY_TRACER_INTERVAL]
[--memory-tracer-top-results MEMORY_TRACER_TOP_RESULTS]
optional arguments:
-h, --help show this help message and exit
-s POOL_SIZE, --pool-size POOL_SIZE
Thread pool size [env var: CGROUPS_EXPORTER_POOL_SIZE] (default: 4)
-u USER, --user USER Change process UID [env var: CGROUPS_EXPORTER_USER] (default: None)
Logging options:
--log-level {debug,info,warning,error,fatal}
[env var: CGROUPS_EXPORTER_LOG_LEVEL] (default: info)
--log-format {stream,color,json,syslog}
[env var: CGROUPS_EXPORTER_LOG_FORMAT] (default: color)
Metrics API options:
--metrics-address METRICS_ADDRESS
[env var: CGROUPS_EXPORTER_METRICS_ADDRESS] (default: ::)
--metrics-port METRICS_PORT
[env var: CGROUPS_EXPORTER_METRICS_PORT] (default: 9735)
Cgroups options:
--cgroups-path CGROUPS_PATH [CGROUPS_PATH ...]
[env var: CGROUPS_EXPORTER_CGROUPS_PATH] (default: None)
--collector-interval COLLECTOR_INTERVAL
[env var: CGROUPS_EXPORTER_COLLECTOR_INTERVAL] (default: 15.0)
--collector-delay COLLECTOR_DELAY
[env var: CGROUPS_EXPORTER_COLLECTOR_DELAY] (default: 2.0)
--collector-workers COLLECTOR_WORKERS
[env var: CGROUPS_EXPORTER_COLLECTOR_WORKERS] (default: 4)
Profiler settings:
--profiler [env var: CGROUPS_EXPORTER_PROFILER] (default: False)
--profiler-interval PROFILER_INTERVAL
[env var: CGROUPS_EXPORTER_PROFILER_INTERVAL] (default: 5)
--profiler-top-results PROFILER_TOP_RESULTS
[env var: CGROUPS_EXPORTER_PROFILER_TOP_RESULTS] (default: 20)
Memory tracer settings:
--memory-tracer [env var: CGROUPS_EXPORTER_MEMORY_TRACER] (default: False)
--memory-tracer-interval MEMORY_TRACER_INTERVAL
[env var: CGROUPS_EXPORTER_MEMORY_TRACER_INTERVAL] (default: 5)
--memory-tracer-top-results MEMORY_TRACER_TOP_RESULTS
[env var: CGROUPS_EXPORTER_MEMORY_TRACER_TOP_RESULTS] (default: 20)
Metrics
cgroups_exporter_calls_collector_total
- Exporter collector run countercgroups_exporter_calls_collector_created
- Exporter collector run countercgroups_exporter_collect_time_collector
- Exporter collector execution timecgroups_exporter_collect_time_collector_created
- Exporter collector execution timecgroups_memory_usage_kmem_max
- Maximum kernel memory usagecgroups_memory_usage_kmem_tcp
- Kernel TCP memory usagecgroups_memory_usage_kmem
- Maximum kernel TCP maximum memory usagecgroups_memory_usage_max
- Maximum memory usagecgroups_memory_usage
- Memory usagecgroups_memory_limit_kmem
- Memory kernel limitcgroups_memory_limit_kmem_tcp
- Kernel TCP memory limitcgroups_memory_limit
- Memory limitcgroups_memory_limit_soft
- Soft limitcgroups_memory_stat_cache
- memory statisticcgroups_memory_stat_rss
- memory statisticcgroups_memory_stat_rss_huge
- memory statisticcgroups_memory_stat_shmem
- memory statisticcgroups_memory_stat_mapped_file
- memory statisticcgroups_memory_stat_dirty
- memory statisticcgroups_memory_stat_writeback
- memory statisticcgroups_memory_stat_pgpgin
- memory statisticcgroups_memory_stat_pgpgout
- memory statisticcgroups_memory_stat_pgfault
- memory statisticcgroups_memory_stat_pgmajfault
- memory statisticcgroups_memory_stat_inactive_anon
- memory statisticcgroups_memory_stat_active_anon
- memory statisticcgroups_memory_stat_inactive_file
- memory statisticcgroups_memory_stat_active_file
- memory statisticcgroups_memory_stat_unevictable
- memory statisticcgroups_memory_stat_hierarchical_memory_limit
- memory statisticcgroups_memory_stat_total_cache
- memory statisticcgroups_memory_stat_total_rss
- memory statisticcgroups_memory_stat_total_rss_huge
- memory statisticcgroups_memory_stat_total_shmem
- memory statisticcgroups_memory_stat_total_mapped_file
- memory statisticcgroups_memory_stat_total_dirty
- memory statisticcgroups_memory_stat_total_writeback
- memory statisticcgroups_memory_stat_total_pgpgin
- memory statisticcgroups_memory_stat_total_pgpgout
- memory statisticcgroups_memory_stat_total_pgfault
- memory statisticcgroups_memory_stat_total_pgmajfault
- memory statisticcgroups_memory_stat_total_inactive_anon
- memory statisticcgroups_memory_stat_total_active_anon
- memory statisticcgroups_memory_stat_total_inactive_file
- memory statisticcgroups_memory_stat_total_active_file
- memory statisticcgroups_memory_stat_total_unevictable
- memory statisticcgroups_blkio_bfq_service_bytes_read
- BlockIO service bytescgroups_blkio_bfq_service_bytes_write
- BlockIO service bytescgroups_blkio_bfq_service_bytes_sync
- BlockIO service bytescgroups_blkio_bfq_service_bytes_async
- BlockIO service bytescgroups_blkio_bfq_service_bytes_discard
- BlockIO service bytescgroups_blkio_bfq_service_bytes_total
- BlockIO service bytescgroups_blkio_bfq_service_bytes_recursive_total
- BlockIO service bytes recursivecgroups_blkio_bfq_serviced_total
- BlockIO serviced bytescgroups_blkio_bfq_serviced_recursive_total
- BlockIO serviced bytes recursivecgroups_blkio_throttle_service_bytes_total
- BlockIO service bytescgroups_blkio_throttle_service_bytes_recursive_total
- BlockIO throttle serviced bytescgroups_blkio_throttle_serviced_total
- BlockIO serviced bytescgroups_blkio_bfq_service_bytes_recursive_read
- BlockIO service bytes recursivecgroups_blkio_bfq_service_bytes_recursive_write
- BlockIO service bytes recursivecgroups_blkio_bfq_service_bytes_recursive_sync
- BlockIO service bytes recursivecgroups_blkio_bfq_service_bytes_recursive_async
- BlockIO service bytes recursivecgroups_blkio_bfq_service_bytes_recursive_discard
- BlockIO service bytes recursivecgroups_blkio_throttle_serviced_recursive_total
- BlockIO serviced bytes recursivecgroups_blkio_bfq_serviced_read
- BlockIO serviced bytescgroups_blkio_bfq_serviced_write
- BlockIO serviced bytescgroups_blkio_bfq_serviced_sync
- BlockIO serviced bytescgroups_blkio_bfq_serviced_async
- BlockIO serviced bytescgroups_blkio_bfq_serviced_discard
- BlockIO serviced bytescgroups_blkio_bfq_serviced_recursive_read
- BlockIO serviced bytes recursivecgroups_blkio_bfq_serviced_recursive_write
- BlockIO serviced bytes recursivecgroups_blkio_bfq_serviced_recursive_sync
- BlockIO serviced bytes recursivecgroups_blkio_bfq_serviced_recursive_async
- BlockIO serviced bytes recursivecgroups_blkio_bfq_serviced_recursive_discard
- BlockIO serviced bytes recursivecgroups_blkio_throttle_service_bytes_read
- BlockIO service bytescgroups_blkio_throttle_service_bytes_write
- BlockIO service bytescgroups_blkio_throttle_service_bytes_sync
- BlockIO service bytescgroups_blkio_throttle_service_bytes_async
- BlockIO service bytescgroups_blkio_throttle_service_bytes_discard
- BlockIO service bytescgroups_blkio_throttle_service_bytes_recursive_read
- BlockIO throttle serviced bytescgroups_blkio_throttle_service_bytes_recursive_write
- BlockIO throttle serviced bytescgroups_blkio_throttle_service_bytes_recursive_sync
- BlockIO throttle serviced bytescgroups_blkio_throttle_service_bytes_recursive_async
- BlockIO throttle serviced bytescgroups_blkio_throttle_service_bytes_recursive_discard
- BlockIO throttle serviced bytescgroups_blkio_throttle_serviced_read
- BlockIO serviced bytescgroups_blkio_throttle_serviced_write
- BlockIO serviced bytescgroups_blkio_throttle_serviced_sync
- BlockIO serviced bytescgroups_blkio_throttle_serviced_async
- BlockIO serviced bytescgroups_blkio_throttle_serviced_discard
- BlockIO serviced bytescgroups_blkio_throttle_serviced_recursive_read
- BlockIO serviced bytes recursivecgroups_blkio_throttle_serviced_recursive_write
- BlockIO serviced bytes recursivecgroups_blkio_throttle_serviced_recursive_sync
- BlockIO serviced bytes recursivecgroups_blkio_throttle_serviced_recursive_async
- BlockIO serviced bytes recursivecgroups_blkio_throttle_serviced_recursive_discard
- BlockIO serviced bytes recursive
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file cgroups-exporter-0.1.1.tar.gz
.
File metadata
- Download URL: cgroups-exporter-0.1.1.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38015e6feb11fdf33ea8aff64697979ca56876121faea632e2b46c4f76e47cd4 |
|
MD5 | e3e69d395e0ee5b28fa148ed3bb90e5d |
|
BLAKE2b-256 | 89a1e9ddaba3d348855aa63c7541b318bb8de1248582deddf37ceb8203329fb1 |