[agent]
  interval = "60s"
  round_interval = true
  metric_batch_size = 1000
  metric_buffer_limit = 10000
  collection_jitter = "0s"
  flush_interval = "10s"
  flush_jitter = "0s"
  precision = ""
  hostname = "node002.serguzim.me"
  omit_hostname = false

[[outputs.influxdb_v2]]
  urls = ["{{ svc.influxdb.url }}"]
  token = "{{ svc.influxdb.token }}"
  organization = "{{ svc.influxdb.organization }}"
  bucket = "{{ svc.influxdb.bucket }}"

[[inputs.prometheus]]
  urls = [
    {%- for url in svc.prometheus.urls -%}
		"{{ url }}",
	{%- endfor -%}
  ]

  bearer_token_string = "{{ svc.prometheus.bearer_token }}"

[[inputs.postgresql]]
  address = "postgres://{{ svc.postgresql.user }}:{{ svc.postgresql.pass }}@{{ svc.postgresql.host }}:{{ svc.postgresql.port }}/{{ svc.postgresql.database }}?sslmode=verify-full"
  ignored_databases = ["postgres", "template0", "template1"]
  prepared_statements = true