about summary refs log tree commit diff
path: root/nixos/modules/services/monitoring/grafana-agent.nix
AgeCommit message (Collapse)AuthorFilesLines
2023-11-30treewide: replace `mkPackageOptionMD` with `mkPackageOption`h7x41-1/+1
2023-05-17nixos/grafana-agent: remove deprecated option (#232375)K9001-2/+0
Deprecated in version 0.21: https://github.com/grafana/agent/blob/323c1eb36d06e27c5befdee51f3c9ac06622cec7/docs/sources/static/upgrade-guide.md?plain=1#L417
2023-05-05nixos/grafana-agent: add `extraFlags` option (#228883)Emily Lange1-9/+15
2023-04-13nixos/grafana-agent: use `lib.getExe` as binary names changed between updatesIndeedNotJames1-1/+1
and `lib.getExe` allows a safe handling and potential backport of this. But for that to work it would require 22.11 to set `pkgs.grafana-agent.meta.mainProgram = "agent"` Relevant upstream release: https://github.com/grafana/agent/releases/tag/v0.31.0
2022-12-08nixos/doc: fix some optionsNaïm Favier1-12/+14
2022-08-31nixos/*: automatically convert option descriptionspennae1-1/+1
conversions were done using https://github.com/pennae/nix-doc-munge using (probably) rev f34e145 running nix-doc-munge nixos/**/*.nix nix-doc-munge --import nixos/**/*.nix the tool ensures that only changes that could affect the generated manual *but don't* are committed, other changes require manual review and are discarded.
2022-08-19nixos/*: automatically convert option docspennae1-2/+2
2022-08-19nixos/*: normalize <package> to <literal>pennae1-1/+1
this renders the same in the manpage and a little more clearly in the html manual. in the manpage there continues to be no distinction from regular text, the html manual gets code-type markup (which was probably the intention for most of these uses anyway).
2022-08-02Merge pull request #183491 from pennae/automatic-md-conversionspennae1-2/+2
treewide: automatically md-convert option descriptions
2022-07-30treewide: automatically md-convert option descriptionspennae1-2/+2
the conversion procedure is simple: - find all things that look like options, ie calls to either `mkOption` or `lib.mkOption` that take an attrset. remember the attrset as the option - for all options, find a `description` attribute who's value is not a call to `mdDoc` or `lib.mdDoc` - textually convert the entire value of the attribute to MD with a few simple regexes (the set from mdize-module.sh) - if the change produced a change in the manual output, discard - if the change kept the manual unchanged, add some text to the description to make sure we've actually found an option. if the manual changes this time, keep the converted description this procedure converts 80% of nixos options to markdown. around 2000 options remain to be inspected, but most of those fail the "does not change the manual output check": currently the MD conversion process does not faithfully convert docbook tags like <code> and <package>, so any option using such tags will not be converted at all.
2022-07-29nixos/grafana-agent: ensure defaults are mergedFlorian Klink1-4/+18
Move the defaults to the `config` section of the module, and apply them with mkDefault. That way the defaults are merged with user-provided config, and are merged without having to use lib.mkForce.
2022-06-19nixos/grafana-agent: add myself as maintainerFlorian Klink1-1/+1
2022-06-19nixos/grafana-agent: move remote write config from ↵Florian Klink1-7/+5
integrations.prometheus_remote_write to metrics.global.remote_write remote_write config in integrations.prometheus_remote_write is only applied for integrations, so static configurations won't get written anywhere.
2022-06-19nixos/grafana-agent: drop server.{grpc,http}_listen_address,http_listen_portFlorian Klink1-7/+0
According to https://grafana.com/docs/agent/latest/upgrade-guide/#v0240, this has been deprecated/moved to -server.http.address and -server.grpc.address (accepting ip and port) config options in v0.24.0, and already listens on localhost and not port 80 by default.
2022-06-19nixos/grafana-agent: replace `settings.prometheus` with `settings.metrics`Florian Klink1-2/+2
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.
2022-06-15nixos: add grafana-agent modulezimbatm1-0/+152
Easily ship logs and metrics to Grafana Cloud and other similar targets.