Commit 8fe3f967 authored by tec's avatar tec

Add a template for simple monitoring

parent b8014c0b
#!/bin/bash
#
# {{item.description | default('')}}
#
# Usage: add this to crontab:
# */5 * * * * /usr/local/bin/ucc_node_{{item.name}}.sh > /var/lib/node_exporter/{{item.name}}.prom
echo "# HELP node_{{item.name}} {{item.description | default('')}}
# TYPE node_{{item.name}} {{ item.type | default('gauge') }}
node_{{item.name}} $({{item.cmd}})"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment