Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In order to use this feature , we need to please use OneDevOps Insights v7.8 and above artifacts.

...

Prerequisites:

Info

Note : Please modify the filename, loki url, path in the below config as per OS and need. Path is to mention the place of position.yaml storage and loki chunks data storage.

View file
namepromtail-local-config.yaml
View file
nameloki-local-config.yaml

We have recently upgraded Loki to version 2.9.5. Refer to the page Loki 2.9.5 Configuration Update for latest configuration.

  • Start the Loki and Promtail and configure the datasources in Grafana as below.

  • Once Datasources Loki/Prometheus datasources are configured, Enable logging in Neo4j PluginDB datasource.

    • This can should be enabled/disabled for different datasources as below and configure the service URL 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 from PlaformGrafanaSerice.log as configured.

  • Once Logs are received we can use Logql and promql as shown in below sample dashboard to see statistics.

  • Upload the below Dashboard Json to get a sample template of Usage statistics:

  • Dashboard JsonUse LogQL and PromQL as datasource to create Grafana usage statistic dashboards.

  • Use below attached sample dashboard template for basic Usage statistics

View file
nameUsage Stats-16196191725551629816735692.json

  • Once Uploadedabove 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.

...