mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 05:13:10 +01:00
monitoring: remove json exporter
This commit is contained in:
parent
f75a808a53
commit
9a1435517f
|
@ -85,6 +85,7 @@ in
|
||||||
services.prometheus = {
|
services.prometheus = {
|
||||||
enable = true;
|
enable = true;
|
||||||
port = 9001;
|
port = 9001;
|
||||||
|
retentionTime = "1y";
|
||||||
ruleFiles = [
|
ruleFiles = [
|
||||||
./synapse-v2.rules
|
./synapse-v2.rules
|
||||||
];
|
];
|
||||||
|
@ -93,19 +94,19 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
enabledCollectors = [ "systemd" ];
|
enabledCollectors = [ "systemd" ];
|
||||||
};
|
};
|
||||||
json = {
|
# json = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
configFile = pkgs.writeText "json-exporter.yml" ''
|
# configFile = pkgs.writeText "json-exporter.yml" ''
|
||||||
---
|
# ---
|
||||||
modules:
|
# modules:
|
||||||
pegelstand:
|
# pegelstand:
|
||||||
metrics:
|
# metrics:
|
||||||
- name: pegelstand_elbe_dresden
|
# - name: pegelstand_elbe_dresden
|
||||||
path: '{ $.pegel }'
|
# path: '{ $.pegel }'
|
||||||
type: value
|
# type: value
|
||||||
help: Pegelstand in Dresden
|
# help: Pegelstand in Dresden
|
||||||
'';
|
# '';
|
||||||
};
|
# };
|
||||||
};
|
};
|
||||||
scrapeConfigs = [
|
scrapeConfigs = [
|
||||||
{
|
{
|
||||||
|
@ -140,20 +141,20 @@ in
|
||||||
targets = [ "nuc.vpn.rfive.de:9300" ];
|
targets = [ "nuc.vpn.rfive.de:9300" ];
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
{
|
# {
|
||||||
job_name = "pegel_dresden";
|
# job_name = "pegel_dresden";
|
||||||
metrics_path = "/probe";
|
# metrics_path = "/probe";
|
||||||
params = {
|
# params = {
|
||||||
module = [ "pegelstand" ];
|
# module = [ "pegelstand" ];
|
||||||
target = [
|
# target = [
|
||||||
"https://api.stramke.com/wasserstand/sachsen/Dresden"
|
# "https://api.stramke.com/wasserstand/sachsen/Dresden"
|
||||||
];
|
# ];
|
||||||
};
|
# };
|
||||||
static_configs = [{
|
# static_configs = [{
|
||||||
targets = [ "nuc.vpn.rfive.de:7979" ];
|
# targets = [ "nuc.vpn.rfive.de:7979" ];
|
||||||
}];
|
# }];
|
||||||
scrape_interval = "5m";
|
# scrape_interval = "5m";
|
||||||
}
|
# }
|
||||||
{
|
{
|
||||||
job_name = "caddy";
|
job_name = "caddy";
|
||||||
static_configs = [{
|
static_configs = [{
|
||||||
|
|
Loading…
Reference in a new issue