Showing results for 
Search instead for 
Did you mean: 

Join the community at Nodes 2022, our free virtual event on November 16 - 17.

Datadog MetricTransformer Error



I'm receiving the error bellow using the Datadog neo4j integration.

The integration version that I'm using is 2.0.0.

datadog-agent integration install -t datadog-neo4j==2.0.0

Bellow the error:

datadog-agent check neo4j --check-rate

Running Checks

neo4j (2.0.0)
  Instance ID: neo4j:ed314223fea05485 [ERROR]
  Configuration Source: file:/etc/datadog-agent/conf.d/neo4j.d/conf.yaml
  Total Runs: 2
  Metric Samples: Last Run: 0, Total: 0
  Events: Last Run: 0, Total: 0
  Service Checks: Last Run: 0, Total: 0
  Average Execution Time : 1ms
  Last Execution Date : 2022-02-18 12:03:49 UTC (1645185829000)
  Last Successful Execution Date : Never
  Error: 'MetricTransformer' object has no attribute 'add_custom_transformer'
  Traceback (most recent call last):
    File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/base/checks/", line 992, in run
    File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/neo4j/", line 69, in configure_additional_transformers
  AttributeError: 'MetricTransformer' object has no attribute 'add_custom_transformer'


The datadog conf.yaml file:


The 2004/metrics is listening. Bellow the curl of metrics link:

curl http://localhost:2004/metrics

HELP neo4j_system_cypher_replan_events_total Generated from Dropwizard metric import (metric=neo4j.system.cypher.replan_events, type=com.neo4j.metrics.metric.MetricsCounter)

TYPE neo4j_system_cypher_replan_events_total counter

neo4j_system_cypher_replan_events_total 0.0

HELP neo4j_system_db_query_execution_failure_total Generated from Dropwizard metric import (metric=neo4j.system.db.query.execution.failure, type=com.codahale.metrics.Meter)

TYPE neo4j_system_db_query_execution_failure_total counter

neo4j_system_db_query_execution_failure_total 0.0

HELP neo4j_system_transaction_active_write Generated from Dropwizard metric import (metric=neo4j.system.transaction.active_write, type=com.neo4j.metrics.source.db.TransactionMetrics$$Lambda$1120/0x0000000840924c40)

TYPE neo4j_system_transaction_active_write gauge

neo4j_system_transaction_active_write 0.0

HELP neo4j_vm_pause_time Generated from Dropwizard metric import (metric=neo4j.vm.pause_time, type=com.neo4j.metrics.source.jvm.PauseMetrics$$Lambda$2538/0x0000000841a0a840)

TYPE neo4j_vm_pause_time gauge

neo4j_vm_pause_time 0.0

I'm using the NEO4J 4.3.9 version.

What can be the issue?

Nodes 2022
NODES 2022, Neo4j Online Education Summit - November 16 - 17, 2022.

Free NODES Training Series

October 19th -

Intro to Neo4j

October 20th -

Healthcare Analytics Using Neo4j

October 25th -

Handling Neo4j data with Apache Hop

October 26th -

Blazing Fast Graphs: Hands-on with Apache Arrow and Neo4j

November 2nd -

Graph EDA Using the Neo4j GDS Client