Application performance monitoring (APM) with traces
Promscale provides application performance monitoring with traces data using SQL. Import the Grafana dashboards that are published by the Promscale team using traces.
Before you begin importing the dashboards:
- Add these data sources in Grafana:
- Jaeger data source
- PostgreSQL data source
- Check that the
timescaledb_toolkitextension is installed. To verify if the extension is installed, run this SQL query:SELECT * FROM pg_extension WHERE extname='timescaledb_toolkit';If the query returns no results, then the extension is not installed. For more information about installing the extension, see the toolkit extension installation documentation.
You can use one of these methods to import dashboards:
- From the Grafana community the dashboards published by Promscale.
- From Promscale Github repository as JSON files.
Install the TimescaleDB toolkit extension
Installing the TimescaleDB toolkit extension
- Check if the extension is available:
1. SELECT * FROM pg_available_extensions WHERE name='timescaledb_toolkit';
If the query returns no results, the extension is not available for installation in your database. To make it available follow these instructions. 2. Install the extension using:
1. CREATE EXTENSION timescaledb_toolkit;
Import dashboards from the Grafana community
Grafana community dashboards contain all the dashboards published by Promscale.
Importing dashboards from the Grafana community
- In the Grafana community dashboard select the dashboard with
APMprefix, click theDetailsbutton to open a dashboard. - Click
Copy ID to Clipboardto copy the UID of the dashboard. - In the Grafana UI, select
Importfrom the+Create icon on the side menu. - Paste the dashboard UID in the
Import via grafana.comtextbox, and clickLoad. TheImporting dashboard from Grafana.compage appears. - In the
Folderdrop-down menu, choose the folder to which you want to add the dashboard. - Select the data sources from which you want the dashboard to query the data:
- For application performance monitoring dashboards select
TimescaleDB or PostgreSQL data sourceasPromscale-SQL. - For application performance monitoring dashboards, select
Promscale Jaeger Tracing data sourceasPromscale-Tracing. - Click
Import.
Import dashboards as JSON files
Promscale dashboards repository contains all the dashboards published by Promscale.
Importing dashboards as JSON files
- Download all the
.jsonfiles withapmprefix from the Promscale dashboards repository. - In the Grafana UI, select
Importfrom the+Create icon on the side menu. - Select the
Upload JSON filebutton, and select the downloadedJSONdashboard file. TheImporting dashboard from Grafana.compage appears. - In the
Folderdrop-down menu, choose the folder to which you want to add the dashboard. - Select the data sources from which you want the dashboard to query the data:
- For application performance monitoring dashboards, select
TimescaleDB or PostgreSQL data sourceasPromscale-SQL. - For application performance monitoring dashboards, select
Promscale Jaeger Tracing data sourceasPromscale-Tracing. - Click
Import.
