Heimdall: disable prometheus and grafana

This commit is contained in:
Filippo Berto 2025-06-27 10:33:29 +02:00
parent 4f4b40b7b1
commit d01cd52f57
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED

View file

@ -139,14 +139,14 @@ in
};
};
};
grafana = {
enable = true;
settings.server = {
http_addr = "0.0.0.0";
domain = "bertof.net";
root_url = "https://grafana.bertof.net/";
};
};
# grafana = {
# enable = true;
# settings.server = {
# http_addr = "0.0.0.0";
# domain = "bertof.net";
# root_url = "https://grafana.bertof.net/";
# };
# };
# avahi = {
# enable = true;
@ -433,50 +433,50 @@ in
];
};
prometheus = {
enable = true;
exporters = {
node = {
enable = true;
enabledCollectors = [ "systemd" ];
};
process = {
enable = true;
settings.process_names = [
# Remove nix store path from process name
{
name = "{{.Matches.Wrapped}} {{ .Matches.Args }}";
cmdline = [ "^/nix/store[^ ]*/(?P<Wrapped>[^ /]*) (?P<Args>.*)" ];
}
];
};
systemd.enable = true;
};
globalConfig = {
scrape_interval = "10s";
};
scrapeConfigs = [
{
job_name = "node";
static_configs = [
{ targets = [ "localhost:${toString config.services.prometheus.exporters.node.port}" ]; }
];
}
{
job_name = "process";
static_configs = [
{ targets = [ "localhost:${toString config.services.prometheus.exporters.process.port}" ]; }
];
}
{
job_name = "systemd";
static_configs = [
{ targets = [ "localhost:${toString config.services.prometheus.exporters.systemd.port}" ]; }
];
}
];
retentionTime = "15d";
};
# prometheus = {
# enable = true;
# exporters = {
# node = {
# enable = true;
# enabledCollectors = [ "systemd" ];
# };
# process = {
# enable = true;
# settings.process_names = [
# # Remove nix store path from process name
# {
# name = "{{.Matches.Wrapped}} {{ .Matches.Args }}";
# cmdline = [ "^/nix/store[^ ]*/(?P<Wrapped>[^ /]*) (?P<Args>.*)" ];
# }
# ];
# };
# systemd.enable = true;
# };
# globalConfig = {
# scrape_interval = "10s";
# };
# scrapeConfigs = [
# {
# job_name = "node";
# static_configs = [
# { targets = [ "localhost:${toString config.services.prometheus.exporters.node.port}" ]; }
# ];
# }
# {
# job_name = "process";
# static_configs = [
# { targets = [ "localhost:${toString config.services.prometheus.exporters.process.port}" ]; }
# ];
# }
# {
# job_name = "systemd";
# static_configs = [
# { targets = [ "localhost:${toString config.services.prometheus.exporters.systemd.port}" ]; }
# ];
# }
# ];
# retentionTime = "15d";
# };
snapper.configs =
let