metal-scrapper is a tool to collect machine metrics and flush it to clickhouse. To run docker container execute:
docker run -d --name metal \
-v /proc:/hostproc \
-v /docker-data/metal_config.yml:/metal-config.yml \
-e CONFIG=/metal-config.yml \
mrandersen7/metal:1.5This will volume your configuration file and use it to run the daemon. Example config is located in example.yml
proc_locaton- where linux proc directory located (volumed)hostname- hostname of machine which will be inserted into CHverbosity- verbosity of log output (2 - all, 1 - partly, 0 - none)buffer.flush_period- flush period in msclickhouse- section for clickhouse connection.collector_memory.period- for each collector - u can specify aggregation interval in ms, for full name list - see example.yml
After program will be launched - it will create 2 tables to store float and string metric values separated in your clickhouse connection in default database, after that u can aggregate them via grafana, or any other tools
metal_scrapper_current_rss_bytes- current memory usage for metal-scrappercpu_load_1- load average 1 mincpu_load_5- load average 5 mincpu_load_15- load average 15 mincpu_ps_count- current process counthdd_total_bytes- total bytes at/filesystemhdd_free_bytes- free bytes at/filesystemmemory_total_bytes- total bytes of memorymemory_free_bytes- available bytes of memory