From 6a7f2b5ce103c60fa3cc32ae7437f48b5bd9a415 Mon Sep 17 00:00:00 2001 From: Asher Foa <1268088+asherf@users.noreply.github.com> Date: Wed, 25 Jan 2023 12:31:52 -0500 Subject: [PATCH] Fix yaml in sample config & docs --- docs/config.md | 4 ++-- docs/sample-config.yaml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/config.md b/docs/config.md index e57cc87a..9d97c98a 100644 --- a/docs/config.md +++ b/docs/config.md @@ -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: diff --git a/docs/sample-config.yaml b/docs/sample-config.yaml index 31906206..72aca488 100644 --- a/docs/sample-config.yaml +++ b/docs/sample-config.yaml @@ -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: @@ -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$"