fixup! Loki: add prometheus
This commit is contained in:
parent
ce2d3064a9
commit
ee26dda42a
1 changed files with 21 additions and 21 deletions
|
|
@ -470,27 +470,27 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# servies.prometheus = {
|
servies.prometheus = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# exporters = {
|
# exporters = {
|
||||||
# node = { enable = true; enabledCollectors = [ "systemd" ]; };
|
# node = { enable = true; 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 }}"; cmdline = [ "^/nix/store[^ ]*/(?P<Wrapped>[^ /]*) (?P<Args>.*)" ]; }
|
# { name = "{{.Matches.Wrapped}} {{ .Matches.Args }}"; cmdline = [ "^/nix/store[^ ]*/(?P<Wrapped>[^ /]*) (?P<Args>.*)" ]; }
|
||||||
# ];
|
# ];
|
||||||
# };
|
# };
|
||||||
# systemd.enable = true;
|
# systemd.enable = true;
|
||||||
# };
|
# };
|
||||||
# globalConfig = { scrape_interval = "10s"; };
|
# globalConfig = { scrape_interval = "10s"; };
|
||||||
# scrapeConfigs = [
|
# scrapeConfigs = [
|
||||||
# { job_name = "node"; static_configs = [{ targets = [ "localhost:${toString config.services.prometheus.exporters.node.port}" ]; }]; }
|
# { 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 = "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}" ]; }]; }
|
# { job_name = "systemd"; static_configs = [{ targets = [ "localhost:${toString config.services.prometheus.exporters.systemd.port}" ]; }]; }
|
||||||
# ];
|
# ];
|
||||||
# retentionTime = "15d";
|
retentionTime = "15d";
|
||||||
# };
|
};
|
||||||
|
|
||||||
security.sudo.extraConfig = ''
|
security.sudo.extraConfig = ''
|
||||||
Defaults pwfeedback
|
Defaults pwfeedback
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue