modules/nixos/monitoring: scrape prometheus and alertmanager
This commit is contained in:
parent
e3fb48904c
commit
7062fc07e4
1 changed files with 5 additions and 0 deletions
|
@ -41,6 +41,11 @@
|
|||
];
|
||||
};
|
||||
|
||||
services.telegraf.extraConfig.inputs.prometheus.urls = [
|
||||
"http://localhost:9090/metrics" # prometheus
|
||||
"http://localhost:9093/metrics" # alertmanager
|
||||
];
|
||||
|
||||
services.nginx.virtualHosts."prometheus.nix-community.org" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue