This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Description: Download a URL and write out a file_sd_config. | |
# Author: Ben Kochie <[email protected]> | |
set -o pipefail | |
if [[ $# -ne 2 || $1 == "-h" ]] ; then | |
echo "usage $(basename $0) <url> <sd file>" | |
exit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
metric_relabel_configs: | |
- source_labels: | |
- __name__ | |
regex: 'mysql_com_(.+)' | |
target_label: command | |
- __name__ | |
regex: 'mysql_com_(.+)' | |
target_label: __name__ | |
replacement: mysql_commands_total |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
if curl -s -f -o /dev/null https://www.google.com; then | |
echo "node_internet_connected 1" | |
else | |
echo "node_internet_connected 0" | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Taken from https://bugzilla.redhat.com/show_bug.cgi?id=1801154 | |
kubeApiServer: | |
serviceMonitor: | |
metricRelabelings: | |
- action: drop | |
regex: apiserver_request_duration_seconds_bucket;(0.15|0.25|0.3|0.35|0.4|0.45|0.6|0.7|0.8|0.9|1.25|1.5|1.75|2.5|3|3.5|4.5|6|7|8|9|15|25|30|50) | |
sourceLabels: | |
- __name__ | |
- le |
OlderNewer