This file contains 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 |
This file contains 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 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 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 <superq@gmail.com> | |
set -o pipefail | |
if [[ $# -ne 2 || $1 == "-h" ]] ; then | |
echo "usage $(basename $0) <url> <sd file>" | |
exit |
This file contains 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
groups: | |
- name: Threshold-Alerts | |
rules: | |
- record: load_threshold | |
expr: "100" | |
- record: load_threshold | |
expr: "10" | |
labels: | |
node_type: tiny | |
- record: load_threshold |
This file contains 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
juniper_cpu: | |
walk: | |
- 1.3.6.1.4.1.2636.3.1.13.1 | |
metrics: | |
- name: jnxOperatingCPU | |
oid: 1.3.6.1.4.1.2636.3.1.13.1.8 | |
type: gauge | |
help: The CPU utilization in percentage of this subject - 1.3.6.1.4.1.2636.3.1.13.1.8 | |
indexes: | |
- labelname: jnxOperatingContentsIndex |
This file contains 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__] | |
target_label: channel | |
regex: ch(\d+).+ | |
- source_labels: [__name__] | |
target_label: __name__ | |
regex: ch\d+(.+) | |
replacement: ch${1} |
This file contains 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
servertech_sentry3: | |
walk: | |
- 1.3.6.1.4.1.1718.3.2.2.1 # infeedEntry | |
metrics: | |
- name: infeedStatus | |
oid: 1.3.6.1.4.1.1718.3.2.2.1.5 | |
type: gauge | |
indexes: | |
- labelname: towerIndex | |
type: gauge |
This file contains 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
modules: | |
keepalived: | |
walk: | |
- vrrpInstanceTable |
This file contains 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
scrape_configs: | |
- job_name: freeswitch | |
metrics_path: / | |
static_configs: | |
- targets: | |
- freeswitch1:6780 | |
- freeswitch2:6780 |
NewerOlder