From 3d955f304379332af907ec40cced920f088965fa Mon Sep 17 00:00:00 2001 From: Bartosz Bezak Date: Fri, 4 Dec 2020 10:48:40 +0100 Subject: [PATCH] Monasca log-metrics - Drop "notice" and "note" loglevel metrics by default Those loglevels can build up over time and create unnecessary high metrics cardinality. Change-Id: Ib1a03772d0bd58758430b37b4f2f67126cf86fa3 Closes-bug: #1906796 --- .../templates/monasca-log-metrics/log-metrics.conf.j2 | 2 +- releasenotes/notes/bug-1906796-e52b9e113f36ceed.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/bug-1906796-e52b9e113f36ceed.yaml diff --git a/ansible/roles/monasca/templates/monasca-log-metrics/log-metrics.conf.j2 b/ansible/roles/monasca/templates/monasca-log-metrics/log-metrics.conf.j2 index bb05e9d488..ad651a20c2 100644 --- a/ansible/roles/monasca/templates/monasca-log-metrics/log-metrics.conf.j2 +++ b/ansible/roles/monasca/templates/monasca-log-metrics/log-metrics.conf.j2 @@ -19,7 +19,7 @@ input { filter { # Drop everything we don't want to create metrics for. - if ![log][dimensions][log_level] or [log][dimensions][log_level] in [ "debug", "trace", "info" ] { + if ![log][dimensions][log_level] or [log][dimensions][log_level] in [ "debug", "trace", "info", "notice", "note" ] { drop { } } diff --git a/releasenotes/notes/bug-1906796-e52b9e113f36ceed.yaml b/releasenotes/notes/bug-1906796-e52b9e113f36ceed.yaml new file mode 100644 index 0000000000..34aecd0cd7 --- /dev/null +++ b/releasenotes/notes/bug-1906796-e52b9e113f36ceed.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fixes `LP#1906796 + `__ by adding + notice and note loglevels to monasca log-metrics drop configuration