Commit Graph

1330 Commits

Author SHA1 Message Date
Sandro
10635f7d2a
Merge pull request #202068 from justinas/nginxlog-exporter-typed-options 2024-07-16 11:07:18 +02:00
Sandro
8f24fa52bb
Merge pull request #317488 from asbish/master
nixos/prometheus-snmp-exporter: add environmentFile option
2024-07-14 16:17:05 +02:00
Artur Faizullin
4e3c5fb713 nixos/opentelemetry-collector: Avoid using a fixed hardcoded path
Follow the boyscout rule.
2024-07-11 08:27:29 +02:00
Artur Faizullin
40013729d3 nixos/opentelemetry-collector: Use SupplementaryGroups to add the dynamic user to systemd-journal group
OpenTelemetry collector's Journald Receiver has not enough permissions
2024-07-11 08:23:20 +02:00
Artur Faizullin
e304e2ee59 nixos/opentelemetry-collector: Accept changes from linter
Follow the boyscout rule.
2024-07-11 08:19:48 +02:00
Justinas Stankevicius
a572d5151c nixos/prometheus-nginxlog-exporter: define types of inner options 2024-07-09 23:12:33 +03:00
Pol Dellaiera
ed24a0baf3
Merge pull request #317107 from ibizaman/deluge_exporter_init
prometheus-deluge-exporter: init at 2.4.0-unstable-2024-06-02
2024-07-08 20:09:50 +02:00
Yu Ishii
f210aaf4ca nixos/prometheus-snmp-exporter: add a parameter implicitly
Change to adding `--config.expand-environment-variables` parameter to
`ExecStart` if `environmentFile` option is set.
2024-07-07 16:49:31 +09:00
Yu Ishii
839bbc1700 nixos/prometheus-snmp-exporter: add environmentFile option
Prometheus snmp-exporter has support to pass sensitive data as environment
variables. Since other exporter configurations for NixOS have
environmentFile option, the same option is added to snmp-exporter.
2024-07-07 14:28:37 +09:00
Jonathan Davies
008ea18566
nixos/prometheus: Harden alertmanager/webhook-logger/pushgateway systemd definitions 2024-07-07 00:15:57 +01:00
Nikita Pedorich
cba1e458a8
netdata: 1.45.4 -> 1.46.1 2024-07-04 23:00:09 +09:00
Martin Weinelt
84164bf098
Merge pull request #318659 from mweinelt/fastly-exporter
nixos/prometheus-fastly-exporter: unwrap execstart
2024-07-03 12:40:10 +02:00
K900
caff135cb1
Merge pull request #323419 from Ma27/bump-grafana
grafana: 11.0.0 -> 11.1.0
2024-07-02 20:59:21 +03:00
Franz Pletz
3d7a9d1e5d
Merge pull request #321981 from fgaz/nixos/smartd/systembus-notify 2024-06-30 19:41:05 +02:00
Maximilian Bosch
8511063014
grafana: 11.0.0 -> 11.1.0
ChangeLog: https://github.com/grafana/grafana/releases/tag/v11.1.0

A few additional changes were necessary:

* Grafana now refuses to listen on non-IP values and aborts with

    Error: ✗ *apiserver.service run error: invalid IP address: localhost

* packages/grafana-e2e doesn't exist anymore, so the build fixes for
  that could be removed.

* Make sure we always compile the binary parts of cypress.

* Grafana tends to set the minimum Go version to the latest Go version
  available now[1].

* The `url` of a datasource was set to `localhost` by default. I don't
  expect anybody to have not set it when needed, also Grafana aborts now
  if `url` is non-empty for a random walk datasource (which broke the VM
  tests).

