nixos/grafana-agent: replace `settings.prometheus` with `settings.metrics`

According to https://github.com/grafana/agent/pull/1540, -prometheus.*
flages were deprecated in 0.19.0 in favor of the -metrics.*
counterparts. Same applies to `loki` being renamed to `logs`.

I'm not sure if the config file format is still supported (it could be),
but we shouldn't use deprecated configs.
main
Florian Klink 2 years ago
parent 0fcb789478
commit 2cca676e69
  1. 4
      nixos/modules/services/monitoring/grafana-agent.nix

@ -56,7 +56,7 @@ in
# Don't bind on the default port 80
http_listen_port = 9090;
};
prometheus = {
metrics = {
wal_directory = "\${STATE_DIRECTORY}";
global.scrape_interval = "5s";
};
@ -69,7 +69,7 @@ in
};
example = {
loki.configs = [{
logs.configs = [{
name = "default";
scrape_configs = [
{

Loading…
Cancel
Save