mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Docs: Add usage stats preview to doc (#43995)
* Docs: Add usage stats preview to doc * Fix: remove permissions references
This commit is contained in:
parent
80c79bcdc2
commit
84c89ec61e
@ -282,6 +282,46 @@ Content-Type: application/json
|
||||
}
|
||||
```
|
||||
|
||||
## Grafana Usage Report preview
|
||||
|
||||
`GET /api/admin/usage-report-preview`
|
||||
|
||||
Preview usage report to be sent to vendor.
|
||||
|
||||
Only works with Basic Authentication (username and password). See [introduction](http://docs.grafana.org/http_api/admin/#admin-api) for an explanation.
|
||||
|
||||
**Example Request**:
|
||||
|
||||
```http
|
||||
GET /api/admin/usage-report-preview
|
||||
Accept: application/json
|
||||
Content-Type: application/json
|
||||
```
|
||||
|
||||
**Example Response**:
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"version": "8_4_0",
|
||||
"metrics": {
|
||||
"stats.active_admins.count": 1,
|
||||
"stats.active_editors.count": 1,
|
||||
"stats.active_sessions.count": 0,
|
||||
"stats.active_users.count": 2,
|
||||
"stats.active_viewers.count": 0,
|
||||
"stats.admins.count": 1,
|
||||
"stats.alert_rules.count": 0,
|
||||
"stats.alerting.ds.other.count": 0,
|
||||
"stats.alerts.count": 5,
|
||||
"stats.annotations.count": 6,
|
||||
"stats.api_keys.count": 1
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Global Users
|
||||
|
||||
`POST /api/admin/users`
|
||||
|
Loading…
Reference in New Issue
Block a user