Instance usage statistics
GET <your-unleash-url>/api/admin/instance-admin/statistics
Authorization
name: Authorizationtype: apiKeyin: header
This endpoint has been deprecated and may be removed in future versions of the API.
Provides statistics about various features of Unleash to allow for reporting of usage for self-hosted customers. The response contains data such as the number of users, groups, features, strategies, versions, etc.
Request
- 200
instanceAdminStatsSchema
- application/json
- Schema
- Example (from schema)
Schema
- instanceId string required
A unique identifier for this instance. Generated by the database migration scripts at first run. Typically a UUID.
- timestamp date-time nullable
When these statistics were produced
- versionOSS string
The version of Unleash OSS that is bundled in this instance
- versionEnterprise string
The version of Unleash Enterprise that is bundled in this instance
- users number
The number of users this instance has
activeUsers object
productionChanges object
- featureToggles number
The number of feature-toggles this instance has
- projects number
The number of projects defined in this instance.
- contextFields number
The number of context fields defined in this instance.
- roles number
The number of roles defined in this instance
- groups number
The number of groups defined in this instance
- environments number
The number of environments defined in this instance
- segments number
The number of segments defined in this instance
- strategies number
The number of strategies defined in this instance
- SAMLenabled boolean
Whether or not SAML authentication is enabled for this instance
- OIDCenabled boolean
Whether or not OIDC authentication is enabled for this instance
clientApps object[]
- featureExports number
The number of export operations on this instance
- featureImports number
The number of import operations on this instance
- sum string
A SHA-256 checksum of the instance statistics to be used to verify that the data in this object has not been tampered with
{
"instanceId": "ed3861ae-78f9-4e8c-8e57-b57efc15f82b",
"timestamp": "2023-06-12T12:25:06Z",
"versionOSS": "5.1.7",
"versionEnterprise": "5.1.7",
"users": 8,
"activeUsers": {
"last7": 5,
"last30": 10,
"last60": 12,
"last90": 15
},
"productionChanges": {
"last30": 10,
"last60": 12,
"last90": 15
},
"featureToggles": 47,
"projects": 3,
"contextFields": 7,
"roles": 5,
"groups": 12,
"environments": 3,
"segments": 19,
"strategies": 8,
"SAMLenabled": false,
"OIDCenabled": true,
"clientApps": [
{
"range": "30d",
"count": 1
}
],
"featureExports": 0,
"featureImports": 0,
"sum": "b023323477abb1eb145bebf3cdb30a1c2063e3edc1f7ae474ed8ed6c80de9a3b"
}
Authorization
name: Authorizationtype: apiKeyin: header
Request
Request
curl -L -X GET '<your-unleash-url>/api/admin/instance-admin/statistics' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
curl -L -X GET '<your-unleash-url>/api/admin/instance-admin/statistics' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
curl -L -X GET '<your-unleash-url>/api/admin/instance-admin/statistics' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
curl -L -X GET '<your-unleash-url>/api/admin/instance-admin/statistics' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
curl -L -X GET '<your-unleash-url>/api/admin/instance-admin/statistics' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
curl -L -X GET '<your-unleash-url>/api/admin/instance-admin/statistics' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
curl -L -X GET '<your-unleash-url>/api/admin/instance-admin/statistics' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
curl -L -X GET '<your-unleash-url>/api/admin/instance-admin/statistics' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
curl -L -X GET '<your-unleash-url>/api/admin/instance-admin/statistics' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'