commit | 3789ab7ef3af1aa306a133470541ed55ae619925 | [log] [tgz] |
---|---|---|
author | Fine0830 <fanxue0830@gmail.com> | Thu May 11 21:17:17 2023 +0800 |
committer | GitHub <noreply@github.com> | Thu May 11 21:17:17 2023 +0800 |
tree | f95361db9489b32103342b72d675f570bf1c507c | |
parent | 45732953c6e098d467341d1e863c9519a26e1969 [diff] |
docs: update README and bump Grafana from 9.3.8 to 9.5.1 (#2)
SkyWalking Grafana Plugins provides an extention for Apache SkyWalking visualizting telemetry data on Grafana.
Currently, SkyWalking supports PromQL to establish Grafana metrics dashboard. This plugin is focusing on more telemetry data, Service Map Topology.
This plugin provides a 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 |
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