Heimdall: disable prometheus and grafana
This commit is contained in:
parent
4f4b40b7b1
commit
d01cd52f57
1 changed files with 52 additions and 52 deletions
|
|
@ -139,14 +139,14 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
grafana = {
|
# grafana = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
settings.server = {
|
# settings.server = {
|
||||||
http_addr = "0.0.0.0";
|
# http_addr = "0.0.0.0";
|
||||||
domain = "bertof.net";
|
# domain = "bertof.net";
|
||||||
root_url = "https://grafana.bertof.net/";
|
# root_url = "https://grafana.bertof.net/";
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
|
|
||||||
# avahi = {
|
# avahi = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
|
|
@ -433,50 +433,50 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
prometheus = {
|
# prometheus = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
exporters = {
|
# exporters = {
|
||||||
node = {
|
# node = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
enabledCollectors = [ "systemd" ];
|
# enabledCollectors = [ "systemd" ];
|
||||||
};
|
# };
|
||||||
process = {
|
# process = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
settings.process_names = [
|
# settings.process_names = [
|
||||||
# Remove nix store path from process name
|
# # Remove nix store path from process name
|
||||||
{
|
# {
|
||||||
name = "{{.Matches.Wrapped}} {{ .Matches.Args }}";
|
# name = "{{.Matches.Wrapped}} {{ .Matches.Args }}";
|
||||||
cmdline = [ "^/nix/store[^ ]*/(?P<Wrapped>[^ /]*) (?P<Args>.*)" ];
|
# cmdline = [ "^/nix/store[^ ]*/(?P<Wrapped>[^ /]*) (?P<Args>.*)" ];
|
||||||
}
|
# }
|
||||||
];
|
# ];
|
||||||
};
|
# };
|
||||||
systemd.enable = true;
|
# systemd.enable = true;
|
||||||
};
|
# };
|
||||||
globalConfig = {
|
# globalConfig = {
|
||||||
scrape_interval = "10s";
|
# scrape_interval = "10s";
|
||||||
};
|
# };
|
||||||
scrapeConfigs = [
|
# scrapeConfigs = [
|
||||||
{
|
# {
|
||||||
job_name = "node";
|
# job_name = "node";
|
||||||
static_configs = [
|
# static_configs = [
|
||||||
{ targets = [ "localhost:${toString config.services.prometheus.exporters.node.port}" ]; }
|
# { targets = [ "localhost:${toString config.services.prometheus.exporters.node.port}" ]; }
|
||||||
];
|
# ];
|
||||||
}
|
# }
|
||||||
{
|
# {
|
||||||
job_name = "process";
|
# job_name = "process";
|
||||||
static_configs = [
|
# static_configs = [
|
||||||
{ targets = [ "localhost:${toString config.services.prometheus.exporters.process.port}" ]; }
|
# { targets = [ "localhost:${toString config.services.prometheus.exporters.process.port}" ]; }
|
||||||
];
|
# ];
|
||||||
}
|
# }
|
||||||
{
|
# {
|
||||||
job_name = "systemd";
|
# job_name = "systemd";
|
||||||
static_configs = [
|
# static_configs = [
|
||||||
{ targets = [ "localhost:${toString config.services.prometheus.exporters.systemd.port}" ]; }
|
# { targets = [ "localhost:${toString config.services.prometheus.exporters.systemd.port}" ]; }
|
||||||
];
|
# ];
|
||||||
}
|
# }
|
||||||
];
|
# ];
|
||||||
retentionTime = "15d";
|
# retentionTime = "15d";
|
||||||
};
|
# };
|
||||||
|
|
||||||
snapper.configs =
|
snapper.configs =
|
||||||
let
|
let
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue