Metricstores of Log Service are compatible with the query API of Prometheus. This topic describes how to connect Log Service as a Prometheus data source to Grafana. You can then send data from Log Service to Grafana and visualize the data in Grafana.
Prerequisites
- Grafana is installed. For more information, see Install Grafana.
- Time series data is imported to Log Service. For more information, see Collect metric data from Prometheus.
Configure Log Service as a Prometheus data source in Grafana
Import a Log Service dashboard template to Grafana
Perform the following steps to import a Log Service dashboard template to Grafana:
Access Log Service by using the query API of Prometheus
Log Service is compatible with the query API of Prometheus. You can configure Log
Service as a Prometheus data source in Grafana or use the Prometheus API to access
Log Service. The following table provides examples of the supported API operations.
Operation | Example |
---|---|
Instant queries |
|
Range queries |
|
Getting label names |
|
Querying label values |
|
Finding series by label matchers |
|