Skip to content

Commit

Permalink
Fix yaml in sample config & docs
Browse files Browse the repository at this point in the history
  • Loading branch information
asherf committed Jan 25, 2023
1 parent f607905 commit 6a7f2b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ rules:
# skip specifying generic resource<->label mappings, and just
# attach only pod and namespace resources by mapping label names to group-resources
overrides:
namespace: {resource: "namespace"},
pod: {resource: "pod"},
namespace: {resource: "namespace"}
pod: {resource: "pod"}
# specify that the `container_` and `_seconds_total` suffixes should be removed.
# this also introduces an implicit filter on metric family names
name:
Expand Down
8 changes: 4 additions & 4 deletions docs/sample-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ rules:
# skip specifying generic resource<->label mappings, and just
# attach only pod and namespace resources by mapping label names to group-resources
overrides:
namespace: {resource: "namespace"},
pod: {resource: "pod"},
namespace: {resource: "namespace"}
pod: {resource: "pod"}
# specify that the `container_` and `_seconds_total` suffixes should be removed.
# this also introduces an implicit filter on metric family names
name:
Expand All @@ -33,8 +33,8 @@ rules:
- seriesQuery: '{__name__=~"^container_.*_total",container!="POD",namespace!="",pod!=""}'
resources:
overrides:
namespace: {resource: "namespace"},
pod: {resource: "pod"},
namespace: {resource: "namespace"}
pod: {resource: "pod"}
seriesFilters:
# since this is a superset of the query above, we introduce an additional filter here
- isNot: "^container_.*_seconds_total$"
Expand Down

0 comments on commit 6a7f2b5

Please sign in to comment.