Integration examples
AuraDB Virtual Dedicated Cloud AuraDS Enterprise AuraDB Business Critical
Aura metrics integration examples for various APM platforms.
Example using Prometheus
-
One way is to get a tarball from https://prometheus.io/docs/prometheus/latest/installation/
-
To monitor one or more instances, add a section to the Prometheus configuration file
prometheus.yml
. -
Copy the job configuration template provided for the project endpoint or the instance endpoint, as shown.
-
Replace the placeholders
<AURA_CLIENT_ID>
and<AURA_CLIENT_SECRET>
with corresponding values created in the API credentials section. -
For details, see Prometheus configuration reference.
-
Use the config updated with credentials to start the Prometheus server.
./prometheus --config.file=prometheus.yml
-
Check if the metrics endpoints are being successfully connected as targets in Prometheus' UI:
-
Check if any of the Aura metrics are showing up by querying using PromQL and plot the basic graphs:
-
Install and configure Grafana, adding the endpoint of the Prometheus instance configured in the previous step as a data source. You can create visualizations, dashboards, and alarms based on Neo4j metrics.
The following is an example of gaining more insights into your Aura instance CPU usage for capacity planning:
-
Example PromQL query to plot
max by(availability_zone) (neo4j_aura_cpu_usage{instance_mode="PRIMARY"}) / sum by(availability_zone) (neo4j_aura_cpu_limit{instance_mode="PRIMARY"})
Example using Datadog
-
Edit
/etc/datadog-agent/conf.d/openmetrics.d/conf.yaml
as follows:
Replace the placeholders `<ENDPOINT_URL>`, `<AURA_CLIENT_ID>` and `<AURA_CLIENT_SECRET>` with corresponding values from the previous steps.
/etc/datadog-agent/conf.d/openmetrics.d/conf.yaml
init_config:
instances:
- openmetrics_endpoint: <ENDPOINT_URL>
metrics:
- neo4j_.*
auth_token:
reader:
type: oauth
url: https://api.neo4j.io/oauth/token
client_id: <AURA_CLIENT_ID>
client_secret: <AURA_CLIENT_SECRET>
writer:
type: header
name: Authorization
value: "Bearer <TOKEN>"
For details, see Datadog Agent documentation and configuration reference.
-
sudo systemctl restart datadog-agent
-
Watch
/var/log/datadog/*
to see if fetching metrics happens or if there are warnings regarding parsing the configuration. -
Check in Datadog metric explorer to see if metrics appear (after a couple of minutes).