yugabyte/yugabyte-db

[DocDB] All rocksdb_block_cache prometheus statistics are wrongly annotated as gauges, should be counters

Open

#18.040 aperta il 1 lug 2023

Vedi su GitHub
 (3 commenti) (0 reazioni) (1 assegnatario)C (1003 fork)batch import
area/docdbdatapath-onboardinggood first issuehelp wantedkind/bugpriority/medium

Metriche repository

Star
 (8229 star)
Metriche merge PR
 (Merge medio 17g 21h) (92 PR mergiate in 30 g)

Descrizione

Jira Link: DB-7092

Description

When looking at the DocDB rocksdb_block_cache statistic metadata for prometheus, the statistics are wrongly annotated as gauges, these should be counters (it's even indicated in the HELP text: 'Rocksdb Ticker':

# HELP rocksdb_block_cache_data_hit Per-tablet Regular Rocksdb Ticker for rocksdb_block_cache_data_hit
# TYPE rocksdb_block_cache_data_hit gauge
rocksdb_block_cache_data_hit{table_id="00004000000030008000000000004004.colocation.parent.uuid",table_name="00004000000030008000000000004004.colocation.parent.tablename",namespace_name="taqo",table_type="PGSQL_TABLE_TYPE",metric_type="tablet",exported_instance="yb-15-tverona-taqo-test1-n1"} 8 1688214784225
# HELP rocksdb_block_cache_data_hit Per-tablet Regular Rocksdb Ticker for rocksdb_block_cache_data_hit
# TYPE rocksdb_block_cache_data_hit gauge
rocksdb_block_cache_data_hit{table_id="000033f6000030008000000000004000",table_name="write_read_test",namespace_name="system_platform",table_type="PGSQL_TABLE_TYPE",metric_type="tablet",exported_instance="yb-15-tverona-taqo-test1-n1"} 0 1688214784225
# HELP rocksdb_block_cache_data_hit Per-tablet Regular Rocksdb Ticker for rocksdb_block_cache_data_hit
# TYPE rocksdb_block_cache_data_hit gauge
rocksdb_block_cache_data_hit{table_id="ec73ca3449214bad94979a3796e3b7aa",table_name="transactions",namespace_name="system",table_type="TRANSACTION_STATUS_TABLE_TYPE",metric_type="tablet",exported_instance="yb-15-tverona-taqo-test1-n1"} 0 1688214784225

Warning: Please confirm that this issue does not contain any sensitive information

  • I confirm this issue does not contain any sensitive information.

Guida contributor