Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###############################################################################
- # INPUTS #
- ###############################################################################
- [[inputs.httpjson]]
- ## NOTE This plugin only reads numerical measurements, strings and booleans
- ## will be ignored.
- ## Name for the service being polled. Will be appended to the name of the
- ## measurement e.g. "httpjson_webserver_stats".
- ##
- ## Deprecated (1.3.0): Use name_override, name_suffix, name_prefix instead.
- name = "ciscoprime"
- ## URL of each server in the service's cluster
- servers = [
- "https://10.100.20.150/webacs/api/v1/data/Clients.json?.full=true&ssid=CUSD200-Staff&status=ASSOCIATED",
- "https://10.100.20.150/webacs/api/v1/data/Clients.json?.full=true&ssid=CUSD_WIRELESS&status=ASSOCIATED",
- ]
- insecure_skip_verify = true
- ## Set response_timeout (default 5 seconds)
- response_timeout = "20s"
- ## HTTP method to use: GET or POST (case-sensitive)
- method = "GET"
- ## Tags to extract from top-level of JSON server response.
- tag_keys = [ "@count" ]
- [inputs.httpjson.headers]
- Authorization = "Basic APIKEYHERE"
- ###############################################################################
- # OUTPUTS #
- ###############################################################################
- # Configuration for influxdb server to send metrics to
- [[outputs.influxdb]]
- # The full HTTP or UDP endpoint URL for your InfluxDB instance.
- # Multiple urls can be specified but it is assumed that they are 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://localhost:8086"] # required
- # The target database for metrics (telegraf will create it if not exists)
- database = "telegraf" # required
- # Precision of writes, valid values are "ns", "us" (or "ยตs"), "ms", "s", "m", "h".
- # note: using second precision greatly helps InfluxDB compression
- precision = "s"
- ## 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 = "telegraf"
- # password = "metricsmetricsmetricsmetrics"
- # 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement