https://github.com/wavefronthq/grafana-wavefront-datasource
A Grafana Datasource plugin Wavefront. Allows Wavefront to the backend for your Grafana dashboards.
https://github.com/wavefronthq/grafana-wavefront-datasource
Last synced: 11 months ago
JSON representation
A Grafana Datasource plugin Wavefront. Allows Wavefront to the backend for your Grafana dashboards.
- Host: GitHub
- URL: https://github.com/wavefronthq/grafana-wavefront-datasource
- Owner: wavefrontHQ
- License: apache-2.0
- Created: 2017-04-18T18:24:32.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-08T06:06:42.000Z (over 2 years ago)
- Last Synced: 2025-04-11T05:06:56.153Z (about 1 year ago)
- Language: TypeScript
- Size: 104 KB
- Stars: 6
- Watchers: 3
- Forks: 9
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Wavefront Datasource Plugin for Grafana
This plugin enables [Wavefront](https://www.wavefront.com) as a Grafana datasource supporting Grafana v6.
## Development
- `git checkout`
- `brew install node`
- `npm install`
- Update files
- `npm run build`
## Installation
- Copy the dist folder to your grafana plugin directory (ie: `/usr/local/var/lib/grafana/plugins/wavefront-datasource`)
- Restart grafana
## Adding Datasource via CLI
```json
curl -H "Content-Type: application/json" --user admin:admin 'http://localhost:3000/api/datasources' -X POST -d '{"name":"wavefront","type":"wavefront-datasource","url":"https://try.wavefront.com","access":"direct","jsonData":{"wavefrontToken":"TOKEN_GOES_HERE"},"secureJsonFields":{}}'
```
## Datasource support
- Use graphical query builder, or text editor mode to create Wavefront Query Language expressions
- Supports dashboard variables using Grafana standard syntax: `$varname` or `[[varname]]`
- Supports dashboard templating via variables
- Supports dynamic variables list via queries
- Known limitations of dashboard variables:
- Multi-mode is only supported when variable is used for templating (repeat rows / charts)
- All mode (blank) is supported when variable is used for templating (repeat rows / charts)
- All mode with `*` for value, when variable is used within a query
- Value groups/tags is not supported via Grafana interface. Use query instead.
- Dashboard variable query syntax:
- *metric* lists: `metrics: ts(...)`
- *source* lists: `sources: ts(...)`
- *source tag* lists: `sourceTags: ts(...)`
- *matching source tag* lists: `matchingSourceTags: ts(...)`
- *tag name* lists: `tagNames: ts(...)`
- *tag value* lists: `tagValues(): ts(...)`
- The `s` at the end of each query type is optional
- Support for all lowercase. You can use `tagnames` or `tagNames`, but not `TAGNAMES`.
- whitespaces around the `:` is optional