Skip to content
This repository was archived by the owner on Oct 5, 2022. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions generate_prometheus_targets.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

set -euxo pipefail

# Root directory of this script.
SCRIPTDIR=$( dirname "${BASH_SOURCE[0]}" )
Expand Down Expand Up @@ -49,15 +50,13 @@ for project in mlab-sandbox mlab-staging mlab-oti ; do
--label service=rsyncd \
--label module=rsyncd_online \
--rsync \
--physical \
--select "${!pattern}" > ${output}/blackbox-targets/rsyncd.json

# SSH on port 806 over IPv4
./legacyconfig.py --format=prom-targets-nodes \
--template_target={{hostname}}:806 \
--label service=ssh806 \
--label module=ssh_v4_online \
--physical \
--select "${!pattern}" > ${output}/blackbox-targets/ssh806.json

# SSH on port 806 over IPv6
Expand All @@ -66,15 +65,13 @@ for project in mlab-sandbox mlab-staging mlab-oti ; do
--label service=ssh806 \
--label module=ssh_v6_online \
--label __blackbox_port=${!bbe_port} \
--physical \
--select "${!pattern}" \
--decoration "v6" > ${output}/blackbox-targets-ipv6/ssh806_ipv6.json

# Sidestream exporter in the npad experiment.
./legacyconfig.py --format=prom-targets \
--template_target={{hostname}}:9090 \
--label service=sidestream \
--physical \
--select "npad.iupui.(${!pattern})" > \
${output}/legacy-targets/sidestream.json

Expand Down