Monitor

CnosDBAbout 1 minAbout 380 words

Monitor

Currently, CnosDB metrics can be collected by Prometheus or stored on CnosDB.

If you would like to see more metrics supported by CnosDB, please send an ISSUE to the repositoryopen in new window.

Data Node Monitor Metrics

VNODE_DISK_STORAGE

Name

vnode_disk_storage

Type

Gauge

Discription

The disk that the Vnode occupies.

Tag

FieldDiscription
DATABASEDatabase vnode belongs to
NODE_IDID of data node
TENANTtenant vnode belongs to
VNODE_IDID of Vnode
VALUEDisk that the Vnode occupies in bytes

VNODE_CACHE_SIZE

Name

vnode_cache_size

Type

Gauge

Description

The cache size that vnode occupies in bytes.

Tag

FieldDiscription
DATABASEDatabase vnode belongs to
NODE_IDID of data node
TENANTtenant vnode belongs to
VNODE_IDID of Vnode
VALUECache that the Vnode occupies in bytes

COORD_DATA_IN

Name

coord_data_in

Type

Count

Discription

The total size of the written traffic when data is written to the database.

Tag

FieldDiscription
TIMETime of data_in
DATABASEDatabaseName
NODE_IDID of data node
TENANTTenant name the database belongs to
VALUEThe total size of the write traffic in Bytes

COORD_DATA_OUT

Name

coord_data_out

Type

Count

Discription

Total outflow traffic for reading data from the database.

Tag

FieldDiscription
TIMETime of data out
DATABASEDatabase name
NODE_IDID of data node
TENANTTenant name the database belongs to
VALUEThe total size of the read traffic in Bytes

USER_QUERIES

Name

user_queries

Type

Count

Discription

The times the user queries from the database.

Tag

FieldDiscription
TIMETime of queries
DATABASEDatabase name
NODE_IDID of data node
TENANTTenant name the database belongs to
USERUser name
VALUEThe times the user queries from the database.

USER_WRITES

Name

user_writes

Type

Count

Discription

The times the user writes to the database.

Tag

FieldDiscription
TIMETime of writes
DATABASEDatabase name
NODE_IDID of data node
TENANTTenant name the database belongs to
USERUser name
VALUEThe times the user writes to the database.

Prometheus Monitor

Just add Job at the Prometheus configuration file.

scrape_configs:
  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  - job_name: 'cnosdb'
    static_configs:
      - targets: ['127.0.0.1:8902']

Params

targets is the adderss of CnosDB Http.

Store to CnosDB

Change the store_metrics in config to true.