mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
nixos/prometheus: add fallback_scrape_protocol and scrape_protocols options (#361223)
This commit is contained in:
commit
89a3c7e9f0
1 changed files with 10 additions and 0 deletions
|
@ -274,6 +274,7 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config
|
||||||
promTypes.scrape_config = types.submodule {
|
promTypes.scrape_config = types.submodule {
|
||||||
options = {
|
options = {
|
||||||
authorization = mkOption {
|
authorization = mkOption {
|
||||||
|
@ -299,6 +300,15 @@ let
|
||||||
globally configured default.
|
globally configured default.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
scrape_protocols = mkOpt (types.listOf types.str) ''
|
||||||
|
The protocols to negotiate during a scrape with the client.
|
||||||
|
'';
|
||||||
|
|
||||||
|
fallback_scrape_protocol = mkOpt types.str ''
|
||||||
|
Fallback protocol to use if a scrape returns blank, unparseable, or otherwise
|
||||||
|
invalid Content-Type.
|
||||||
|
'';
|
||||||
|
|
||||||
metrics_path = mkDefOpt types.str "/metrics" ''
|
metrics_path = mkDefOpt types.str "/metrics" ''
|
||||||
The HTTP resource path on which to fetch metrics from targets.
|
The HTTP resource path on which to fetch metrics from targets.
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue