1
0

Compare commits

...

2 Commits

Author SHA1 Message Date
Garionion
d96fd92ec9 monitoring: fix snmp exporter scraper config 2022-07-25 19:13:38 +02:00
Garionion
dfe76ccf37 dns: add lama zone configs 2022-07-25 19:13:17 +02:00
5 changed files with 99 additions and 2 deletions

View File

@ -29,6 +29,20 @@
file /etc/zones/db.bula22.de file /etc/zones/db.bula22.de
} }
oncamp.lama.vcp.de {
errors
log
prometheus 10.42.10.8:9453
file /etc/zones/db.oncamp.lama.vcp.de
}
oncamp.m2yk8s.de {
errors
log
prometheus 10.42.10.8:9553
file /etc/zones/db.oncamp.m2yk8s.de
}
42.10.in-addr.arpa { 42.10.in-addr.arpa {
file /etc/zones/db.42.10.in-addr.arpa. file /etc/zones/db.42.10.in-addr.arpa.
} }
@ -42,6 +56,8 @@
}; };
systemd.services.coredns.restartTriggers = [ systemd.services.coredns.restartTriggers = [
config.environment.etc."zones/db.bula22.de".source config.environment.etc."zones/db.bula22.de".source
config.environment.etc."zones/db.oncamp.lama.vcp.de".source
config.environment.etc."zones/db.oncamp.m2yk8s.de".source
config.environment.etc."zones/db.42.10.in-addr.arpa.".source config.environment.etc."zones/db.42.10.in-addr.arpa.".source
config.environment.etc."zones/db.2.4.0.0.0.1.0.0.0.0.d.f.ip6.arpa.".source config.environment.etc."zones/db.2.4.0.0.0.1.0.0.0.0.d.f.ip6.arpa.".source
config.environment.etc."zones/db.1.2.2.8.c.0.c.1.8.f.4.0.1.0.a.2.ip6.arpa.".source config.environment.etc."zones/db.1.2.2.8.c.0.c.1.8.f.4.0.1.0.a.2.ip6.arpa.".source
@ -49,9 +65,12 @@
environment = { environment = {
etc = { etc = {
"zones/db.bula22.de".source = ./zones/db.bula22.de; "zones/db.bula22.de".source = ./zones/db.bula22.de;
"zones/db.oncamp.lama.vcp.de".source = ./zones/db.oncamp.lama.vcp.de;
"zones/db.oncamp.m2yk8s.de".source = ./zones/db.oncamp.m2yk8s.de;
"zones/db.42.10.in-addr.arpa.".source = ./zones/db.42.10.in-addr.arpa.; "zones/db.42.10.in-addr.arpa.".source = ./zones/db.42.10.in-addr.arpa.;
"zones/db.2.4.0.0.0.1.0.0.0.0.d.f.ip6.arpa.".source = ./zones/db.2.4.0.0.0.1.0.0.0.0.d.f.ip6.arpa.; "zones/db.2.4.0.0.0.1.0.0.0.0.d.f.ip6.arpa.".source = ./zones/db.2.4.0.0.0.1.0.0.0.0.d.f.ip6.arpa.;
"zones/db.1.2.2.8.c.0.c.1.8.f.4.0.1.0.a.2.ip6.arpa.".source = ./zones/db.1.2.2.8.c.0.c.1.8.f.4.0.1.0.a.2.ip6.arpa.; "zones/db.1.2.2.8.c.0.c.1.8.f.4.0.1.0.a.2.ip6.arpa.".source = ./zones/db.1.2.2.8.c.0.c.1.8.f.4.0.1.0.a.2.ip6.arpa.;
}; };
}; };
} }
#

View File

@ -61,3 +61,8 @@ $TTL 3600
10.42.210.1.in-addr.arpa. IN PTR gw.international.net.bula22.de. 10.42.210.1.in-addr.arpa. IN PTR gw.international.net.bula22.de.
10.42.211.1.in-addr.arpa. IN PTR gw.programmtresen.net.bula22.de. 10.42.211.1.in-addr.arpa. IN PTR gw.programmtresen.net.bula22.de.
10.42.212.1.in-addr.arpa. IN PTR gw.open-office.net.bula22.de. 10.42.212.1.in-addr.arpa. IN PTR gw.open-office.net.bula22.de.
#other
10.42.132.2.in-addr.arpa. IN PTR omm.bula22.de.
10.42.151.2.in-addr.arpa. IN PTR webcam.bula22.de.

View File

@ -0,0 +1,20 @@
$ORIGIN oncamp.lama.vcp.de.
$TTL 3600
oncamp.lama.vcp.de. IN SOA dns.bula22.de. hostmaster.bula22.de. (
2022072101
10800
3600
604800
3600
)
oncamp.lama.vcp.de IN NS dns.bula22.de.
oncamp.lama.vcp.de IN CNAME lama-2.bula22.de.
id.oncamp.lama.vcp.de. IN CNAME lama-2.bula22.de.
reports.oncamp.lama.vcp.de. IN CNAME lama-2.bula22.de.
member.oncamp.lama.vcp.de. IN CNAME lama-2.bula22.de.
signage.oncamp.lama.vcp.de. IN CNAME lama-2.bula22.de.
dashboard.oncamp.lama.vcp.de. IN CNAME lama-2.bula22.de.

View File

@ -0,0 +1,17 @@
$ORIGIN oncamp.m2yk8s.de.
$TTL 3600
oncamp.m2yk8s.de. IN SOA dns.bula22.de. hostmaster.bula22.de. (
2022072101
10800
3600
604800
3600
)
oncamp.m2yk8s.de IN NS dns.bula22.de.
rancher.oncamp.m2yk8s.de. IN CNAME lama-2.bula22.de.
minio.oncamp.m2yk8s.de. IN CNAME lama-2.bula22.de.
s3.oncamp.m2yk8s.de. IN CNAME lama-2.bula22.de.
registry.oncamp.m2yk8s.de. IN CNAME lama-1.bula22.de.

View File

@ -272,13 +272,49 @@ with lib;
{ {
job_name = "snmp"; job_name = "snmp";
scrape_interval = "120s"; scrape_interval = "120s";
scrape_timeout = "40s";
metrics_path = "/snmp";
params = {
module = [
"if_mib"
];
};
static_configs = [ static_configs = [
{ {
targets = [ targets = [
"[::1]:9116" "sw-zentral-1.bula22.de"
"sw-zentral-2.bula22.de"
"sw-verwaltung.bula22.de"
"sw-zoll-container.bula22.de"
"sw-zoll-zelt.bula22.de"
"sw-programmtresen.bula22.de"
"sw-international.bula22.de"
"sw-leitstelle.bula22.de"
"sw-infojurte.bula22.de"
"sw-technik-zelt.bula22.de"
"sw-technik-container.bula22.de"
"sw-hospital.bula22.de"
"sw-fuf.bula22.de"
"sw-waschhaus.bula22.de"
"sw-buehne.bula22.de"
"sw-trabantenstadt.bula22.de"
]; ];
} }
]; ];
relabel_configs = [
{
source_labels = [ "__address__" ];
target_label = "__param_target";
}
{
source_labels = [ "__param_target" ];
target_label = "instance";
}
{
target_label = "__address__";
replacement = "[::1]:9116";
}
];
} }
]; ];
alertmanagers = [ alertmanagers = [