I would like to put different metrics in different buckets. In my bucket Websites
, I want to put HTTP response metrics.
This is how my configuration file /etc/telegraf/telegraf.d/httpmetrics.conf
looks like:
[[inputs.http_response]]
## List of urls to query.
urls = [
"https://example.com
]
## Set response_timeout (default 5 seconds)
response_timeout = "5s"
## HTTP Request Method
method = "GET"
## Whether to follow redirects from the server (defaults to false)
follow_redirects = true
## Interface to use when dialing an address
interface = "eth0"
[[outputs.influxdb_v2]]
urls = ["http://127.0.0.1:8086"]
token = "xxx"
organization = "my Company"
bucket = "websites"
timeout = "5s"
user_agent = "telegraf"
content_encoding = "gzip"
Now I have the problem that my metrics appear in all buckets. What am I doing wrong?