diff --git a/telegraf/00-global-example.conf b/telegraf/00-global-example.conf new file mode 100644 index 0000000000000000000000000000000000000000..72b23aab27b71f556a81883d08223ae6bf706833 --- /dev/null +++ b/telegraf/00-global-example.conf @@ -0,0 +1,7 @@ +# Global tags can be specified here in key="value" format. +[global_tags] + # dc = "us-east-1" # will tag all metrics with dc=us-east-1 + # rack = "1a" + ## Environment variables can be used as tags, and throughout the config file + # user = "$USER" + diff --git a/telegraf/30-input-jti-example.conf b/telegraf/30-input-jti-example.conf new file mode 100644 index 0000000000000000000000000000000000000000..36a06e3906862474f75d08f2b096b7753c941081 --- /dev/null +++ b/telegraf/30-input-jti-example.conf @@ -0,0 +1,9 @@ +[[inputs.jti_openconfig_telemetry]] + servers = ["hostname:50051"] + sample_frequency = "2000ms" + sensors = [ + "/interfaces/", + #"collection /components/ ", + ] + retry_delay = "1000ms" + str_as_tags = false diff --git a/telegraf/99-output-influxdb-example.conf b/telegraf/99-output-influxdb-example.conf new file mode 100644 index 0000000000000000000000000000000000000000..ec7ebff44fc79d8d8191f7a0b56e47d8f95735b6 --- /dev/null +++ b/telegraf/99-output-influxdb-example.conf @@ -0,0 +1,43 @@ +# Configuration for influxdb server to send metrics to +[[outputs.influxdb]] + ## The HTTP or UDP URL for your InfluxDB instance. Each item should be + ## of the form: + ## scheme "://" host [ ":" port] + ## + ## Multiple urls can be specified as part of the same cluster, + ## this means that only ONE of the urls will be written to each interval. + # urls = ["udp://localhost:8089"] # UDP endpoint example + urls = ["http:/$hostname:8086"] + ## The target database for metrics (telegraf will create it if not exists). + database = "telegraf" # required + + ## Name of existing retention policy to write to. Empty string writes to + ## the default retention policy. + retention_policy = "" + ## Write consistency (clusters only), can be: "any", "one", "quorum", "all" + write_consistency = "any" + + ## Write timeout (for the InfluxDB client), formatted as a string. + ## If not provided, will default to 5s. 0s means no timeout (not recommended). + timeout = "5s" + username = "username" + password = "password" + ## Set the user agent for HTTP POSTs (can be useful for log differentiation) + # user_agent = "telegraf" + ## Set UDP payload size, defaults to InfluxDB UDP Client default (512 bytes) + # udp_payload = 512 + + ## Optional SSL Config + # ssl_ca = "/etc/telegraf/ca.pem" + # ssl_cert = "/etc/telegraf/cert.pem" + # ssl_key = "/etc/telegraf/key.pem" + ## Use SSL but skip chain & host verification + insecure_skip_verify = true + + ## HTTP Proxy Config + # http_proxy = "http://corporate.proxy:3128" + + ## Compress each HTTP request payload using GZIP. + # content_encoding = "gzip" + +