SkyWalking provide PromQL Service since 9.4.0 and LogQL Service since 9.6.0. You can choose Grafana as the SkyWalking UI. About the installation and how to use please refer to the official document.
Notice <1>, Gafana is AGPL-3.0 license, which is very different from Apache 2.0. Please follow AGPL 3.0 license requirements.
Notice <2>, SkyWalking always uses its native UI as first class. All visualization features are only available on native UI. Grafana UI is an extension on our support of PromQL APIs. We don't maintain or promise the complete Grafana UI dashboard setup.
In the data source config panel, chose the Prometheus
and set the url to the OAP server address, the default port is 9090
.
Before you start, please install the SkyWalking data source plugin. In the data source config panel, chose the SkyWalking
and set the url to the OAP server graphql
service address, the default port is 12800
.
In the data source config panel, chose the Loki
and set the url to the OAP server address, the default port is 3100
.
The following steps are the example of config a General Service
dashboard:
General Service
. A layer is recommended as a dashboard.The following contents show how to add several typical metrics panels. General settings:
Query options --> Min interval = 1m
, because the metrics min time bucket in SkyWalking is 1m.service_apdex
and Time series chart
.Service
, so add labels service
and layer
for match.Connect null values --> Always
and Show points --> Always
because when the query interval > 1hour or 1day SkyWalking return the hour/day step metrics values. service_percentile
and Time series chart
.Service
, add labels service
and layer
for match. And it's a labeled value metric, add labels='0,1,2,3,4'
filter the result label, and addrelabels='P50,P75,P90,P95,P99'
rename the result label.Connect null values --> Always
and Show points --> Always
because when the query interval > 1hour or 1day SkyWalking return the hour/day step metrics values. service_instance_cpm
and Bar gauge chart
.parent_service
and layer
for match, add top_n='10'
and order='DES'
filter the result.Calculation --> Latest*
. Same as the Sort Metrics.
For now, SkyWalking support General Service
and Service Mesh
topology dashboards, the layer is GENERAL
and MESH
respectively. The following configuration can reuse the above General Service
dashboard and add a new variable Plugin_SkyWalking
for the dashboard:
Layer
and Service
by the variables. If you want to show all services in this layer, set Service
empty.Node Metrics
and Edge Metrics
which you want to show on the topology. The following steps are the example of config a log dashboard:
Log
.service_instance
and endpoint
variable enabled Include All
option and set Custom all value
to * or blank (typed by space button on the keyboard): Tags
variable is a little different from others, for more details, please refer Ad hoc filters: The following steps show how to add a log panel.
Logs
chart.Line limit
value (The max number of logs to return in a query) and Order
value (Determines the sort order of logs).service_instance
& endpoint
variable ref should use raw variable-format-options to prevent it value be escaped.The following steps are the example of config a General Relation
dashboard:
General Relation
.The following contents show how to add relation metric panels.
Query options
, Connect null values
, Show points
and Returned Labels
. Please refer Configure Metric Dashboards
part.Layer
, Dest Layer
, Service
and Dest Service
by the variables. For service instance relation scope, extra set Service Instance
and Dest Service Instance
. For endpoint relation scope, extra set Endpoint
and Dest Endpoint
.SkyWalking community provides a preview site for services of General
and Service Mesh
layers from the demo environment. You could take a glance through Preview metrics on Grafana of the demo deployment.
Notice, we don't provide all setups due to our monitoring target expanding fast. This demo is for helping you understand the above documents only.