mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 05:13:10 +01:00
nuc: add elbe pegel
This commit is contained in:
parent
8b786bdc42
commit
7c5324dac8
|
@ -93,6 +93,19 @@ in
|
|||
enable = true;
|
||||
enabledCollectors = [ "systemd" ];
|
||||
};
|
||||
json = {
|
||||
enable = true;
|
||||
configFile = pkgs.writeText "json-exporter.yml" ''
|
||||
---
|
||||
modules:
|
||||
pegelstand:
|
||||
metrics:
|
||||
- name: pegelstand_elbe_dresden
|
||||
path: '{ $.pegel }'
|
||||
type: value
|
||||
help: Pegelstand in Dresden
|
||||
'';
|
||||
};
|
||||
};
|
||||
scrapeConfigs = [
|
||||
{
|
||||
|
@ -127,6 +140,20 @@ in
|
|||
targets = [ "nuc.vpn.rfive.de:9300" ];
|
||||
}];
|
||||
}
|
||||
{
|
||||
job_name = "pegel_dresden";
|
||||
metrics_path = "/probe";
|
||||
params = {
|
||||
module = [ "pegelstand" ];
|
||||
target = [
|
||||
"https://api.stramke.com/wasserstand/sachsen/Dresden"
|
||||
];
|
||||
};
|
||||
static_configs = [{
|
||||
targets = [ "nuc.vpn.rfive.de:7979" ];
|
||||
}];
|
||||
scrape_interval = "5m";
|
||||
}
|
||||
{
|
||||
job_name = "caddy";
|
||||
static_configs = [{
|
||||
|
|
Loading…
Reference in a new issue