[1] https://github.com/grafana/grafana/pull/88794#discussion_r1630563467
2024-06-29 19:09:05 +02:00
Moraxyc
f852b38c42
nixos/nezha-agent: add gpu monitoring option 2024-06-28 16:18:40 +08:00
Sandro
33f83c6252
Merge pull request #316977 from eclairevoyant/fix-mkEnableOption
treewide: fix mkEnableOption usage
2024-06-25 22:42:16 +02:00
Moritz Sanft
43990c5428
nixos/prometheus: remove minio exporter 2024-06-25 11:00:01 +02:00
Franz Pletz
3c033186ee
Merge pull request #316727 from jpds/nixos-tests-prometheus
nixos/prometheus: Revamp tests
2024-06-23 23:05:06 +02:00
Francesco Gazzetta
20a73ab51d nixos/smartd: add systembus-notify notifications 2024-06-23 16:56:54 +02:00
Ryan Lahfa
efcabaa056
Merge pull request #298641 from RaitoBezarius/netdata-45
netdata: 1.44.3 -> 1.45.3
2024-06-21 16:04:11 +02:00
h7x4
ad964c4ebf
Merge pull request #318613 from msanft/grafana-reporter/build-go-module
grafana-reporter: migrate to buildGoModule
2024-06-21 09:21:09 +02:00
Raito Bezarius
aaccbed9fb nixos/netdata: add wireguard support
CAP_NET_ADMIN is required.

Change-Id: I8559e50ccf2d34a4bc7c8f4f2aeafb7771fe751b
Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
2024-06-19 22:30:05 +02:00
Raito Bezarius
6955aab487 nixos/netdata: add docker and podman support
Podman requires `jq`.

Change-Id: Iad2abe1ccf92738da82384f30503f3be6fb11ca7
Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
2024-06-19 22:30:05 +02:00
Wout Mertens
f058c122ee nixos/netdata: remove old lib.mdDoc calls 2024-06-19 22:30:05 +02:00
Raito Bezarius
1cfb30fbdb nixos/netdata: depends on suid-sgid-wrappers
Netdata is critically dependent on working wrappers, thus, we ensure that the service was successful.

Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
2024-06-19 22:30:05 +02:00
Raito Bezarius
3386a3aab0 nixos/netdata: introduce recommendedPythonPackages
This option furthers the "zero configuration" reputation of netdata by collecting
some Python packages available in nixpkgs and offering them to the module.

It is disabled by default.

Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
2024-06-19 22:30:05 +02:00
Raito Bezarius
0794ea59cd nixos/netdata: add default programs for netdata (NVMe, WiFi, APCs)
Netdata is zero-config, so we should provide some *default* packages.

If the closure size is a problem for you, reach out to maintainers.

Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
2024-06-19 22:30:05 +02:00
Raito Bezarius
38cdab1f92 nixos/netdata: add debugfs, logs-management, network-viewer support
Those require some capabilities.

Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
2024-06-19 22:30:04 +02:00
éclairevoyant
7d8742da87
treewide: fix mkEnableOption usage 2024-06-14 02:41:42 -04:00
ibizaman
1bb9bf32b7 prometheus-deluge-exporter: init at 2.4.0-unstable-2024-06-02 2024-06-10 22:02:36 -07:00
f0x52
5c922605bb
nixos/scrutiny: Default collector API url to configured host + port 2024-06-10 19:52:03 +02:00
Florian Klink
d2d2467118
Merge pull request #318306 from flokli/grafana-alloy-module
grafana-alloy: add NixOS module
2024-06-10 19:36:36 +03:00
Sandro
b8d6d611c6
Merge pull request #315380 from lucasew/20240528-fix-loki
nixos/loki: add network.target to after
2024-06-10 13:47:21 +02:00
Florian Klink
1fa96ce4df grafana-alloy, nixos/alloy: add hbjydev to maintainers 2024-06-10 13:40:45 +03:00
Florian Klink
486f515d47 nixos/alloy: init module
This adds a NixOS module for Grafana Alloy.

I started from the grafana-agent one but dropped all settings and config
management whatsoever.

Grafana Alloy uses its own Alloy config format (similar to HCL), which
is not really possible to express in Nix.
Simply pointing to a path in `/etc`, and leaving it up to the user to configure
it via `environment.etc` allows the user to arrange config files however
it makes most sense for them.

