Commit Graph

1301 Commits

Author SHA1 Message Date
Echo Nolan
934a337a13 nixos/telegraf: make sure ping executable is available when trying to ping
We need ping to be in PATH of the service otherwise it can't ping. This commit
adds it, conditional on one of the inputs being a ping task.
2024-08-31 15:29:04 -04:00
Philip Taron
117f3ceb51
treewide/nixos: remove with lib; part 1 (#335603) 2024-08-29 15:42:04 -07:00
Felix Buehler
14dad27e70 nixos/services.prometheus.exporters: remove with lib; 2024-08-30 00:30:58 +02:00
Felix Buehler
d27bffefab nixos/power.ups: remove with lib; 2024-08-29 00:26:49 +02:00
Yury Shvedov
183a78cb56 nixos/gitwatch: add module
Create module for gitwatch script. This module runs systemd services.
You are able to have several services for different paths at once.

Change-Id: If6100e883dd12a428f79881a80b9b88e683f6db9
2024-08-27 07:35:47 +00:00
Bjørn Forsman
1edbc4fa0d nixos/ups: change upsmon option type from str to enum
According to `man upsd.users`, the option is 'either set to "primary" or
"secondary"'.
2024-08-22 21:25:47 +02:00
Bjørn Forsman
dc7379e04f nixos/ups: restart upsdrv.service on config changes
Or else new configuration won't take effect until the next boot (or if
the user manually restarts the service).
2024-08-20 22:08:01 +02:00
Ivan Trubach
63caf38e33 nixos/prometheus.exporters.pgbouncer: fix escaping connectionStringFile in shell arguments 2024-08-08 05:54:45 +03:00
Ivan Trubach
6008ed89f6 nixos/prometheus.exporters.pgbouncer: do not assume that pgbouncer runs on localhost
PgBouncer instance running on localhost may not be the on being
monitored in connectionString. Remove checks that forbid valid
configuration from being used and instead document requirements for
PgBouncer configuration when used with the exporter.
2024-08-08 05:54:45 +03:00
Sam Grimee
b5d6de74ed nixos/librenms: fix lnms wrapper to ensure run by correct user
Complementary to the fix for #322344
2024-08-07 11:32:04 +02:00
Sam Grimee
4397a6d0a6 nixos/librenms: fix artisan wrapper
Fixes how the librenms-artisan wrapper passes arguments to allow invocations with multiple complex parameters to work.
2024-08-07 11:32:04 +02:00
Sam Grimee
dc6c6e42e4 nixos/librenms: add socket auth for mysql
This allows librenms to use socket authentication to the mysql package out of the box if installed under
the same username, avoiding complex DB password initialization steps.
2024-08-07 11:32:04 +02:00
Guanran Wang
ea6f4d5e86
treewide: remove periods from lib.mkEnableOption
Co-authored-by: éclairevoyant <848000+eclairevoyant@users.noreply.github.com>
2024-08-02 23:55:32 +08:00
Peter Hoeg
c3392ad349 nixos/prometheus-smartctl-exporter: providing the path to the binary is no longer needed 2024-07-31 10:48:38 +02:00
Florian
6d0f55ef84
Merge pull request #328148 from NukaDuka/prometheus-pve-exporter
prometheus-pve-exporter: 3.2.4 -> 3.4.3
2024-07-26 20:21:21 +02:00
Sigmanificient
543cd40ecc treewide: remove trailing space in description
Done using `grep -rP 'description\s+=\s+"[^"]+[ ]";' | cut -d ':' -f 1 |
xargs -i nvim {}` and sorting the opened files by hand, avoiding
generated packages list
2024-07-26 03:38:50 +02:00
Franz Pletz
b865ea167d
Merge pull request #321644 from pedorich-n/netdata-146 2024-07-23 23:23:30 +02:00
PopeRigby
a5eaa1df10
nixos/scrutiny: enable collector by default if scrutiny is enabled (#329069) 2024-07-22 07:38:45 +01:00
Sandro
1607a42b49
Merge pull request #290452 from flandweber/borgmatic-exporter
borgmatic-exporter: init at 0.2.5
2024-07-17 19:08:28 +02:00
Kartik Gokte
dbba11e241 nixos/prometheus-pve-exporter: added new options introduced in v3.4.3 2024-07-17 16:09:11 +05:30
Finn Landweber
0d58b75cba
added prometheus-borgmatic-exporter module 2024-07-16 12:17:49 +02:00
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