Skip to content

Instantly share code, notes, and snippets.

@neoshadybeat
Created April 16, 2018 08:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neoshadybeat/7ec70fa0e8143ece88b463ed49e8781e to your computer and use it in GitHub Desktop.
Save neoshadybeat/7ec70fa0e8143ece88b463ed49e8781e to your computer and use it in GitHub Desktop.
[[inputs.http]]
name_suffix = "_ble"
## One or more URLs from which to read formatted metrics
urls = [
"http://localhost/metrics"
]
## HTTP method
method = "POST"
## Optional HTTP headers
# headers = {"X-Special-Header" = "Special-Value"}
## Optional HTTP Basic Auth Credentials
# username = "username"
# password = "pa$$word"
## 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 = false
## Amount of time allowed to complete the HTTP request
# timeout = "5s"
## Data format to consume.
## Each data format has its own unique set of configuration options, read
## more about them here:
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
data_format = "json"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment