Hands-on task
This task is step 4 of the course “Monitoring and metrics”
Memory from /proc/meminfo
Write /usr/local/bin/memfree that takes MemAvailable from /proc/meminfo (in kilobytes) and prints the metric node_memory_available_kb <value>. Output goes to /root/mem.prom.
Reference:awk
What you'll practise:
- prometheus
- /proc/meminfo
- awk
- metrics
- parsing