aboutsummaryrefslogtreecommitdiffstats
path: root/metrics-proxy/src/test/resources/telegraf-config-with-two-cloudwatch-plugins.txt
blob: 3194b290b781da542c348a01378b2dcddfdab5e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Configuration for telegraf agent
[agent]
  interval = "300s"
  round_interval = true
  metric_batch_size = 1000
  metric_buffer_limit = 10000
  collection_jitter = "0s"
  flush_interval = "300s"
  flush_jitter = "0s"
  precision = ""
  logtarget = "file"
  logfile = "/path/to/logs/telegraf/telegraf.log"
  logfile_rotation_interval = "1d"
  logfile_rotation_max_size = "20MB"
  logfile_rotation_max_archives = 5

# Configuration for AWS CloudWatch output.
[[outputs.cloudwatch]]
  region = "us-east-1"
  namespace = "namespace1"
  access_key = "accessKey1"
  secret_key = "secretKey1"
  tagexclude = ["vespa_consumer"]
  [outputs.cloudwatch.tagpass]
    vespa_consumer = ["consumer1"]

# Configuration for Vespa input plugin
[[inputs.vespa]]
  url = "https://localhost:19092/metrics/v2/values?consumer=consumer1"
  [inputs.vespa.tags]
    vespa_consumer = "consumer1"
# Configuration for AWS CloudWatch output.
[[outputs.cloudwatch]]
  region = "us-east-2"
  namespace = "namespace2"
  profile = "awsprofile"
  tagexclude = ["vespa_consumer"]
  [outputs.cloudwatch.tagpass]
    vespa_consumer = ["consumer2"]

# Configuration for Vespa input plugin
[[inputs.vespa]]
  url = "https://localhost:19092/metrics/v2/values?consumer=consumer2"
  [inputs.vespa.tags]
    vespa_consumer = "consumer2"