telegraf/plugins/inputs/http_response
Luke Swithenbank 0cf4b671fd update to make a working sample_config 2016-03-31 19:54:08 +11:00
..
README.md update to make a working sample_config 2016-03-31 19:54:08 +11:00
http_response.go update to make a working sample_config 2016-03-31 19:54:08 +11:00

README.md

Example Input Plugin

This input plugin will test HTTP/HTTPS connections.

Configuration:

# List of UDP/TCP connections you want to check
[[inputs.http_response]]
  # Server address (default http://localhost)
  address = "https://github.com"
  # Set http response timeout (default 10)
  response_timeout = 10
  # HTTP Method (default "GET")
  method = "GET"

Measurements & Fields:

  • http_response
    • response_time (float, seconds)
    • http_response_code (int) #The code received

Tags:

  • All measurements have the following tags:
    • server
    • port
    • protocol

Example Output:

$ ./telegraf -config telegraf.conf -input-filter http_response -test
http_response,server=http://192.168.2.2:2000,method=GET response_time=0.18070360500000002,http_response_code=200 1454785464182527094