-
Notifications
You must be signed in to change notification settings - Fork 458
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] Add M3-Restrict-By-Tags-JSON example to docs (#2437)
- Loading branch information
1 parent
4401470
commit e601e67
Showing
3 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--8<-- | ||
docs/common/headers_optional_read_limits.md | ||
--8<-- | ||
- `M3-Restrict-By-Tags-JSON`: | ||
If this header is set it can ensure specific label matching is performed as part | ||
of every query including series metadata endpoints. As an example, the following | ||
header would unconditionally cause `globaltag=somevalue` to be a part of all queries | ||
issued regardless of if they include the label or not in a query and also strip the | ||
"globaltag" from appearing as a label in any of the resulting timeseries: | ||
``` | ||
M3-Restrict-By-Tags-JSON: '{"match":[{"name":"globaltag","type":"EQUAL","value":"somevalue"}],"strip":["globaltag"]}' | ||
``` | ||
<br /><br /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters