summary refs log tree commit diff
path: root/nixos/tests/prometheus.nix
AgeCommit message (Collapse)AuthorFilesLines
2021-11-21nixos/qemu-vm: default memorySize 384 -> 1024Artturin1-1/+0
the default hasn't been changed since 2009 this can improve our test performances nixos/tests: remove explicit memorySize <1024 1024MiB is now the default
2021-11-07nixos/prometheus: remove services.prometheus.environmentFileBas van Dijk1-10/+1
The option `services.prometheus.environmentFile` has been removed since it was causing [issues](https://github.com/NixOS/nixpkgs/issues/126083) and Prometheus now has native support for secret files.
2021-11-04module/prometheus: optionally support reloading on config changesBas van Dijk1-0/+100
The new option `services.prometheus.enableReload` has been introduced which, when enabled, causes the prometheus systemd service to reload when its config file changes. More specifically the following property holds: switching to a configuration (`switch-to-configuration`) that changes the prometheus configuration only finishes successully when prometheus has finished loading the new configuration. `enableReload` is `false` by default in which case the old semantics of restarting the prometheus systemd service are in effect.
2020-12-23nixos/tests/prometheus: increase `memorySize`Maximilian Bosch1-0/+2
Apparently, our NixOS tests need more RAM now. This was needed for e.g. the `gitea`-test as well[1]. [1] affb72eccd5284defab1b557be65f45f8a02c86d
2020-11-01nixos/tests/prometheus: remove invalid thanos config flagAndreas Rammhold1-1/+0
Upstream has apparently changed the configuration format and is now throwing an error when the `encrypt_sse` option is set. According to the current version of the documentation encryption moved to the `sse_config` option that (is optional and) offers all the features we do not use or care about for this test.
2020-10-25nixos/tests/prometheus: Use curl --failScott Worley1-2/+2
2020-08-20prometheus: 2.19.3 -> 2.20.1, fix thanos testWilliButz1-2/+5
2020-05-08prometheus: 2.17.2 -> 2.18.1Sergey Lukjanov1-1/+1
2019-11-24nixos/prometheus: Port prometheus test to pythonJacek Galowicz1-36/+42
2019-09-06nixos/tests: remove prometheus_1 testWilliButz1-32/+223
2018-11-23nixos/prometheus: require one alertmanager configuration parameterAndreas Rammhold1-0/+22
This commit adds an assertion that checks that either `configFile` or `configuration` is configured for alertmanager. The alertmanager config can not be an empty attributeset. The check executed with `amtool` fails before the service even has the chance to start. We should probably not allow a broken alertmanager configuration anyway. This also introduces a test for alertmanager configuration that piggy backs on the existing prometheus tests.
2018-07-20[bot] nixos/*: remove unused arguments in lambdasvolth1-1/+1
2017-10-16nixos/tests: unbreak prometheus testBjørn Forsman1-3/+0
Commit 271d3f7a432f ("prometheus service: globalConfig.labels is obsolete") removed globalConfig.labels. Update the test config accordingly.
2016-12-20nixos: unbreak prometheus testBjørn Forsman1-1/+1
target_groups was renamed to static_configs in d459916504 ("prometheus service: rename values to match prometheus 1.0 naming."). Catch up.
2016-09-04prometheus service: addBenjamin Staffin1-0/+29
This is based on @benleys work: https://github.com/NixOS/nixpkgs/pull/8216 I updated changed the user and group ids.