Better spacing for flags

Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
This commit is contained in:
Fiona Liao 2024-11-11 17:39:33 +00:00
parent b2fd5b7e45
commit 67764d7cfd

View file

@ -18,19 +18,19 @@ This document offers guidance on migrating from Prometheus 2.x to Prometheus 3.0
- `remote-write-receiver` - `remote-write-receiver`
- `new-service-discovery-manager` - `new-service-discovery-manager`
- `expand-external-labels` - `expand-external-labels`
Environment variable references `${var}` or `$var` in external label values - Environment variable references `${var}` or `$var` in external label values
are replaced according to the values of the current environment variables. are replaced according to the values of the current environment variables.
References to undefined variables are replaced by the empty string. - References to undefined variables are replaced by the empty string.
The `$` character can be escaped by using `$$`. The `$` character can be escaped by using `$$`.
- `no-default-scrape-port` - `no-default-scrape-port`
Prometheus v3 will no longer add ports to scrape targets according to the - Prometheus v3 will no longer add ports to scrape targets according to the
specified scheme. Target will now appear in labels as configured. specified scheme. Target will now appear in labels as configured.
If you rely on scrape targets like - If you rely on scrape targets like
`https://example.com/metrics` or `http://exmaple.com/metrics` to be `https://example.com/metrics` or `http://exmaple.com/metrics` to be
represented as `https://example.com/metrics:443` and represented as `https://example.com/metrics:443` and
`http://example.com/metrics:80` respectively, add them to your target URLs `http://example.com/metrics:80` respectively, add them to your target URLs
- `agent` - `agent`
Instead use the dedicated `--agent` CLI flag. - Instead use the dedicated `--agent` CLI flag.
Prometheus v3 will log a warning if you continue to pass these to Prometheus v3 will log a warning if you continue to pass these to
`--enable-feature`. `--enable-feature`.