In today’s complex IT landscape, monitoring and observability are crucial aspects for maintaining high-performing and reliable systems. Tools like Instana and Grafana have emerged as industry leaders in this space and offering powerful solutions for monitoring, visualization, and analysis. One of the key integrations between Instana and Grafana is the Instana Grafana datasource, which allows users to leverage Instana’s rich monitoring data within Grafana’s versatile visualization platform. This blog post covers the Instana Grafana datasource, its benefits, and how to set it up.
Instana is an automated Application Performance Monitoring (APM) solution designed to provide real-time insights about the performance and health of modern cloud-native applications. With its AI-powered analytics and automatic discovery of application components, Instana offers a comprehensive view of your application stack, from microservices and containers to infrastructure and services.
Grafana is an open-source platform for monitoring and observability, specializing in creating beautiful and interactive dashboards for time series data. It supports various data sources and offers a wide range of visualization options. This makes Grafana a popular choice among developers and operators for visualizing metrics, logs, and traces.
The Instana Grafana datasource serves as a connector between Instana’s comprehensive monitoring data and Grafana’s robust visualization platform. It allows users to fetch and display Instana metrics, traces, and other monitoring data within Grafana, and enable the creation of custom dashboards that provide insights into application performance, infrastructure health, and more.
The Instana Grafana datasource integration offers a robust set of features designed to provide users with a seamless and powerful monitoring experience. This integration leverages Instana’s automated Application Performance Monitoring (APM) capabilities and Grafana’s versatile dashboarding tools to deliver comprehensive insights into application and infrastructure performance. In this section, Let’s delve into the key features of the Instana Grafana datasource, highlighting their benefits and practical applications.
One of the standout features of the Instana Grafana datasource is its support for Dynamic Focus queries. Dynamic Focus allows users to dynamically filter and focus on specific application components, services, or infrastructure resources within their monitoring data. This feature enables users to drill down into specific areas of interest, facilitating more targeted analysis and troubleshooting.
Benefits
The Instana Grafana datasource extends its monitoring capabilities beyond infrastructure and services to include Applications and Websites. This feature enables users to monitor the performance, availability, and health of their applications and websites directly within Grafana, providing a holistic view of the entire application stack.
To streamline the query-building process and enhance the user experience, the Instana Grafana datasource offers automatic completion for available types and metrics. As users type in the query editor, the datasource provides suggestions and auto-completes available types and metrics, reducing errors and accelerating the query creation process.
The Instana Grafana datasource utilizes Instana’s REST API to fetch monitoring data, metrics, and insights from the Instana platform. By leveraging the REST API, the integration ensures reliable and efficient data retrieval, enabling real-time monitoring and analysis within Grafana.
Benefits:
Security is paramount in any monitoring and observability solution, and the Instana Grafana datasource prioritizes this by utilizing access tokens for authentication. User can generate and configure access tokens within Instana and use them to securely authenticate and establish a connection between Grafana and Instana.
You need to set up Instana Grafana datasource locally.
Before you set up Instana Grafana Datasource, ensure that the following prerequisites are met:
For local instances, plug-ins are installed and updated through a simple CLI command. The plug-ins are not updated automatically, however you will be notified when updates are available in your Grafana instance.
You can use any of the following options:
grafana-cli plugins install instana-datasource
The plug-in will be installed into yourGrafana plug-in directory; the default location is /var/lib/grafana/plugins. For more information, see Plugins commands.
git clone git@github.com:instana/instana-grafana-datasource.git
After installing the Instana plugin, configure the datasource to connect to your Instana instance.
To configure the datasource:
5. Click on Save & Test to test the connection and save the datasource configuration.
After you save the datasource, the API Token is configured. To reset the authentication key, click the “Reset API Token” button.
You can submit the query on Instana-Grafana Data Source. The query editor is shown in the following example:
To start, input the Dynamic Focus query. This query must be identical to the query used in the Instana dashboard. You can validate your queries in Instana, and then copy and paste them into Grafana. Saved filters are not currently supported by the Grafana datasource plug-in.
You can view metrics on Instana Grafana Datasource.
To view metrics from each category, complete the following steps:
To select custom metrics that match your query, complete the following steps:
If your Dynamic Focus query fields match, the relevant metrics are displayed as a graph similar to the following example.
For self-hosted installations, BeeInstana is required for this endpoint group. For instructions on enabling BeeInstana, see Configuration for the core.
Selecting Infrastructure Analyze Metrics:
Grouping and aggregation:
Filtering metrics:
You can the filter in Infrastructure Analyze.
To use this feature:
Displaying metrics:
Users can view metrics related to one or multiple applications with this feature. After an application and a metric are selected, the graphs are generated.
Display options based on the application:
With this feature, you can view metrics associated with specific services. Services can be selected either individually or in conjunction with an Application Perspective to provide more detailed metric data.
Selection hierarchy:
Display Options Based on Application: When an application is selected, users can specify the type of calls that the displayed information is based on:
Service-Only Selection: If only a service is selected without choosing any application:
The Endpoint Metrics Display feature allows users to view metrics associated with specific endpoints. Endpoints can be selected either individually or in conjunction with an Application Perspective and service to present more detailed metric data.
Dynamic Selection: Selectable items like applications, services, and endpoints are reloaded and cached each time a service or application is changed.
Display Options Based on Application: When an application is selected, the user can specify the type of calls that the displayed information is based on:
Endpoint-Only selection: If only an endpoint is selected without choosing any application:
The displayed information will be based on all calls made within the selected application, including both customer and internal calls. It is independent of the selected service.
To select the application metrics, follow these steps:
If your selections are correct, the returned dataset will display metrics and provide graphs, as shown in the following example.
To select EUM website metrics, complete the following steps:
To select EUM mobile app metrics, follow these steps:
To display specific SLO/SLI information in Grafana based on Instana:
SLI visualization:
Remaining error budget:
Time series visualization:
The dashboard is shown in the following example:
The Time Shift option enables the user to view the outcomes of queries from different points in time.
Usage:
This plug-in supports the ability to select different granularity values, offering an even deeper insight into metrics.
You can aggregate graphs at the query level and select one of the following options:
The Instana-Grafana data source is an open-source project.
The integration of Instana with Grafana as a datasource offers a powerful solution for monitoring and observability, enabling you to gain deeper insights into your applications and infrastructure. By combining the strengths of Instana’s comprehensive monitoring capabilities with Grafana’s flexible visualization and extensibility, you can make data-driven decisions to optimize performance and ensure the reliability of your systems.
For more information on how to integrate and use Instana with Grafana, see Instana Documentation and Grafana Documentation.