Hands-on task
This task is step 5 of the course “Monitoring and metrics”
Process Count as a Metric
Write /usr/local/bin/procmetric that counts the total number of processes in the system and prints the metric node_processes_total <value>. Output goes to /root/proc.prom.
What you'll practise:
- monitoring
- prometheus-metrics
- process counting
- /proc
- ps