In order to use this feature , please use OneDevOps Insights v7.8 and above artifacts.
...
Prerequisites:
Download Loki and Promtail .
Install Loki and Promtail as per OS or configure it as service.
Use Latest Neo4j Plugin for this feature.
Use the below sample config files to start with initial setup.
...
Start the Loki and Promtail and configure the datasources in Grafana as below.
Once Loki/Prometheus datasources are configured, Enable logging in Neo4j DB datasource.
This should be enabled/disabled for Neo4j datasources created for all organizations. Also provide the service URL (<protocol>://DOMAIN_NAME/PlatformService/externalApi/Neo4jPluginLog/logDashboardInfo) to collect the necessary information.
...
Usage:
PlatformService logs all dashboard information including user details in PlaformGrafanaSerice.log
Promtail reads PlaformGrafanaSerice.log and pushes the logs to Loki.
Use LogQL and PromQL as datasource to create Grafana usage statistic dashboards.
Use below attached sample dashboard template for basic Usage statistics
View file | ||
---|---|---|
|
Once above template is imported, try to access any dashboard configured with above neo4j plugin , you should be able to see the Usage Statistics.
Play around with LogQL and PromQL for more advance KPIs.
...