Skip to content

Prometheus

Prometheus logo

Prometheus is an open-source monitoring system and time series database that allows you to collect and store metrics about your infrastructure and applications, and provides a powerful query language called PromQL that you can use to analyze and graph these metrics.

Prometheus also provides a range of other features, including alerting, graphing, and visualization.

One of the key features of Prometheus is its ability to scrape data from targets using a simple HTTP-based protocol. This means that you can easily configure Prometheus to monitor your infrastructure, in this case Thinger.io.

By utilizing both the Prometheus Exporter Plugin and the Prometheus Server Plugin, you gain the ability to assess the status of Thinger.io and its resources through database queries. Moreover, this integration extends its functionality to enable monitoring of external systems.

Get Started

When installing the Prometheus Plugin, a new file storage is created called 'Prometheus Settings'. This file storage contains a template of the configuration in order to scrape the Prometheus Exporter Plugin endpoint.

In order for the connection to take place, edit the file by introducing your details and restart the plugin.

This file can also be used to configure external systems scraping.

Note

Check out also the Alertmanager plugin

Prometheus integration showing a query over devices_total in Thinger.io

Integration with Grafana

Grafana provides native support for Prometheus, therefore, we can configure a connection between the two plugins.

Note

Refer to the Grafana plugin page if you need more details on how to get started

Once grafana in installed and logged in, you may go to 'Settings'->'Data sources'. Click on Add data source and click on 'Prometheus'. The data to configure the Prometheus as data source you'll need: - URL: http://-prometheus:9090/users//plugins/prometheus

And thats it, you may start now creating dashboard in grafana with prometheus as the backend.

Prometheus integration showing a devices_total dashboard in Grafana

Official Documentation

The Prometheus documentation is available at prometheus.io/docs.

More details regarding the configuration of Prometheus at this link.

Note

Any configuration change in prometheus.yml requires a restart of the Prometheus plugin.

License

Prometheus is distributed under the Apache 2.0 License.