Jade Lovelace
fe474ed61a
nixos: fix remaining services for network-online dep fix
2024-01-19 00:11:34 -08:00
WilliButz
bb9c7762bc
nixos/prometheus-snmp-exporter: add config check
...
This is introduced and enabled by default because the config syntax for
the exporter changed with release 0.23.0.
This should make the breaking config change obvious before services are
deployed with an incompatible old config.
The check is based on the check present in the blackbox-exporter module.
2024-01-17 20:34:30 +01:00
WilliButz
a8ea9fe492
nixos/prometheus-snmp-exporter: switch to new config syntax
...
Introduced with version 0.23.0, see
b75fc6b839/auth-split-migration.md
2024-01-17 20:32:45 +01:00
Janik
6be9d4fc21
Merge pull request #266283 from Noodlesalat/ping-exporter-1.1.0
...
ping_exporter: init at 1.1.0
2023-12-31 20:50:30 +01:00
Martin Weinelt
d4c4e0269d
Merge pull request #274460 from mweinelt/kea-ipc-runtimedir
...
nixos/kea: return to merged runtime directory; preserve runtime directories
2023-12-27 02:08:14 +01:00
Dee Anzorge
b4b9b08426
nixos/prometheus-exporters/kea: run under same user/group as kea
...
This fixes access to the kea unix sockets, after enabling
RuntimeDirectoryPreserve on the kea units.
https://github.com/NixOS/nixpkgs/pull/274460#issuecomment-1869702893
2023-12-26 21:42:58 +01:00
Nudelsalat
5d85f0eee8
nixos/prometheus-ping-exporter: init
2023-12-24 18:11:25 +01:00
WilliButz
ac58b65cf5
Merge pull request #275112 from r-ryantm/auto-update/prometheus-nginx-exporter
...
prometheus-nginx-exporter: 0.11.0 -> 1.0.0
2023-12-20 20:27:28 +01:00
Franz Pletz
faff9de754
nixos/prometheus/nginx-exporter: fix args for 1.0
2023-12-20 18:23:29 +01:00
Fugi
6430b7a181
nixos/prometheus-sabnzbd-exporter: use LoadCredential for apiKeyFile
2023-12-18 14:48:49 +01:00
Martin Weinelt
cd6ccb1737
Revert "kea: use separate runtime directories for each service"
...
This reverts commit 413011ddf4 .
Using separate lockfile directories prevents the different kea daemons
from using the interprocess sync lockfile.
Keeping the runtime directory around might be the better approach.
2023-12-15 13:51:19 +01:00
Janne Heß
6ad3977ec9
Merge pull request #253184 from tilpner/prometheus-headers
...
nixos/prometheus: add remote{Read, Write}.headers options
2023-12-13 21:53:52 +01:00
Victor Hugo Aguiar Pacce
5c6c35d0f8
nixos/prometheus: add enableAgentMode option
...
Required for running a prometheus service under agent mode
Signed-off-by: Victor Hugo Aguiar Pacce <victorhugoaguiarpacce@gmail.com>
2023-12-05 11:24:04 -03:00
undefined
3c4370ca2f
prometheus-mongodb-exporter: fix service ExecStart
2023-12-03 17:54:21 +08:00
h7x4
79d3d59f58
treewide: replace mkPackageOptionMD with mkPackageOption
2023-11-30 19:03:14 +01:00
h7x4
0a37316d6c
treewide: use mkPackageOption
...
This commit replaces a lot of usages of `mkOption` with the package
type, to be `mkPackageOption`, in order to reduce the amount of code.
2023-11-27 01:28:36 +01:00
Nick Cao
0840c28c43
Merge pull request #268991 from undefined-moe/mongodb-exporter
...
add prometheus-mongodb-exporter
2023-11-22 09:29:50 -05:00
undefined
b46ec2c40f
nixos/prometheus-mongodb-exporter: init module
2023-11-22 09:42:27 +08:00
Felix Buehler
4d1680ccc7
nixos/exportarr: init
2023-11-07 20:56:32 +01:00
chayleaf
413011ddf4
kea: use separate runtime directories for each service
...
Kea may clean the runtime directory when starting (or maybe systemd does
it). I ran into this issue when restarting Kea after changing its
configuration, so I think the fact it normally doesn't clean it is a
race condition (it's cleaned on service start, and normally all Kea
services start at roughly the same time).
2023-10-26 02:51:43 +07:00
Martin Weinelt
589ccfdac1
nixos/prometheus-exporters/knot: update for new exporter
...
The new exporter has proper console scripts definition, that sets up
another executable name.
The package now also shells out to pidof, which is why we require procps
in the unit PATH.
2023-10-23 13:19:52 +02:00
Bjørn Forsman
142074c2a8
nixos: fix bad mkEnableOption descriptions
...
Fix descriptions that don't account for (1) the "Whether to enable"
prefix or (2) the automatically added trailing dot.
2023-10-20 16:22:40 +01:00
Alexandre Iooss
925a8806dc
nixos/prometheus: fix cross-compilation
2023-10-14 16:45:18 +02:00
Arnout Engelen
6071292b2a
Merge pull request #243338 from raboof/prometheus-imap-mailstat-exporter-init-at-2023-06-20
...
prometheus-imap-mailstat-exporter: init at 0.0.1
2023-10-11 17:33:25 -03:00
1000101
3b094812b1
prometheus-pgbouncer-exporter: init at 0.7.0
2023-10-07 11:44:40 +02:00
WilliButz
2d30a37d9f
Merge pull request #248925 from FugiMuffi/prometheus-sabnzbd-exporter
...
prometheus-sabnzbd-exporter: init at 0.1.70
2023-09-25 12:09:36 +02:00
hexchen
8ec182e570
nixos/prometheus: fix blackbox exporter
2023-09-21 08:49:10 +02:00
Arnout Engelen
81daaece83
prometheus-imap-mailstat-exporter: init at 0.0.1
...
To be able to monitor the number of (unread) mails in mailboxes
2023-09-20 22:29:57 +02:00
Arnout Engelen
1bf360af28
prometheus-exporter-nextcloud: require either tokenFile or passwordFile
...
follow-up on 28b3156bc6 which broke
when tokenFile was left empty.
Making both options nullable also allows us to provide a more meaningful
error message when neither authentication method is configured.
2023-09-19 13:19:54 +02:00
tilpner
8562dc924d
nixos/prometheus: add remote{Read, Write}.headers options
2023-09-03 23:36:49 +02:00
Martin Weinelt
73c5a5a778
nixos/prometheus/unbound-exporter: update for new package
...
The command line interface changed slightly, but still supports the TCP
as well as the UDS control interface.
2023-08-28 23:21:52 +02:00
Franz Pletz
fe907aa37e
Merge pull request #242365 from h7x4/add-mysqld-exporter
...
services/prometheus/exporters: add mysqld
2023-08-25 23:56:22 +02:00
Arnout Engelen
4dcaa04151
Merge pull request #242942 from raboof/prometheus-nextcloud-auth-token
...
prometheus-exporter-nextcloud: support for auth tokens
2023-08-25 09:54:23 +02:00
h7x4
8981783b60
services/prometheus/exporters: add mysqld
...
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2023-08-13 19:46:30 +02:00
Fugi
5e75b36302
nixos/prometheus-sabnzbd-exporter: init
2023-08-13 16:31:52 +02:00
codec
47db2bfffb
prometheus-idrac-exporter: init at unstable-2023-06-29
2023-08-04 00:57:19 +02:00
WilliButz
bf48dde359
Merge pull request #233659 from seberm/prometheus-ipmi-exporter-family-restriction
...
nixos/prometheus-ipmi-exporter: allow AF_UNIX address family
2023-07-31 13:57:15 +02:00
Felix Bühler
0a2745684e
Merge pull request #239624 from Stunkymonkey/use-optionalString-then
...
treewide: use optionalString instead of 'then ""'
2023-07-22 13:02:47 +02:00
Arnout Engelen
7e26c8d097
prometheus-exporter-nextcloud: support for auth tokens
...
Fixes #176849
2023-07-12 00:32:17 +02:00
Gaël Reyrol
f856229c9a
nixos/prometheus/exporters: adjust scaphandre assertions
2023-06-30 15:10:38 +02:00
Gaël Reyrol
1a821e7bf5
nixos/prometheus-exporters: add php-fpm
2023-06-28 22:11:36 +02:00
Gaël Reyrol
e11f06a951
services/prometheus/exporters: add scaphandre
2023-06-27 20:50:58 +02:00
Felix Buehler
f3719756b5
treewide: use optionalString instead of 'then ""'
2023-06-24 20:19:19 +02:00
Jenny
3a86958c97
prometheus-junos-czerwonk-exporter: init at 0.10.1 + module ( #235433 )
2023-06-13 10:15:05 +02:00
Gabriel Fontes
dff2e184f4
nixos/prometheus.exporters.graphite: init
2023-06-03 03:13:09 +00:00
Otto Sabart
2c664e3a65
nixos/prometheus-ipmi-exporter: allow AF_UNIX address family
...
This family is required for ipmi collector.
2023-05-23 21:00:00 +02:00
figsoda
701bcdbead
nixos: fix typos
2023-05-19 22:31:04 -04:00
Weijia Wang
419d7f9c8d
Merge pull request #230753 from fetsorn/typos
...
several typos
2023-05-09 19:16:12 +03:00
fetsorn
1a4e993104
nixos/prometheus: fix typo
...
"nixpgs" -> "nixpkgs"
2023-05-09 18:02:17 +04:00
Aaron Andersen
cf0327810b
Merge pull request #207093 from ymarkus/alertmanager
...
nixos/alertmanager: add checkConfig option
2023-05-08 20:15:17 -04:00
Artturi
b83db86a9e
Merge pull request #222080 from Stunkymonkey/nixos-optionalString
2023-04-20 16:07:30 +03:00
ajs124
6fc4e722c4
nixos/prometheus-smartctl-exporter: fix evaluation after adding cfg.extraFlags
...
was done in 3c61665b7f but does not evaluate
error: value is a string with context while a list was expected
2023-04-13 17:32:50 +02:00
Jakub Sokołowski
3c61665b7f
nixos/prometheus-smartctl-exporter: support extraFlags
...
Seems to be ignored currently. Useful for `-verbose` flag.
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-04-12 23:56:32 +02:00
Felix Buehler
327b0cff7a
treewide: use more lib.optionalString
2023-04-07 13:38:33 +02:00
Justinas Stankevicius
eddd1e46e6
prometheus-exporters: support nftables
2023-03-21 22:24:37 +02:00
Alvar Penning
0810a6e018
nixos/prometheus.alertmanagerIrcRelay: init
...
Co-authored-by: Martin Weinelt <mweinelt@users.noreply.github.com>
2023-03-20 15:57:11 +01:00
Franz Pletz
bc0a1dd982
Merge pull request #220461 from SuperSandro2000/prometheus
...
prometheus: 2.41.0 -> 2.42.0, split outputs, other cleanups
2023-03-14 05:28:59 +01:00
Sandro Jäckel
da2f281453
prometheus: split doc and cli into extra outputs
2023-03-10 11:45:45 +01:00
Sandro
bca9ab3d26
Merge pull request #205060 from jslight90/patch-8
...
nixos/prometheus: Add new relabel_configs actions
2023-03-10 11:19:31 +01:00
pennae
bf4c0c1900
nixos/*: remove trailing period in mkEnableOptions
...
those are added by mkEnableOption, and .. is replaced to … by markdown
processing.
2023-02-08 15:23:34 +01:00
Pol Dellaiera
4e7f20ade9
nixos/prometheus-pihole-exporter: update configuration options
...
The `interval` configuration option doesn't exist and has been removed.
The `timeout` configuration option has been added.
2023-02-06 11:35:51 +01:00
Thomas Gerbet
34f5d8cd24
Merge pull request #213534 from drupol/add-prometheus-shelly-exporter
...
prometheus-shelly-exporter: init at 1.0.0
2023-02-02 00:11:56 +01:00
Pol Dellaiera
9f17e032e7
prometheus-shelly-exporter: add NixOS module
2023-02-01 19:49:33 +01:00
pennae
0a6e6cf7e6
nixos/manual: render module chapters with nixos-render-docs
...
this converts meta.doc into an md pointer, not an xml pointer. since we
no longer need xml for manual chapters we can also remove support for
manual chapters from md-to-db.sh
since pandoc converts smart quotes to docbook quote elements and our
nixos-render-docs does not we lose this distinction in the rendered
output. that's probably not that bad, our stylesheet didn't make use of
this anyway (and pre-23.05 versions of the chapters didn't use quote
elements either).
also updates the nixpkgs manual to clarify that option docs support all
extensions (although it doesn't support headings at all, so heading
anchors don't work by extension).
2023-01-27 20:07:34 +01:00
Sandro
fa8ae2120d
Merge pull request #208715 from elohmeier/prom-rspamd-fix
...
Fixes https://github.com/NixOS/nixpkgs/issues/210390
2023-01-15 02:49:52 +01:00
pennae
53fc887582
nixos/manual: move "edit the MD file" comments to generated XML
2023-01-10 12:34:37 +01:00
pennae
bf92eaebe4
nixos/manual: generate module chapters with md-to-db.sh
2023-01-10 10:32:00 +01:00
pennae
23ea73b416
nixos/manual: enable smart quotes for all MD chapters
2023-01-10 10:31:59 +01:00
pennae
ce319f60ad
nixos/prometheus/exporters: convert manual chapter to MD
2023-01-10 10:31:57 +01:00
Enno Richter
ed060ff92b
prometheus-exporters: update rspamd exporter for prometheus-json-exporter >=0.5.0
2023-01-02 06:36:22 +01:00
Yannick Markus
060f0dd496
nixos/alertmanager: add checkConfig option
2022-12-21 12:29:48 +01:00
Sandro
bf46d7b626
Merge pull request #172084 from priegger/prometheus-statsd-exporter
2022-12-19 23:16:02 +01:00
figsoda
6bb0dbf91f
nixos: fix typos
2022-12-17 19:31:14 -05:00
Shawn8901
6e530b9eda
prometheus: Adds an option for web.config.file which can specity settings including authorization.
2022-12-15 10:14:42 +01:00
Shawn8901
470247d433
prometheus: Use yaml format generator instaed json for prometheus.yml
...
Additionally remove an unused variable
2022-12-15 10:11:25 +01:00
Bobby Rong
9015c9f389
Merge pull request #205525 from SuperSandro2000/prometheus2
...
nixos/alertmanager: fix renamed option
2022-12-12 18:08:36 +08:00
Sandro Jäckel
a49606696e
nixos/alertmanager: fix renamed option
2022-12-10 20:11:18 +01:00
Martin Weinelt
fdcc9e8202
nixos/prometheus.exporters.smartctl: Simplify DeviceAllow logic
...
Setting up the DeviceAllow list with explicitly configured devices was a
nice idea, but sometimes a configured device (`/dev/nvme0n1` an NVMe
namespace) has a parent device (`/dev/nvme0`) that smartctl needs to
access to query metrics.
Falling back to the block and character definitions is probably a valid
fallback.
2022-12-09 01:40:01 +01:00
Sergey Lukjanov
a49feed255
nixos/prometheus.exporters.smartctl: use cli args instead of config
...
Config support was dropped and replaced with CLI args
2022-12-08 15:31:33 -08:00
Jeff Slight
61840f7181
nixos/prometheus: Add new relabel_configs actions
...
The relabel_configs option for scrape_configs is missing two options: lowercase and uppercase
https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
2022-12-07 15:22:04 -08:00
Daniel Nagy
ad866e565d
treewide: switch to port type for nixos modules
2022-12-08 00:00:00 +01:00
Luke Granger-Brown
c7918fed9e
nixos/prometheus/unifi-poller: rename to unpoller.
2022-12-03 20:12:54 +00:00
Sandro
068e7cb340
Merge pull request #201817 from jhh/nut-exporter
2022-12-03 02:22:48 +01:00
Daniel Nagy
dbe8182e74
treewide: switch to port type for nixos modules
2022-12-01 22:30:00 +01:00
Sandro
03b9249971
Merge pull request #202087 from Shawn8901/pve-load-credential
2022-11-28 23:17:26 +01:00
Jeff Hutchison
a587e528c5
Add prometheus-nut-exporter module
2022-11-24 07:50:09 -05:00
Mathieu Fenniak
eed28ead0c
Workaround for upstream crash when !datadog
2022-11-23 12:58:07 -07:00
Mathieu Fenniak
e7f761fe60
Fix executable name
2022-11-23 10:31:46 -07:00
Shawn8901
5ed08d83f7
nixos/prometheus-pve-exporter: Use LoadCredentials to make configFiles readable to DynamicUser
2022-11-21 20:20:50 +01:00
Franz Pletz
8cc2dcce7d
Merge pull request #199524 from ymarkus/zfs-exporter
...
nixos/prometheus-zfs-exporter: init
2022-11-11 02:01:13 +01:00
Franz Pletz
286f868a5c
Merge pull request #162057 from jdheyburn/jdheyburn-unifi-prometheus-exporter-loki
2022-11-11 01:31:41 +01:00
Franz Pletz
8e9f00682d
nixos/prometheus-zfs-exporter: mdDoc descriptions
2022-11-11 01:29:10 +01:00
Daniel Nagy
b4674b39c1
treewide: use mkEnableOption in nixos modules
2022-11-10 09:30:00 +01:00
Daniel Nagy
095269c862
treewide: use types.port in nixos modules
2022-11-10 09:30:00 +01:00
Maximilian Bosch
dcb32beda0
nixos/prometheus: fix startup w/hardened service
...
See the discussion below the original PR[1] and #197443 for more
context.
I guess I missed that upon review because the branch was too old and I
cherry-picked the commit onto my deployment branch which is based on
22.05. Sorry for that!
[1] https://github.com/NixOS/nixpkgs/pull/162784#issuecomment-1306848036
2022-11-08 17:46:35 +01:00
Maximilian Bosch
58227c4de0
Merge pull request #162784 from amarshall/prom-svc-harden
...
nixos/prometheus: Harden systemd service
2022-11-07 15:03:43 +01:00
Yannick Markus
50f308b059
nixos/prometheus-zfs-exporter: init
2022-11-04 14:43:01 +01:00
KFears
b3782f29ff
nixos/prometheus-node-exporter: fix netdev collect
...
Netdev collector needs AF_NETLINK permissions to work. It will fail with
the message "couldn't get netstats: socket: address family is not
supported by protocol" otherwise.
2022-10-30 14:59:05 +04:00
Martin Weinelt
96d7f29087
Merge pull request #176553 from MalteT/fix/smartctl-exporter-override
2022-10-27 15:50:54 +02:00
MidAutumnMoon
afb8d0e5a6
nixos/prometheus-smartctl: set proper SystemCallFilter
2022-10-25 16:47:09 +08:00