Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Httpjson #120

Closed
wants to merge 2 commits into from
Closed

Httpjson #120

wants to merge 2 commits into from

Conversation

jpalay
Copy link
Contributor

@jpalay jpalay commented Aug 19, 2015

httpjson is a plugin that polls servers, then passes along their JSON responses to an Accumulator. This is useful for gathering metrics from preexisting web services that return information about other services in JSON form.

To use it, in the telegraf configuration file, define a list of httpjson Services, which are essentially clusters of servers to poll. Each Service has a name, an HTTP method (GET, POST, etc.), a toml table of HTTP parameters to attach to the request, and a list of endpoints to hit.

When the plugin runs, it sends all the HTTP requests for all the various endpoints it needs to hit. It then takes the JSON response from each request, flattens it, and then passes each float value along to the Accumulator. The measurement name httpjson chooses for each float value is in the form <service-name>_<grandparent-key>_<parent-key>_<child-key>. It also tags each measurement with the name of the endpoint it hits.

Let me know what your thoughts are!

@jpalay jpalay closed this Aug 19, 2015
@jpalay jpalay reopened this Aug 19, 2015
@sparrc
Copy link
Contributor

sparrc commented Aug 19, 2015

This looks good, thanks @jpalay and @alvaromorales !

@sparrc
Copy link
Contributor

sparrc commented Aug 19, 2015

This has been merged via rebase, thanks again!

@sparrc sparrc closed this Aug 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants