[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]] <% if @use_fticks -%> [[inputs.http_listener_v2]] service_address = "0.0.0.0:9999" methods = ["POST"] data_format = "json" json_name_key = "tp" json_time_key = "ts" json_time_format = "2006-01-02 15:04:05" json_timezone = "Local" <% end -%> <% if @server_type == 'log' -%> [[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" <% end -%> <% if @server_type == 'proxy' -%> [[outputs.file]] files = ["/var/log/eidas_stats.log"] data_format = "json" <% end -%> [[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"]