Advertisement
tocheeba

telegraf cisco prime

Sep 7th, 2017
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.60 KB | None | 0 0
  1. ###############################################################################
  2. # INPUTS #
  3. ###############################################################################
  4.  
  5. [[inputs.httpjson]]
  6. ## NOTE This plugin only reads numerical measurements, strings and booleans
  7. ## will be ignored.
  8. ## Name for the service being polled. Will be appended to the name of the
  9. ## measurement e.g. "httpjson_webserver_stats".
  10. ##
  11. ## Deprecated (1.3.0): Use name_override, name_suffix, name_prefix instead.
  12. name = "ciscoprime"
  13.  
  14. ## URL of each server in the service's cluster
  15. servers = [
  16. "https://10.100.20.150/webacs/api/v1/data/Clients.json?.full=true&ssid=CUSD200-Staff&status=ASSOCIATED",
  17. "https://10.100.20.150/webacs/api/v1/data/Clients.json?.full=true&ssid=CUSD_WIRELESS&status=ASSOCIATED",
  18. ]
  19.  
  20. insecure_skip_verify = true
  21.  
  22. ## Set response_timeout (default 5 seconds)
  23. response_timeout = "20s"
  24.  
  25. ## HTTP method to use: GET or POST (case-sensitive)
  26. method = "GET"
  27.  
  28. ## Tags to extract from top-level of JSON server response.
  29. tag_keys = [ "@count" ]
  30.  
  31. [inputs.httpjson.headers]
  32. Authorization = "Basic APIKEYHERE"
  33.  
  34.  
  35. ###############################################################################
  36. # OUTPUTS #
  37. ###############################################################################
  38.  
  39. # Configuration for influxdb server to send metrics to
  40. [[outputs.influxdb]]
  41. # The full HTTP or UDP endpoint URL for your InfluxDB instance.
  42. # Multiple urls can be specified but it is assumed that they are part of the same
  43. # cluster, this means that only ONE of the urls will be written to each interval.
  44. # urls = ["udp://localhost:8089"] # UDP endpoint example
  45. urls = ["http://localhost:8086"] # required
  46. # The target database for metrics (telegraf will create it if not exists)
  47. database = "telegraf" # required
  48. # Precision of writes, valid values are "ns", "us" (or "ยตs"), "ms", "s", "m", "h".
  49. # note: using second precision greatly helps InfluxDB compression
  50. precision = "s"
  51.  
  52. ## Write timeout (for the InfluxDB client), formatted as a string.
  53. ## If not provided, will default to 5s. 0s means no timeout (not recommended).
  54. timeout = "5s"
  55. # username = "telegraf"
  56. # password = "metricsmetricsmetricsmetrics"
  57. # Set the user agent for HTTP POSTs (can be useful for log differentiation)
  58. # user_agent = "telegraf"
  59. # Set UDP payload size, defaults to InfluxDB UDP Client default (512 bytes)
  60. # udp_payload = 512
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement