-
-
Notifications
You must be signed in to change notification settings - Fork 35
Datasource: JSON
Rello edited this page Jan 14, 2022
·
8 revisions
With the JSON datasource, you can extract data from an external JSON service
- grab Nextcloud statistics from its own monitoring API (see below)
- URL needs to be accessible by Nextcloud
- Realtime or dataload
- select report
- select "JSON" datasource
- maintain parameters
- testrun until the required parameters arrive
- URL of json
- authentication
- json path (multiple values separated by ",")
- timestamp t/f
Monitor the Nextcloud instance via its internal API
- monitoring app needs to be enabled
- access token needs to be created
- URL:
http://server/nextcloud/ocs/v2.php/apps/serverinfo/api/v1/info?format=json - Auth:
user:token(from settings->security) - Path:
ocs/data/nextcloud/storage,ocs/data/nextcloud/shares - Timestamp
true

Monitor ethermine API
- URL:
https://api.ethermine.org/miner/0x70CEC2d62EcDeebd19CE87EBAf01c6d9546BF407/currentStats - Method: GET
- Auth: ``
- Path:
data/currentHashrate,data/averageHashrate - Timestamp
true