summaryrefslogtreecommitdiffstats
path: root/metrics-proxy
diff options
context:
space:
mode:
authorgjoranv <gv@verizonmedia.com>2020-02-17 15:18:23 +0100
committerGitHub <noreply@github.com>2020-02-17 15:18:23 +0100
commit17c5ae02ee13cf47516788263aa1792414a8c6a6 (patch)
tree02410bf4784daed7de5155023b16c8912398a21d /metrics-proxy
parent343fe02f520f73e90b93058129452f1ec4c7f3cb (diff)
parente78eb0469a4fd28e7984fd9158fe357738ce43ed (diff)
Merge pull request #12164 from vespa-engine/gjoranv/add-telegraf-config
Add config class for the future Telegraf component
Diffstat (limited to 'metrics-proxy')
-rw-r--r--metrics-proxy/CMakeLists.txt1
-rw-r--r--metrics-proxy/src/main/resources/configdefinitions/telegraf.def20
2 files changed, 21 insertions, 0 deletions
diff --git a/metrics-proxy/CMakeLists.txt b/metrics-proxy/CMakeLists.txt
index 41fedb8e8c4..b43019e9ba6 100644
--- a/metrics-proxy/CMakeLists.txt
+++ b/metrics-proxy/CMakeLists.txt
@@ -8,3 +8,4 @@ install_config_definition(src/main/resources/configdefinitions/metrics-nodes.def
install_config_definition(src/main/resources/configdefinitions/node-dimensions.def ai.vespa.metricsproxy.metric.dimensions.node-dimensions.def)
install_config_definition(src/main/resources/configdefinitions/rpc-connector.def ai.vespa.metricsproxy.rpc.rpc-connector.def)
install_config_definition(src/main/resources/configdefinitions/vespa-services.def ai.vespa.metricsproxy.service.vespa-services.def)
+install_config_definition(src/main/resources/configdefinitions/telegraf.def ai.vespa.metricsproxy.telegraf.telegraf.def)
diff --git a/metrics-proxy/src/main/resources/configdefinitions/telegraf.def b/metrics-proxy/src/main/resources/configdefinitions/telegraf.def
new file mode 100644
index 00000000000..f3b5db35d52
--- /dev/null
+++ b/metrics-proxy/src/main/resources/configdefinitions/telegraf.def
@@ -0,0 +1,20 @@
+# Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+package=ai.vespa.metricsproxy.telegraf
+
+# Metrics pull/push interval
+intervalSeconds int default=60
+
+
+# The consumer to get metrics for
+vespa.consumer string default="default"
+
+
+cloudWatch[].region string default="us-east-1"
+cloudWatch[].namespace string
+
+# Only valid and required for hosted Vespa
+cloudWatch[].accessKeyName string default=""
+cloudWatch[].secretKeyName string default=""
+
+# Only valid and optional for self-hosted Vespa
+cloudWatch[].profile string default=""