Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
HadhemiDD committed Dec 17, 2024
1 parent d5f4706 commit f6fc127
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions duckdb/metadata.csv
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
metric_name,metric_type,interval,unit_name,per_unit_name,description,orientation,integration,short_name,curated_metric,sample_tags
duckdb.worker_threads,gauge,,,,The number of total threads used by the system,0,duckdb,,
duckdb.wal_autocheckpoint,gauge,,,,The WAL size threshold at which to automatically trigger a checkpoint,0,duckdb,,
1 change: 0 additions & 1 deletion duckdb/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@
METRICS_MAP = [
'duckdb.worker_threads',
'duckdb.wal_autocheckpoint',
'duckdb.wal_autocheckpoin',
]
10 changes: 9 additions & 1 deletion duckdb/tests/test_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,15 @@ def test_check(dd_run_check, aggregator, instance):
aggregator.assert_service_check('duckdb.can_connect', DuckdbCheck.OK)
for metric in common.METRICS_MAP:
aggregator.assert_metric(metric)
# aggregator.assert_metrics_using_metadata(get_metadata_metrics())
aggregator.assert_metrics_using_metadata(get_metadata_metrics())

def test_version(dd_run_check, aggregator, instance):
# type: (Callable[[AgentCheck, bool], None], AggregatorStub, Dict[str, Any]) -> None
instance = common.DEFAULT_INSTANCE
check = DuckdbCheck('duckdb', {}, [instance])
dd_run_check(check)

aggregator.assert_service_check('duckdb.can_connect', DuckdbCheck.OK)


def test_database_connection(dd_run_check, aggregator, instance):
Expand Down

0 comments on commit f6fc127

Please sign in to comment.