Add minimal __prometheus_node_exporter type
This commit is contained in:
parent
207ea23c89
commit
18bdc55c73
2 changed files with 19 additions and 0 deletions
19
type/__prometheus_node_exporter/manifest
Normal file
19
type/__prometheus_node_exporter/manifest
Normal 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
|
0
type/__prometheus_node_exporter/singleton
Normal file
0
type/__prometheus_node_exporter/singleton
Normal file
Reference in a new issue