Grafana is an open-source analytics and monitoring platform that allows you to visualize time series data through customizable dashboards. Prometheus is a popular option to store time series metrics, and Grafana lets you query and visualize that data.
Connectors use the OpenTelemetry SDK to push metrics to the OpenTelemetry Collector, which caches the latest metrics for 1 hour. Prometheus scrapes the Collector every 1 minute and stores the data for 6 months on disk.
Create a Personal Access Token with CONNECTOR_READ_ALL scope.
First, log into Grafana (your company's instance).
Select Connections > Data Sources and select Prometheus.
Under Connection, for the Prometheus Server URL enter this server:
1
https://api.mapped.com/metrics
Under Authentication, select Basic authentication and enter your Personal Access Token in the Password field.
Select Save & test, and wait for a green success message Successfully queried the Prometheus API to confirm.
You can filter with these attributes:
In Grafana, select the Explore tab.
First select the Metric desired: destination_connector_egress_bytes_sum for destination connectors, or total_contribution_bytes_sum for source connectors.
Select attributes for filtering underr Label Filters. Select connector_id, connector_type_id or org_id. Enter the identifier under Value.
Click the helpful hint: add rate to adjust the interval of the histogram displayed.
Click the Run Query button in the upper right to run your query and view results.
The graph will display the metrics for the past hour as a histogram. A histogram represents the distribution of numerical data. You can toggle the graph between lines, bars, points, stacked lines, and stacked bars to illustrate the frequency within your selected interval.