Skip to content

Commit

Permalink
modify absolute paths of images in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hoptical committed Mar 1, 2022
1 parent 3eefaa2 commit 9ccd6d6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

This plugin provides a data source to connect a REST API to [nodegraph](https://grafana.com/docs/grafana/latest/visualizations/node-graph/) panel of Grafana.

![Graph Example](https://github.com/hoptical/nodegraph-api-plugin/blob/f447b74ecefd827b388e791a34792730e9a9a11d/src/img/graph-example.png)
![Graph Example](https://raw.githubusercontent.com/hoptical/nodegraph-api-plugin/f447b74ecefd827b388e791a34792730e9a9a11d/src/img/graph-example.png)

## Getting started

Expand All @@ -24,7 +24,7 @@ for example, if you are using Grafana with containers, add:

> Note: The browser should have access to the application, not the Grafana server.
![Add Datasource](https://github.com/hoptical/nodegraph-api-plugin/blob/f447b74ecefd827b388e791a34792730e9a9a11d/src/img/add-datasource.png)
![Add Datasource](https://raw.githubusercontent.com/hoptical/nodegraph-api-plugin/f447b74ecefd827b388e791a34792730e9a9a11d/src/img/add-datasource.png)

3. In the Grafana dashboard, pick the Nodegraph panel and visualize the graph.

Expand Down Expand Up @@ -179,7 +179,7 @@ The application will be started on `http://localhost:5000`
## Query Configuration
You can pass a query string to apply for the data endpoint of the graph via *Query String*. Like any other query, you can utilize variables too:

![Add Datasource](https://github.com/hoptical/nodegraph-api-plugin/blob/22a1933b1e012602c817817f4583697e25028382/src/img/query-string.png)
![Add Datasource](https://raw.githubusercontent.com/hoptical/nodegraph-api-plugin/22a1933b1e012602c817817f4583697e25028382/src/img/query-string.png)

With variable `$service` defined as `processors`, above query will produce this endpoint:
`/api/graph/data?query=text1&service=processors`
Expand Down
8 changes: 6 additions & 2 deletions src/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,17 @@
}
],
"screenshots": [
{
"name": "Graph Example",
"path": "img/graph-example.png"
},
{
"name": "Add Datasource",
"path": "img/add-datasource.png"
},
{
"name": "Graph Example",
"path": "img/graph-example.png"
"name": "Query String",
"path": "img/query-string.png"
}
],
"version": "0.4.1",
Expand Down

0 comments on commit 9ccd6d6

Please sign in to comment.