done
# add node-exporter
-$CEPHADM --image 'prom/node-exporter:latest' \
- deploy --name node-exporter.a --fsid $FSID
+${CEPHADM//--image $IMAGE_MASTER/} deploy \
+ --name node-exporter.a --fsid $FSID
cond="curl 'http://localhost:9100' | grep -q 'Node Exporter'"
is_available "node-exporter" "$cond" 5
# add prometheus
cat ${CEPHADM_SAMPLES_DIR}/prometheus.json | \
- $CEPHADM --image 'prom/prometheus:latest' \
- deploy --name prometheus.a --fsid $FSID \
- --config-json -
+ ${CEPHADM//--image $IMAGE_MASTER/} deploy \
+ --name prometheus.a --fsid $FSID --config-json -
cond="curl 'localhost:9095/api/v1/query?query=up'"
is_available "prometheus" "$cond" 5
# add grafana
cat ${CEPHADM_SAMPLES_DIR}/grafana.json | \
- $CEPHADM --image 'pcuzner/ceph-grafana-el8:latest' \
- deploy --name grafana.a --fsid $FSID \
- --config-json -
+ ${CEPHADM//--image $IMAGE_MASTER/} deploy \
+ --name grafana.a --fsid $FSID --config-json -
cond="curl --insecure 'https://localhost:3000' | grep -q 'grafana'"
is_available "grafana" "$cond" 30