Merge pull request #17947 from zenador/docs-promql-info-func-ignore-info-metrics
Some checks are pending
buf.build / lint and publish (push) Waiting to run
CI / Go tests (push) Waiting to run
CI / More Go tests (push) Waiting to run
CI / Go tests with previous Go version (push) Waiting to run
CI / UI tests (push) Waiting to run
CI / Go tests on Windows (push) Waiting to run
CI / Mixins tests (push) Waiting to run
CI / Build Prometheus for common architectures (push) Waiting to run
CI / Build Prometheus for all architectures (push) Waiting to run
CI / Report status of build Prometheus for all architectures (push) Blocked by required conditions
CI / Check generated parser (push) Waiting to run
CI / golangci-lint (push) Waiting to run
CI / fuzzing (push) Waiting to run
CI / codeql (push) Waiting to run
CI / Publish main branch artifacts (push) Blocked by required conditions
CI / Publish release artefacts (push) Blocked by required conditions
CI / Publish UI on npm Registry (push) Blocked by required conditions
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run

docs: promql: Update docs about ignoring info metrics
This commit is contained in:
Julius Volz 2026-01-27 21:31:49 +01:00 committed by GitHub
commit 5399eb9526
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View file

@ -568,6 +568,8 @@ While `info` normally automatically finds all matching info series, it's possibl
restrict them by providing a `__name__` label matcher, e.g.
`{__name__="target_info"}`.
Note that if there are any time series in `v` that match the `data-label-selector` (or the default `target_info` if that argument is not specified), they will be treated as info series and will be returned unchanged.
### Limitations
In its current iteration, `info` defaults to considering only info series with

View file

@ -1756,6 +1756,12 @@ const funcDocs: Record<string, React.ReactNode> = {
.
</p>
<p>
Note that if there are any time series in <code>v</code> that match the <code>data-label-selector</code> (or the
default <code>target_info</code> if that argument is not specified), they will be treated as info series and
will be returned unchanged.
</p>
<h3>Limitations</h3>
<p>