Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add connectivity metrics #12093

Merged
merged 1 commit into from
May 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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