6
0
Fork 0

Add minimal __prometheus_node_exporter type

This commit is contained in:
Timothée Floure 2021-03-05 12:46:38 +01:00
parent 207ea23c89
commit 18bdc55c73
Signed by: tfloure
GPG key ID: 4502C902C00A1E12
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,19 @@
#!/bin/sh
os="$(cat "${__global:?}/explorer/os")"
case "$os" in
alpine)
__package prometheus-node-exporter
require="__package/prometheus-node-exporter" \
__start_on_boot node-exporter
require="__package/prometheus-node-exporter" \
__service node-exporter --action start
;;
debian|ubuntu)
__package prometheus-node-exporter
;;
*)
echo "This type does not supper $os. Exiting." >&2
exit 1
;;
esac