1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

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.
This commit is contained in:
Florian Klink 2022-06-19 11:26:55 +02:00
parent 0fcb789478
commit 2cca676e69

View file

@ -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 = [
{