From 34805b2d62c3ad4d4646904884f0ddc85244ddb9 Mon Sep 17 00:00:00 2001 From: Fredrik Kjellman Date: Tue, 5 Apr 2022 11:08:38 +0200 Subject: [PATCH] Add telegraf conf to test-proxy. --- .../etc/telegraf/telegraf.conf.d/50-json-input.conf | 8 ++++++++ global/overlay/etc/puppet/cosmos-rules.yaml | 1 + 2 files changed, 9 insertions(+) create mode 100644 eidas-proxy-1.test.sveidas.se/overlay/etc/telegraf/telegraf.conf.d/50-json-input.conf diff --git a/eidas-proxy-1.test.sveidas.se/overlay/etc/telegraf/telegraf.conf.d/50-json-input.conf b/eidas-proxy-1.test.sveidas.se/overlay/etc/telegraf/telegraf.conf.d/50-json-input.conf new file mode 100644 index 00000000..4f0b4d87 --- /dev/null +++ b/eidas-proxy-1.test.sveidas.se/overlay/etc/telegraf/telegraf.conf.d/50-json-input.conf @@ -0,0 +1,8 @@ +[[inputs.tail]] + files = ["/var/log/eidas_stats.log"] + data_format = "json" + tag_keys = ["type","timestamp","connectorEntityId","requesterId","loaMatching","connectorCountry","spType","requestedLoa","eidasResponseLoA","eidasRequestId","eidasResponseId","principal","nationalAssertionId","nationalRequestId","nationalIdP","eIDASAssertionIssueTime","eidasAssertionId"] + json_name_key = "type" + json_time_key = "timestamp" + json_time_format = "unix_ms" + json_timezone = "Local" diff --git a/global/overlay/etc/puppet/cosmos-rules.yaml b/global/overlay/etc/puppet/cosmos-rules.yaml index 4ce58d99..69eb343d 100644 --- a/global/overlay/etc/puppet/cosmos-rules.yaml +++ b/global/overlay/etc/puppet/cosmos-rules.yaml @@ -1113,6 +1113,7 @@ log-1.sveidas.se: autoupdate: eid::dockerhost: version: '5:20.10.7~3-0~ubuntu-bionic' + eid::telegraf: servicemonitor: prid: version: 1.0.4