aboutsummaryrefslogtreecommitdiffstats
path: root/metrics-proxy/src/main/resources/templates/cloudwatch_plugin.vm
blob: fd1943fc50eb731e2937d5bb89d70e89328b25e8 (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
# Configuration for telegraf agent
[agent]
  interval = "${intervalSeconds}s"
  round_interval = true
  metric_batch_size = 1000
  metric_buffer_limit = 10000
  collection_jitter = "0s"
  flush_interval = "${intervalSeconds}s"
  flush_jitter = "0s"
  precision = ""

# Configuration for AWS CloudWatch output.
[[outputs.cloudwatch]]
  region = "$cloudwatchRegion"
  namespace = "$cloudwatchNamespace"
#if( $isHosted )
  access_key = "$cloudwatchSecretKey"
  secret_key = "$cloudwatchAccessKey"
#elseif( $hasCloudwatchProfile )
  profile = "$cloudwatchProfile"
#end

# Configuration for Vespa input plugin
[[inputs.vespa]]
  url = "http://localhost:19092/metrics/v2/values?consumer=$vespaConsumer"
#if( $isHosted )
  tls_cert = "${VESPA_CERTIFICATE_PATH}"
  tls_key = "${VESPA_KEY_PATH}"
  insecure_skip_verify = true
#end