👌 IMPROVE:
This commit is contained in:
12
config/blackbox_targets.json
Normal file
12
config/blackbox_targets.json
Normal file
@@ -0,0 +1,12 @@
|
||||
[
|
||||
{
|
||||
"targets": [
|
||||
"https://alpha.phx-erp.de"
|
||||
],
|
||||
"labels": {
|
||||
"job": "blackbox-dynamic",
|
||||
"instance": "Alpha",
|
||||
"probe": "http"
|
||||
}
|
||||
}
|
||||
]
|
||||
102
config/hetzner_dns_mapping.json
Normal file
102
config/hetzner_dns_mapping.json
Normal file
@@ -0,0 +1,102 @@
|
||||
[
|
||||
{
|
||||
"dns_name": "PHX-DEV-001.Alpha",
|
||||
"ip_address": "157.90.161.42"
|
||||
},
|
||||
{
|
||||
"dns_name": "ANSIBLE-MASTER",
|
||||
"ip_address": "167.235.254.4"
|
||||
},
|
||||
{
|
||||
"dns_name": "cts",
|
||||
"ip_address": "116.203.75.215"
|
||||
},
|
||||
{
|
||||
"dns_name": "Phx-Yuri",
|
||||
"ip_address": "162.55.52.253"
|
||||
},
|
||||
{
|
||||
"dns_name": "benzinger-demo",
|
||||
"ip_address": "162.55.54.75"
|
||||
},
|
||||
{
|
||||
"dns_name": "phx-internal",
|
||||
"ip_address": "5.75.183.139"
|
||||
},
|
||||
{
|
||||
"dns_name": "trachtenmode-schmid",
|
||||
"ip_address": "142.132.165.231"
|
||||
},
|
||||
{
|
||||
"dns_name": "teamcity",
|
||||
"ip_address": "23.88.107.109"
|
||||
},
|
||||
{
|
||||
"dns_name": "gitea",
|
||||
"ip_address": "49.13.146.138"
|
||||
},
|
||||
{
|
||||
"dns_name": "phx-beta-rc",
|
||||
"ip_address": "159.69.200.205"
|
||||
},
|
||||
{
|
||||
"dns_name": "lhl",
|
||||
"ip_address": "116.203.53.137"
|
||||
},
|
||||
{
|
||||
"dns_name": "Grafana-Prometheus",
|
||||
"ip_address": "5.75.153.161"
|
||||
},
|
||||
{
|
||||
"dns_name": "cooper",
|
||||
"ip_address": "159.69.44.39"
|
||||
},
|
||||
{
|
||||
"dns_name": "shipxpert",
|
||||
"ip_address": "49.13.165.13"
|
||||
},
|
||||
{
|
||||
"dns_name": "dss",
|
||||
"ip_address": "49.13.197.152"
|
||||
},
|
||||
{
|
||||
"dns_name": "sartissohn",
|
||||
"ip_address": "188.245.44.219"
|
||||
},
|
||||
{
|
||||
"dns_name": "guntli",
|
||||
"ip_address": "116.203.92.218"
|
||||
},
|
||||
{
|
||||
"dns_name": "kolb",
|
||||
"ip_address": "94.130.77.57"
|
||||
},
|
||||
{
|
||||
"dns_name": "ried",
|
||||
"ip_address": "116.203.151.20"
|
||||
},
|
||||
{
|
||||
"dns_name": "heba",
|
||||
"ip_address": "116.203.68.120"
|
||||
},
|
||||
{
|
||||
"dns_name": "eicsoft",
|
||||
"ip_address": "116.203.128.69"
|
||||
},
|
||||
{
|
||||
"dns_name": "ck-vechta",
|
||||
"ip_address": "159.69.93.252"
|
||||
},
|
||||
{
|
||||
"dns_name": "eeparts",
|
||||
"ip_address": "116.203.46.171"
|
||||
},
|
||||
{
|
||||
"dns_name": "big-break-changes",
|
||||
"ip_address": "167.235.130.242"
|
||||
},
|
||||
{
|
||||
"dns_name": "bug",
|
||||
"ip_address": "138.199.196.189"
|
||||
}
|
||||
]
|
||||
8
config/hetzner_excluded_servers.json
Normal file
8
config/hetzner_excluded_servers.json
Normal file
@@ -0,0 +1,8 @@
|
||||
[
|
||||
{
|
||||
"server_id": 52530041,
|
||||
"name": "docuvita",
|
||||
"datacenter": "nbg1",
|
||||
"reason": "Darklisted server"
|
||||
}
|
||||
]
|
||||
@@ -161,15 +161,6 @@
|
||||
"datacenter": "nbg1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"targets": [
|
||||
"128.140.15.177:9100"
|
||||
],
|
||||
"labels": {
|
||||
"instance": "docuvita",
|
||||
"datacenter": "nbg1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"targets": [
|
||||
"116.203.151.20:9100"
|
||||
@@ -223,5 +214,14 @@
|
||||
"instance": "big-break-changes",
|
||||
"datacenter": "nbg1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"targets": [
|
||||
"138.199.196.189:9100"
|
||||
],
|
||||
"labels": {
|
||||
"instance": "bug",
|
||||
"datacenter": "nbg1"
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -2,9 +2,28 @@ global:
|
||||
scrape_interval: 15s # Default for all jobs unless overridden
|
||||
|
||||
scrape_configs:
|
||||
# Existing Hetzner Dynamic Configuration
|
||||
- job_name: "hetzner-dynamic"
|
||||
scheme: http
|
||||
file_sd_configs:
|
||||
- files:
|
||||
- "/hetzner_targets.json"
|
||||
- "/opt/phx/main/config/hetzner_targets.json"
|
||||
refresh_interval: 30s
|
||||
scrape_interval: 5s # Custom interval for Hetzner servers
|
||||
scrape_interval: 5s # Custom interval for Hetzner servers
|
||||
|
||||
# Blackbox Exporter with Dynamic File SD
|
||||
# - job_name: 'blackbox-dynamic'
|
||||
# metrics_path: /probe
|
||||
# params:
|
||||
# module: [http_2xx] # HTTP check to see if target is up
|
||||
# file_sd_configs:
|
||||
# - files:
|
||||
# - "/opt/phx/main/config/blackbox_targets.json" # Dynamic file like hetzner_targets.json
|
||||
# refresh_interval: 30s
|
||||
# relabel_configs:
|
||||
# - source_labels: [__address__]
|
||||
# target_label: __param_target
|
||||
# - source_labels: [__param_target]
|
||||
# target_label: instance
|
||||
# - target_label: __address__
|
||||
# replacement: blackbox_exporter:9115 # Blackbox Exporter container/service
|
||||
Reference in New Issue
Block a user