Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
616a6bec
Commit
616a6bec
authored
Feb 05, 2016
by
utkarshcmu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added api heading in the main menu
parent
952e4dab
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
11 deletions
+16
-11
docs/mkdocs.yml
+9
-1
docs/sources/http_api/first_steps.md
+6
-9
docs/sources/installation/migrating_to2.md
+1
-1
No files found.
docs/mkdocs.yml
View file @
616a6bec
...
@@ -65,7 +65,6 @@ pages:
...
@@ -65,7 +65,6 @@ pages:
-
[
'
reference/plugins.md'
,
'
Reference'
,
'
Plugins'
]
-
[
'
reference/plugins.md'
,
'
Reference'
,
'
Plugins'
]
-
[
'
reference/export_import.md'
,
'
Reference'
,
'
Import
&
Export'
]
-
[
'
reference/export_import.md'
,
'
Reference'
,
'
Import
&
Export'
]
-
[
'
reference/admin.md'
,
'
Reference'
,
'
Administration'
]
-
[
'
reference/admin.md'
,
'
Reference'
,
'
Administration'
]
-
[
'
reference/http_api.md'
,
'
Reference'
,
'
HTTP
API'
]
-
[
'
reference/keyboard_shortcuts.md'
,
'
Reference'
,
'
Keyboard
Shortcuts'
]
-
[
'
reference/keyboard_shortcuts.md'
,
'
Reference'
,
'
Keyboard
Shortcuts'
]
-
[
'
datasources/overview.md'
,
'
Data
Sources'
,
'
Overview'
]
-
[
'
datasources/overview.md'
,
'
Data
Sources'
,
'
Overview'
]
...
@@ -77,6 +76,15 @@ pages:
...
@@ -77,6 +76,15 @@ pages:
-
[
'
datasources/kairosdb.md'
,
'
Data
Sources'
,
'
KairosDB'
]
-
[
'
datasources/kairosdb.md'
,
'
Data
Sources'
,
'
KairosDB'
]
-
[
'
datasources/prometheus.md'
,
'
Data
Sources'
,
'
Prometheus'
]
-
[
'
datasources/prometheus.md'
,
'
Data
Sources'
,
'
Prometheus'
]
-
[
'
http_api/first_steps.md'
,
'
HTTP
API'
,
'
Authentication
API'
]
-
[
'
http_api/dashboards.md'
,
'
HTTP
API'
,
'
Dashboards
API'
]
-
[
'
http_api/data_sources.md'
,
'
HTTP
API'
,
'
Data
Sources
API'
]
-
[
'
http_api/orgs.md'
,
'
HTTP
API'
,
'
Organisations
API'
]
-
[
'
http_api/users.md'
,
'
HTTP
API'
,
'
Users
API'
]
-
[
'
http_api/admin.md'
,
'
HTTP
API'
,
'
Admin
API'
]
-
[
'
http_api/snapshots.md'
,
'
HTTP
API'
,
'
Snapshots
API'
]
-
[
'
http_api/general.md'
,
'
HTTP
API'
,
'
Other
API'
]
-
[
'
tutorials/index.md'
,
'
Tutorials'
,
'
Tutorials'
]
-
[
'
tutorials/index.md'
,
'
Tutorials'
,
'
Tutorials'
]
-
[
'
tutorials/hubot_howto.md'
,
'
Tutorials'
,
'
How
To
integrate
Hubot
and
Grafana'
]
-
[
'
tutorials/hubot_howto.md'
,
'
Tutorials'
,
'
How
To
integrate
Hubot
and
Grafana'
]
...
...
docs/sources/http_api/first_steps.md
View file @
616a6bec
----
----
page_title:
HTTP
API
page_title:
Authentication
API
page_description: Grafana HTTP API Reference
page_description: Grafana HTTP API Reference
page_keywords: grafana, admin, http, api, documentation
page_keywords: grafana, admin, http, api, documentation
---
---
#
HTTP API Reference
#
Authentication API
The Grafana backend exposes an HTTP API, the same API is used by the frontend to do everything from saving
The Grafana backend exposes an HTTP API, the same API is used by the frontend to do everything from saving
dashboards, creating users and updating data sources.
dashboards, creating users and updating data sources.
## Authorization
## Tokens
### Tokens
Currently you can authenticate via an
`API Token`
or via a
`Session cookie`
(acquired using regular login or oauth).
Currently you can authenticate via an
`API Token`
or via a
`Session cookie`
(acquired using regular login or oauth).
##
#
Basic Auth
## Basic Auth
If basic auth is enabled (it is enabled by default) you can authenticate your HTTP request via
If basic auth is enabled (it is enabled by default) you can authenticate your HTTP request via
standard basic auth.
standard basic auth.
...
@@ -26,7 +24,7 @@ curl example:
...
@@ -26,7 +24,7 @@ curl example:
{"id":1,"name":"Main Org."}
{"id":1,"name":"Main Org."}
```
```
##
#
Create API Token
## Create API Token
Open the sidemenu and click the organization dropdown and select the
`API Keys`
option.
Open the sidemenu and click the organization dropdown and select the
`API Keys`
option.
...
@@ -40,4 +38,4 @@ You use the token in all requests in the `Authorization` header, like this:
...
@@ -40,4 +38,4 @@ You use the token in all requests in the `Authorization` header, like this:
Accept: application/json
Accept: application/json
Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk
Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk
The
`Authorization`
header value should be
`Bearer <your api key>`
.
The
`Authorization`
header value should be
`Bearer <your api key>`
.
\ No newline at end of file
docs/sources/installation/migrating_to2.md
View file @
616a6bec
...
@@ -20,7 +20,7 @@ migrate to Grafana 2.0.
...
@@ -20,7 +20,7 @@ migrate to Grafana 2.0.
## Adding Data sources
## Adding Data sources
The
`config.js`
file has been deprecated. Data sources are now managed via
The
`config.js`
file has been deprecated. Data sources are now managed via
the UI or
[
HTTP API
](
../
reference/http_api
.md
)
. Manage your
the UI or
[
HTTP API
](
../
http_api/first_steps
.md
)
. Manage your
organizations data sources by clicking on the
`Data Sources`
menu on the
organizations data sources by clicking on the
`Data Sources`
menu on the
side menu (which can be toggled via the Grafana icon in the upper left
side menu (which can be toggled via the Grafana icon in the upper left
of your browser).
of your browser).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment