Skip to content

Commit

Permalink
add connectivity metrics (#12093)
Browse files Browse the repository at this point in the history
  • Loading branch information
fanny-jiang authored May 27, 2022
1 parent 9a682d4 commit 2f52db6
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arangodb/datadog_checks/arangodb/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,13 @@
'arangodb_dropped_followers': {'name': 'health.dropped_followers'},
'arangodb_heartbeat_failures': {'name': 'health.heartbeat_failures'},
'arangodb_heartbeat_send_time_msec': {'name': 'health.heartbeat.sent.time'},
# connectivity
'arangodb_connection_pool_connections_created': {'name': 'connection_pool.connections.created'},
'arangodb_connection_pool_connections_current': {'name': 'connection_pool.connections.current'},
'arangodb_connection_pool_lease_time_hist': {'name': 'connection_pool.lease_time'},
'arangodb_connection_pool_leases_failed': {'name': 'connection_pool.leases.failed'},
'arangodb_connection_pool_leases_successful': {'name': 'connection_pool.leases.successful'},
'arangodb_http2_connections': {'name': 'http2.connections'},
'arangodb_vst_connections': {'name': 'vst.connections'},
}
]
9 changes: 9 additions & 0 deletions arangodb/metadata.csv
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,12 @@ arangodb.health.heartbeat_failures.count,count,,,,Total number of failed heartbe
arangodb.health.heartbeat.sent.time.bucket,count,,millisecond,,Count of times required to send heartbeats.,0,arangodb,health heartbeat sent time bucket,
arangodb.health.heartbeat.sent.time.count,count,,millisecond,,Count of times required to send heartbeats.,0,arangodb,health heartbeat sent time count,
arangodb.health.heartbeat.sent.time.sum,count,,millisecond,,Count of times required to send heartbeats.,0,arangodb,health heartbeat sent time sum,
arangodb.connection_pool.connections.created.count,count,,,,Total number of connections created for connection pool.,0,arangodb,connection pool connections created count,
arangodb.connection_pool.connections.current,gauge,,,,Current number of connections in pool.,0,arangodb,connection pool connections current,
arangodb.connection_pool.lease_time.bucket,count,,millisecond,,Count of time to lease a connection from the connection pool.,0,arangodb,connection pool lease time bucket,
arangodb.connection_pool.lease_time.count,count,,millisecond,,Count of time to lease a connection from the connection pool.,0,arangodb,connection pool lease time count,
arangodb.connection_pool.lease_time.sum,count,,millisecond,,Count of time to lease a connection from the connection pool.,0,arangodb,connection pool lease time sum,
arangodb.connection_pool.leases.failed.count,count,,,,Total number of failed connection leases.,0,arangodb,connection pool leases failed count,
arangodb.connection_pool.leases.successful.count,count,,,,Total number of successful connection leases from connection pool.,0,arangodb,connection pool leases successful count,
arangodb.http2.connections.count,count,,,,Total number of connections accepted for HTTP/2.,0,arangodb,http2 connections count,
arangodb.vst.connections.count,count,,,,Total number of connections accepted for VST.,0,arangodb,vst connections count,
9 changes: 9 additions & 0 deletions arangodb/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,15 @@
'arangodb.health.heartbeat.sent.time.bucket',
'arangodb.health.heartbeat.sent.time.count',
'arangodb.health.heartbeat.sent.time.sum',
'arangodb.connection_pool.connections.created.count',
'arangodb.connection_pool.connections.current',
'arangodb.connection_pool.lease_time.bucket',
'arangodb.connection_pool.lease_time.count',
'arangodb.connection_pool.lease_time.sum',
'arangodb.connection_pool.leases.failed.count',
'arangodb.connection_pool.leases.successful.count',
'arangodb.http2.connections.count',
'arangodb.vst.connections.count',
]

OPTIONAL_METRICS = [
Expand Down

0 comments on commit 2f52db6

Please sign in to comment.