commit | 4fd0046e25307cc74ea5fe8feaf3cc799fea3180 | [log] [tgz] |
---|---|---|
author | Fine0830 <fanxue0830@gmail.com> | Mon May 15 17:20:54 2023 +0800 |
committer | GitHub <noreply@github.com> | Mon May 15 17:20:54 2023 +0800 |
tree | a49382b0b4f9229d0b48dc32ebc6742682451a3b | |
parent | bbe506607de19f80cf5ab62ca8c06d5572a20f3d [diff] |
add icon (#11)
SkyWalking Grafana Plugins provide extensions for Apache SkyWalking to visualize telemetry data on Grafana.
Currently, SkyWalking supports PromQL to establish Grafana metrics dashboard.
The plugins are focusing on visualizing more telemetry data, e.g. Service Map Topology, as a new Grafana data source implementation.
> grafana-cli plugins install skywalking-datasource
To configure basic settings for the data source, complete the following steps:
Click Connections in the left-side menu.
Under Your connections, click Data sources.
Enter SkyWalking in the search bar.
Select SkyWalking.
The Settings tab of the data source is displayed.
Name | Description |
---|---|
Name | Sets the name you use to refer to the data source in panels and queries. |
URL | Sets the URL of the SkyWalking instance, such as http://skywalking.example.com/graphql. |
Select the Dashboards tab.
Select the Node Graph in the dashboard.
Set the data source’s basic configuration options on the query tab:
Name | Example(Value) | Description |
---|---|---|
Layer | $layer | Current layer of services |
Service | $service | Current service |
Node Metrics | [{"name":"service_sla","calculation":"percentage","label":"Success Rate","unit":"%"}] | Supports multiple metrics |
Edge Metrics | [{"name":"service_relation_server_cpm","label":"Client Load","unit":"cpm","type":"SERVER"}] | Only supports maximum two metrics |
dev-subscribe@skywalking.apache.org
, follow the reply to subscribe the mail list.Request to join SkyWalking slack
mail to the mail list(dev@skywalking.apache.org
), we will invite you in.NOTICE, Grafana itself is licensed in GNU Affero General Public License v3.0.
Install dependencies
yarn install
Build plugin in development mode and run in watch mode
yarn dev
Build plugin in production mode
yarn build
Run the tests (using Jest)
# Runs the tests and watches for changes, requires git init first yarn test # Exits after running all the tests yarn test:ci
Spin up a Grafana instance and run the plugin inside it (using Docker)
yarn server
Run the E2E tests (using Cypress)
# Spins up a Grafana instance first that we tests against yarn server # Starts the tests yarn e2e
Run the linter
yarn lint # or yarn lint:fix