Time series data enables us to measure change. We can analyze the past, predict the future, and monitor the present. In this article, we are going to focus on the tool named Hosted Graphite and the APIs it has for connecting to external services.
Get started by signing up for our Hosted Graphite free trial. MetricFire's monitoring platform runs Hosted Graphite, Prometheus and Grafana. You can get metrics loaded into Hosted Graphite within a few minutes and start using the APIs today.
The UI of Hosted Graphite provides easy access to all its functions. You can see several tabs on the left of the window and for most tabs, there is a corresponding API with the same functions:
If you click these tabs you’ll find out the expanded list of features:
As for accessing more information about the API from the UI, you can click the ‘Docs’ button in the top right bar and go to API Guides or use the link provided here.
Hosted Graphite is similar to vanilla Graphite, but there are a few exceptions:
There are also advantages of using Hosted Graphite, like built-in alerting with multiple output services, as well as offloading all of the work for maintaining your Graphite installation to the MetricFire team.
If you want to understand more about the differences and features of Hosted Graphite over Open Source Graphite check out this article.
Hosted Graphite has extensive APIs to allow you to build your own integrations. To use the APIs you need the API Key which is located on the main page of Hosted Graphite:
You can read more about APIs on the Hosted Graphite documentation, but here are their short descriptions and examples:
Now let’s create the variable with a ‘curl’ request:
Finally, we can render a graph using our variable <user> and Render API:
Then we can make a request to create this dashboard:
Now we can add panels to this dashboard either via Grafana UI or by API.
When deciding between the open-source Graphite Web and paid Hosted Graphite, remember that Hosted Graphite takes care of major problems for you and provides extensive customer support. So, with an open-source Graphite, you will spend money on your own development and support team. Keep this in mind when making your choice.
In this article, we reviewed examples of how to deal with requests for each of the Hosted Graphite APIs. The usage of APIs allows connecting the external services. So you can connect your own integration and use it with Hosted Graphite. The APIs are easy to use, all you need is an API key and sometimes an Access Key. As for testing, most requests can be easily tested even with browsers.
Sign up for the hosted graphite free trial, and send and visualize metrics directly in the platform. You can experiment with the APIs and apply what you learned from this article. Also, feel free to book a demo if you want to talk to us directly about your monitoring needs.