The module, systemd unit etc is called "alloy", not "grafana-alloy" to
follow the way it's packaged on other distros, to follow POLA.
2024-06-10 13:32:40 +03:00
Martin Weinelt
10143bc497
nixos/prometheus-fastly-exporter: unwrap execstart
It was only ever used to pass the FASTLY_API_TOKEN, but Environment= can
do that with the %d formatter.
2024-06-10 02:58:07 +02:00
Moritz Sanft
1ddd2fa945
grafana-reporter: migrate to buildGoModule
Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>
2024-06-09 21:50:26 +02:00
Maximilian Bosch
c323ea63f0
nixos/zabbix-proxy: fix option default
Apparently I forgot to test this one while developing
5142b7afa8 ("nixos/postgresql: turn
settings into a submodule").

Apologies!
2024-06-08 15:40:26 +02:00
Jonathan Davies
571db45269
nixos/alertmanager-webhook-logger: init module 2024-06-03 20:33:27 +01:00
Maximilian Bosch
a8377e1b0f
Merge pull request #314828 from peterablehmann/prometheus
nixos/prometheus: add query_log_file option
2024-05-30 21:37:26 +00:00
lucasew
4c621ef886 nixos/loki: add network.target to after
Signed-off-by: lucasew <lucas59356@gmail.com>
2024-05-28 12:02:04 -03:00
Maximilian Bosch
a5f800ab48
Merge pull request #311701 from Ma27/bump-grafana
grafana: 10.4.2 -> 11.0.0
2024-05-26 20:47:56 +00:00
Peter Lehmann
09be64ecc8
nixos/prometheus: Add query_log_file option 2024-05-25 17:03:24 +02:00
emilylange
100c1501e1
nixos/loki: skip config validation when it's impossible to validate
This is a follow-up to 8d7f3c9dbd and
ae48735c53.

Running the config validation in the build sandbox is impossible and
will fail when using `cfg.configFile` or `-config.expand-env=true`.

`cfg.configFile` is a string of a path which is simply not available to
the build sandbox.

Similarly, one may opt to use `cfg.configuration` with environment
variables in combination with `-config.expand-env=true`.

The environment variables referenced that way are also not available
in the build sandbox.

So we skip the validation when it's impossible (`cfg.configFile`) or
likely impossible (`-config.expand-env=true`).

An alternative approach would be something like nixos/prometheus'
`services.prometheus.checkConfig` that takes a boolean and makes
toggling the config validation user-facing.
2024-05-19 05:15:26 +02:00
Pol Dellaiera
ae48735c53
nixos/loki: use cfg.package 2024-05-16 22:11:19 +02:00
Jonathan Davies
8d7f3c9dbd
nixos/loki: Implement configuration verification
Fixes: #293088
2024-05-15 18:12:10 +01:00
Maximilian Bosch
0118cc1d67
grafana: 10.4.2 -> 11.0.0
Announcement: https://grafana.com/docs/grafana/latest/whatsnew/whats-new-in-v11-0/
ChangeLogs:
* https://github.com/grafana/grafana/releases/tag/v11.0.0
* https://github.com/grafana/grafana/blob/v11.0.0/CHANGELOG.md#1100-preview

Legacy notifiers were removed and could thus be removed from the module.
2024-05-14 19:03:25 +02:00
Michael Peyton Jones
bf5bec1538
arbtt: remove michaeplj as maintainer 2024-05-13 10:56:59 +01:00
Pavol Rusnak
23f72abf0c
Merge pull request #308796 from 0xB10C/2024-05-promethues-bitcoin-exporter-expose-package
nixos/prometheus-bitcoin-exporter: expose package option
2024-05-03 23:09:17 +02:00
0xb10c
0c4215faf0
nixos/prometheus-bitcoin-exporter: expose package option 2024-05-03 15:23:36 +02:00
Sandro
4a2f53b67a
Merge pull request #280940 from e1mo/fix-parsedmarc-smtp-to 2024-05-02 11:16:27 +02:00
Leona Maroni
6c69cfb804
nixos/vmagent: use dynamic user and cache directory 2024-04-28 13:55:47 +02:00
Leona Maroni
5f27e501a1
nixos/vmagent: remove global with lib; 2024-04-28 13:53:10 +02:00
e1mo
896919ded5 nixos/parsedmarc: Fix smtp.to and default elasticsearch url
Previously evaluaton would fail if `smtp.to` was not set, since the
default case was not handled.

With the current versions of the python elasticsearch libraries, any
configuration containing the modules default would fail since it's not a
valid URL.

The issue adressed in #279068 is also adressed, thuse closes #279068.
2024-04-27 04:55:52 +02:00
Robert Schütz
1f670eeed3 nixos/parsedmarc: use top-level parsedmarc package 2024-04-27 04:55:52 +02:00
Pyrox
ae359d1ef2
nixos/prometheus/exporters: Remove all with lib; usage
Fixes issues described in #208242 for this part of the nixpkgs tree.

There are no behavioral changes in this, it only adjusts the code so
that it is easier to understand.
2024-04-24 14:42:16 -04:00
Maciej Krüger
657e5c43be
Merge pull request #283298 from mkg20001/rustdesk-dynamic
rustdesk-server: use DynamicUser
2024-04-24 20:03:44 +02:00
Maciej Krüger
9c565e0e69
rustdesk-server: use DynamicUser
this was a suggestion on #272501
2024-04-24 19:00:37 +02:00
Sandro
1166097197
Merge pull request #302375 from SebastianWendel/init-prometheus-dnssec-exporter
nixos/prometheus-dnssec-exporter: init
2024-04-17 21:48:59 +02:00
Sarah Brofeldt
ab7b278a52
Merge pull request #304205 from cafkafk/fix-281851
nixos/prometheus-redis-exporter: allow `AF_UNIX`
2024-04-17 07:57:43 +02:00
Christina Sørensen
1dcf30f141
nixos/prometheus-redis-exporter: allow AF_UNIX
Fixes: #271851

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-04-17 07:17:07 +02:00
K900
784330e275 treewide: nuke remaining mdDoc leftovers
bors when
2024-04-15 20:12:24 +03:00
Sandro Jäckel
de5b46c471
nixos/prometheus: use ports type 2024-04-14 00:32:23 +02:00
stuebinm
6afb255d97 nixos: remove all uses of lib.mdDoc
these changes were generated with nixq 0.0.2, by running

  nixq ">> lib.mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix
  nixq ">> mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix
  nixq ">> Inherit >> mdDoc[remove]" --batchmode nixos/**.nix

two mentions of the mdDoc function remain in nixos/, both of which
are inside of comments.

Since lib.mdDoc is already defined as just id, this commit is a no-op as
far as Nix (and the built manual) is concerned.
2024-04-13 10:07:35 -07:00
Sebastian Wendel
8737490803 nixos/prometheus.exporters.dnssec: init module 2024-04-12 12:23:47 +02:00
Jos van Bakel
2e10f813fe
nixos/prometheus-nats-exporter: new module 2024-04-10 17:12:49 +02:00
Aleksana
48a26791f1
Merge pull request #296759 from jpds/thanos-grpc-compression-opt
nixos/thanos: Added grpc-compression option
2024-04-08 00:43:07 +08:00
Sandro
4e6092c8cd
Merge pull request #281278 from Moraxyc/nezha-agent 2024-04-06 12:35:07 +02:00
Maciej Krüger
598c71dac6
Merge pull request #222415 from justinas/prometheus-exporters-nftables
prometheus-exporters: support nftables
2024-04-03 01:28:20 +02:00
Moraxyc
c1a41863db
nixos/nezha-agent: init module 2024-04-01 03:38:51 +08:00
Maximilian Bosch
5142b7afa8
nixos/postgresql: turn settings into a submodule
The main idea behind that was to be able to do more sophisticated
merging for stuff that goes into `postgresql.conf`:
`shared_preload_libraries` is a comma-separated list in a `types.str`
and thus not mergeable. With this change, the option accepts both a
comma-separated string xor a list of strings.

This can be implemented rather quick using `coercedTo` +
freeform modules. The interface still behaves equally, but it allows to
merge declarations for this option together.

One side-effect was that I had to change the `attrsOf (oneOf ...)` part into
a submodule to allow declaring options for certain things. While at it,
I decided to move `log_line_prefix` and `port` into this structure as
well.
2024-03-30 14:23:05 +01:00
Janne Heß
fcc95ff817 treewide: Fix all Nix ASTs in all markdown files
This allows for correct highlighting and maybe future automatic
formatting. The AST was verified to work with nixfmt only.
2024-03-28 09:28:12 +01:00
Janne Heß
bc77c7a973 treewide: Mark Nix blocks in markdown as Nix
This should help us with highlighting and future formatting.
2024-03-28 09:28:12 +01:00
Marie Ramlow
88daab5195 nixos/prometheus-fritz-exporter: init module 2024-03-23 16:32:25 +01:00
Jonathan Davies
50fcbfbe26 nixos/thanos: Added query.grpc-compression and receive.grpc-compression option. 2024-03-22 12:21:15 +00:00
Martin Weinelt
c77d192eb4
prometheus-kea-exporter: 0.6.1 -> 0.7.0
https://github.com/mweinelt/kea-exporter/blob/v0.7.0/HISTORY

Updates the module to use the target name, because it now supports both
UDS as well as HTTP URLs.
2024-03-21 06:17:59 +01:00
Martin Weinelt
d702c91302
nixos/prometheus/exporters: pass utils into exporter modules
This is useful, because it provides escapeSystemdShellArgs.
2024-03-21 05:27:21 +01:00
MinerSebas
9d384c350b nixos/scrutiny: Order scrutiny-collector after scrutiny 2024-03-18 16:30:51 +01:00
MinerSebas
2210ac7764 nixos/scrutiny: Order scrutiny.service after influxdb2.service 2024-03-16 18:02:17 +01:00
MinerSebas
7d6917088c nixos/scrutiny: Dont enable influxdb when only using scrutiny-collector 2024-03-16 18:02:10 +01:00
éclairevoyant
e7db1f299c
nixos/scrutiny: fix timer not auto-starting 2024-03-12 22:25:54 -04:00
éclairevoyant
2319821137
nixos/scrutiny: default collector api endpoint port to point at web app port 2024-03-07 23:21:53 -05:00
éclairevoyant
fc5116d75c
nixos/scrutiny: clean up mkEnableOption definitions 2024-03-07 23:21:53 -05:00
éclairevoyant
ce5dbf1b7b
nixos/scrutiny: inherit lib bindings 2024-03-07 23:21:52 -05:00
éclairevoyant
4e710d5221
nixos/scrutiny: remove redundant lib.mdDoc 2024-03-07 23:21:52 -05:00
Franz Pletz
f05e5f3a51
Merge pull request #285807 from MinerSebas/prometheus-restic-exporter
prometheus-restic-exporter: 1.4.0 -> 1.5.0
2024-03-06 14:35:24 +01:00
Sandro Jäckel
04d33b98e1
treewide: stop using deprecated git.io shortlink service 2024-03-05 22:58:29 +01:00
Jon Seager
d0b85d47c6
Merge pull request #289863 from mjm/nut-exporter-variables
nixos/prometheus-nut-exporter: use extraFlags, add nutVariables option
2024-02-27 11:11:30 +00:00
Sandro
78745f4652
Merge pull request #289934 from jnsgruk/scrutiny 2024-02-23 00:43:55 +01:00
Jon Seager
88d637c6dd
nixos/scrutiny: init 2024-02-22 21:20:10 +00:00
Martin Weinelt
878609256b
Merge pull request #287348 from mweinelt/fastly-exporter-module
nixos/prometheus-fastly-exporter: fix runtime environment, refactor, make things prettier
2024-02-22 16:37:51 +01:00
Matt Moriarity
bbad81f937 nixos/prometheus-nut-exporter: use extraFlags, add nutVariables option 2024-02-18 15:55:09 -07:00
Jennifer Graul
c412263319
nixos/rustdesk-server: add extra args options for hbbr and hbbs 2024-02-12 13:41:08 +01:00
Martin Weinelt
a43d9cd69a
nixos/prometheus-fastly-exporter: fix runtime environment
- Make the token a required option
- Drop the proto from the listen parameter
- Use systemd credentials to pass the token file
- Drop debug flag, use extraArgs instead
- Actually hook up extraArgs
- Escape shell arguments
- Drop overly broad `with lib` statement
2024-02-09 02:24:48 +01:00
MinerSebas
de306fb3d6 nixos/prometheus-restic-exporter: Use LoadCredential for password file 2024-02-02 14:47:46 +01:00
MinerSebas
e7a2d8aa18 prometheus-restic-exporter: 1.4.0 -> 1.5.0 2024-02-02 14:47:43 +01:00
h7x4
932344b54a
Merge pull request #270475 from MinerSebas/prometheus-restic-exporter
prometheus-restic-exporter: init at 1.4.0
2024-02-01 20:05:11 +01:00
MinerSebas
d1f031cbbd nixos/prometheus-restic-exporter: init module 2024-02-01 14:48:56 +01:00
Franz Pletz
9e485b2169
Merge pull request #284326 from WilliButz/snmp-exporter-module/fix-logPrefix
nixos/prometheus-snmp-exporter: fix undefined logPrefix
2024-01-31 19:55:40 +01:00