How to Perform Service and Device Based Grafana&Prometheus Integration with TR7?
About
What is Grafana&Prometheus?
Grafana and Prometheus are two powerful monitoring and visualization tools commonly used together.
Prometheus is a system monitoring and alerting solution designed for modern cloud-based systems and microservices architectures. Prometheus has a multi-dimensional data model and a powerful query language. It collects metric data from applications, servers, databases, and other system components. This data can be presented to clients (such as Grafana) or analyzed for internal use by Prometheus. It can also send alerts for situations where certain thresholds are exceeded.
Grafana is an open-source visualization tool used for visualizing and analyzing metrics, logs, and other types of data. Grafana can pull data from various data sources, such as Prometheus, and present it in different formats, including visual dashboards, graphs, and tables. Grafana offers flexible and rich customization options, allowing users to visualize and analyze data in the way they need.
Prometheus collects metrics from your system, and Grafana presents these metrics visually. This provides a powerful solution for monitoring system status, analyzing performance, and detecting issues.
TR7 ASP can send metrics related to your web applications' performance, server performance, resource usage, and other statistics to Prometheus, a monitoring application. This allows you to send Prometheus metrics through TR7 ASP to the open-source Grafana, where you can analyze the visualized data using custom dashboards. The pre-prepared visualized data templates provided by TR7 ASP for Grafana offer detailed information to users, while also allowing them to add custom graphs if desired.
Additionally, with the Prometheus integration based on vServices, metrics can be generated from the specified paths of selected services, and desired graphs can be created using the open-source Grafana.
Interface
TR7 Grafana & Prometheus Configuration
Step > 1
Through the TR7 web management interface, follow the steps "Settings > Device Management > Access". In the opened screen, click on the Service Dashboard and Global Dashboard buttons next to the "Grafana Files" tab to access the json files provided by TR7 for Grafana integration.
Dashboards with rate_interval or interval are provided separately based on the Prometheus and Grafana versions.
Step > 2
Due to TR7 security policies, metrics provided to Prometheus are not accessible by default and can only be accessed by specific IP addresses. The access settings editing screen is opened, "Prometheus allowed networks" is enabled, and the IP address of the Prometheus server is entered and saved.
Step > 3
SSH connection is made to the Prometheus server, and the prometheus.yml file is edited. The lines to be modified are added according to whether the setup is Standalone or Cluster.
After the relevant changes are made, the Prometheus service is restarted.
Step > 4
Access the web management interface of the Prometheus server via the browser. Follow the steps "Status > Targets" and check that the status of the added TR7 endpoints is "up".
Step > 5
Access the web management interface of the Grafana server via the browser. Follow the steps "Dashboards > New > Import". The required json files for Grafana integration are copied one by one and pasted under "Import via dashboard JSON model", then the import process is completed by clicking the Load button.