Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Commit b21df45

Browse files
authored
Merge pull request #87 from petemyron/master
fixed minor README formatting issues
2 parents 69e5ba8 + 2898cc4 commit b21df45

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Example `timeserie` response
8282
```
8383

8484
If the metric selected is `"type": "table"`, an example `table` response:
85-
```json
85+
``` json
8686
[
8787
{
8888
"columns":[
@@ -103,7 +103,7 @@ If the metric selected is `"type": "table"`, an example `table` response:
103103
### Annotation API
104104

105105
The annotation request from the Simple JSON Datasource is a POST request to
106-
the /annotations endpoint in your datasource. The JSON request body looks like this:
106+
the `/annotations` endpoint in your datasource. The JSON request body looks like this:
107107
``` javascript
108108
{
109109
"range": {
@@ -140,7 +140,7 @@ following format:
140140
```
141141

142142
Note: If the datasource is configured to connect directly to the backend, you
143-
also need to implement an OPTIONS endpoint at /annotations that responds
143+
also need to implement an OPTIONS endpoint at `/annotations` that responds
144144
with the correct CORS headers:
145145

146146
```
@@ -203,9 +203,11 @@ The tag values api returns:
203203

204204
This plugin requires node 6.10.0
205205

206-
`npm install -g yarn`
207-
`yarn install`
208-
`npm run build`
206+
```
207+
npm install -g yarn
208+
yarn install
209+
npm run build
210+
```
209211

210212
### Changelog
211213

@@ -220,7 +222,7 @@ This plugin requires node 6.10.0
220222

221223
1.3.4
222224
- Adds support for With Credentials (sends grafana cookies with request) when using Direct mode
223-
- Fix for the typeahead component for metrics dropdown (/search endpoint).
225+
- Fix for the typeahead component for metrics dropdown (`/search` endpoint).
224226

225227
1.3.3
226228
- Adds support for basic authentication
@@ -240,4 +242,4 @@ This plugin requires node 6.10.0
240242
NOTE!
241243
for grafana 2.6 please use [this version](https://github.com/grafana/simple-json-datasource/commit/b78720f6e00c115203d8f4c0e81ccd3c16001f94)
242244

243-
Copy the data source you want to /public/app/plugins/datasource/. Then restart grafana-server. The new data source should now be available in the data source type dropdown in the Add Data Source View.
245+
Copy the data source you want to `/public/app/plugins/datasource/`. Then restart grafana-server. The new data source should now be available in the data source type dropdown in the Add Data Source View.

0 commit comments

Comments
 (0)