mirror of
https://github.com/nix-community/srvos.git
synced 2024-08-17 01:40:26 +03:00
Merge pull request #405 from elohmeier/telegraf-prometheus-list
telegraf: use list for inputs.prometheus
This commit is contained in:
commit
2d627b9d37
@ -88,11 +88,10 @@ in
|
||||
extraConfig = {
|
||||
agent.interval = "60s";
|
||||
inputs = {
|
||||
prometheus.urls = lib.mkIf config.services.promtail.enable [
|
||||
# default promtail port
|
||||
"http://localhost:9080/metrics"
|
||||
];
|
||||
prometheus.metric_version = 2;
|
||||
prometheus = lib.mkIf config.services.promtail.enable [{
|
||||
urls = [ "http://localhost:9080/metrics" ]; # default promtail port
|
||||
metric_version = 2;
|
||||
}];
|
||||
kernel_vmstat = { };
|
||||
nginx.urls = lib.mkIf config.services.nginx.statusPage [
|
||||
"http://localhost/nginx_status"
|
||||
|
Loading…
Reference in New Issue
Block a user