eid-ops/global/overlay/etc/puppet/modules/eid/templates/telegraf2/telegraf.conf.erb

53 lines
1.6 KiB
Text

[agent]
interval = "10s"
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "0s"
precision = ""
debug = false
quiet = false
logfile = ""
hostname = ""
omit_hostname = false
[[inputs.system]]
[[inputs.tail]]
files = ["/var/log/eidas_stats.log"]
data_format = "json"
tag_keys = ["requester","country"]
json_name_key = "type"
json_time_key = "timestamp"
json_time_format = "unix_ms"
json_timezone = "Local"
[[inputs.tail]]
files = ["/var/log/eidas_proxy.log"]
data_format = "json"
json_name_key = "type"
tag_keys = ["type", "principal", "data_eidasResponseLoA", "data_requesterId", "data_requestedLoa", "data_connectorCuntry", "data_connectorEntityId", "data_nationalIdP", "data_loaMatching", "data_spType", "data_eIDASAssertionIssueTime", "data_requestedLoa" ]
[inputs.tail.tags]
influxdb_database = "proxy"
[[processors.parser]]
parse_fields = ["message"]
merge = "override"
data_format = "json"
[[outputs.influxdb_v2]]
urls = <%= @influx_urls %>
token = "<%= @influx2_token %>"
organization = "<%= @influxdb2_org %>"
bucket = "<%= @influxdb2_bucket %>"
insecure_skip_verify = true
[outputs.influxdb_v2.tagdrop]
influxdb_database = ["*"]
[[outputs.influxdb_v2]]
urls = <%= @influx_urls %>
token = "<%= @influx2_token %>"
organization = "<%= @influxdb2_org %>"
bucket = "<%= @influxdb2_bucket_proxy %>"
insecure_skip_verify = true
tagexclude = ["influxdb_database"]
[outputs.influxdb_v2.tagpass]
influxdb_database = ["proxy"]