-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grafana Data source skeleton for Metrist #1
Conversation
// Unmarshal the JSON into our queryModel. | ||
var qm queryModel | ||
|
||
err := json.Unmarshal(query.JSON, &qm) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be the place where we call our backend to get values. The queryModel
can hold the parameters that is required for the query
Quickest way to get started is to run | ||
|
||
```bash | ||
npm install npm@8 -g # Make sure you have NPM version 8 to avoid grafana-e2e cli issue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added an issue to track this grafana/grafana#59425
Used
npx @grafana/create-plugin
to generate initial code and added the following changes.tools-version
and instructions on how to quickly setup your environmentprovider
directory so that themetrist-datasource
gets installed automatically after runningnpm run server
GF_LOG_FILTERS = "filters = plugin.metrist-grafana-datasource:debug"
in the DockerfileQuery
Datasource
![image](https://user-images.githubusercontent.com/77761194/204068448-d5dbfd4f-0bf5-4d11-bc00-9916c1848991.png)