Commit 3eaeab40 authored by Brian Brazil's avatar Brian Brazil

Document URL parameter configuration for Prometheus

parent 132e87a8
...@@ -131,6 +131,10 @@ job_name: <name> ...@@ -131,6 +131,10 @@ job_name: <name>
# The URL scheme with which to fetch metrics from targets. # The URL scheme with which to fetch metrics from targets.
[ scheme: <scheme> | default = http ] [ scheme: <scheme> | default = http ]
# Optional HTTP URL parameters.
params:
[ <string>: [<string>, ...] ]
# Optional authentication information. Note that `basic_auth`, `bearer_token` # Optional authentication information. Note that `basic_auth`, `bearer_token`
# `bearer_token_file` options are mutually exclusive. # `bearer_token_file` options are mutually exclusive.
...@@ -518,7 +522,8 @@ label is set to the `job_name` value of the respective scrape configuration. ...@@ -518,7 +522,8 @@ label is set to the `job_name` value of the respective scrape configuration.
The `__address__` label is set to the `<host>:<port>` address of the target. The `__address__` label is set to the `<host>:<port>` address of the target.
After relabeling, the `instance` label is set to the value of `__address__` by default if After relabeling, the `instance` label is set to the value of `__address__` by default if
it was not set during relabeling. The `__scheme__` and `__metrics_path__` labels it was not set during relabeling. The `__scheme__` and `__metrics_path__` labels
are set to the scheme and metrics path of the target respectively. are set to the scheme and metrics path of the target respectively. The `__param_<name>`
label is set to the value of the first passed URL parameter called `<name>`.
Additional labels prefixed with `__meta_` may be available during the Additional labels prefixed with `__meta_` may be available during the
relabeling phase. They are set by the service discovery mechanism that provided relabeling phase. They are set by the service discovery mechanism that provided
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment