NOTE: Trivore ID Documentation has moved to https://trivoreid.com

The content on this site IS OUT OF DATE!

This space has been archived!

Please go ahead to the new site!

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Trivore ID can collect diagnostic information about its internal operation into an InfluxDB database. This data can be visualised using external tools, such as Grafana. This document has guidance on how to install and configure Grafana, and how to set up some basic panels.

Grafana setup

Install Grafana to your server using the official instructions for your operating system. Prepare the configuration file (grafana.ini or custom.ini, depending on your system, as mentioned in the instructions). The initial login is admin/admin.

Optional OAuth login with Trivore ID

WARNING: This is not recommended at this time unless Trivore ID and the client registration is configured very securely. Grafana accepts the email address from the login, even if it is not a verified email address. Therefore if an user can change their primary email to match another Grafana user, they can log in to Grafana as this other user.

Grafana supports using an external OAuth system for logging in.

Register a new OpenID Client in Trivore ID with settings:

SettingValue
ConfidentialSelected
Redirect URLshttps://YOUR.GRAFANA.SERVER/login/generic_oauth

Set it up in the Grafana configuration file in the [auth.generic_oauth] section:

#################################### Generic OAuth ##########################
[auth.generic_oauth]
enabled = true
name = onePortal
;allow_sign_up = true
client_id = YOUR_CLIENT_ID
client_secret = YOUR_CLIENT_SECRET
scopes = openid profile email
auth_url = https://YOUR.ONEPORTAL.SERVER/openid/auth
token_url = https://YOUR.ONEPORTAL.SERVER/openid/token
api_url = https://YOUR.ONEPORTAL.SERVER/openid/userinfo

You still need to create user accounts in Grafana and send invites. If you enable allow_sign_up this may be skipped.

Add a data source

After logging in to Grafana you are suggested to add a Data Source. Add an InfluxDB data source. If you run Grafana on the same server as InfluxDB, you can use the following settings:

SettingExample value
Nameinfluxdb
TypeInfluxDB
DefaultSelected
URLhttp://localhost.8086
AccessServer
Databaseoneportal
User

root

Password****

Examples

Panels

Time spent on filterable-service queries:


Dashboards

Download and import the JSON file as a new dashboard by clicking the + icon and selecting "Import", then "Upload .json File".

  • No labels