JSON Poll

Erik Hollensbe edited this page Jan 4, 2014 · 5 revisions
  • Type: json_poll
  • Params: URL of endpoint that returns the data.

This allows you to poll a service at a given URL to get metrics from that service in json format. Those metrics will be reflected to whomever polls us for state in the given poll interval.

Parameter is just the URL. This could be used to "tunnel" metrics from a LXC or similar embedded system by chaining gollector monitors.

If you supply a path to a unix socket instead of a http or https url, it will use unix socket logic instead.

Example:

"json_poll example": {
  "Type": "json_poll",
  "Params": "http://localhost:8080"
}
$ curl http://gollector:gollector@localhost:8000 -d '{ "Name": "json_poll example" }'
{ "test": "stuff" }
# emitted by the service at http://localhost:8080
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.