Last active
February 28, 2022 19:40
-
-
Save gouthamve/1c61efe3b84845a4670af6d63119b563 to your computer and use it in GitHub Desktop.
influx2cortex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" | |
user = "$USER" | |
# Configuration for telegraf agent | |
[agent] | |
## Default data collection interval for all inputs | |
interval = "10s" | |
round_interval = true | |
metric_batch_size = 1000 | |
metric_buffer_limit = 10000 | |
collection_jitter = "0s" | |
flush_interval = "10s" | |
flush_jitter = "0s" | |
precision = "" | |
debug = true | |
## Log only error level messages. | |
# quiet = false | |
############################################################################### | |
# OUTPUT PLUGINS # | |
############################################################################### | |
[[outputs.influxdb]] | |
# urls = ["unix:///var/run/influxdb.sock"] | |
# urls = ["udp://127.0.0.1:8089"] | |
urls = ["http://127.0.0.1:8086/api/v1/push/influx"] | |
# database = "telegraf" | |
## Timeout for HTTP messages. | |
# timeout = "5s" | |
## HTTP Basic Auth | |
# username = "telegraf" | |
# password = "metricsmetricsmetricsmetrics" | |
## Additional HTTP headers | |
# http_headers = {"X-Special-Header" = "Special-Value"} | |
############################################################################### | |
# INPUT PLUGINS # | |
############################################################################### | |
[[inputs.cpu]] | |
[[inputs.disk]] | |
[[inputs.diskio]] | |
[[inputs.kernel]] | |
[[inputs.mem]] | |
[[inputs.processes]] | |
[[inputs.swap]] | |
[[inputs.system]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment