Skip to main content
Version: 2.3.x

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 repository.

Data Node Monitor Metrics

VNODE_DISK_STORAGE

Name

vnode_disk_storage

Category

Gauge

Description

The disk that the Vnode occupies.

Tag

FieldDescription
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

Category

Gauge

Description

The cache size that vnode occupies in bytes.

Tag

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

WRITE_DATA_IN

Name

write_data_in

Category

Count

Description

Data traffic written over http, excluding SQL.

Tag

FieldDescription
TIMETime of data_in
DATABASEDatabase name
NODE_IDID of data node
TENANTTenant name the database belongs to
VALUEThe total write traffic in Bytes

SQL_DATA_IN

Name

sql_data_in

Category

Count

Description

Data traffic written by sql, including INSERT, COPY statements.

Tag

FieldDescription
TIMETime of data_in
DATABASEDatabase name
NODE_IDID of data node
TENANTTenant name the database belongs to
VALUEThe total write traffic in Bytes

COORD_DATA_IN

Name

coord_data_in

Category

Count

Description

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

Tag

FieldDescription
TIMETime of data_in
DATABASEDatabase name
NODE_IDID of data node
TENANTTenant name the database belongs to
VALUEThe total write traffic in Bytes

COORD_DATA_OUT

Name

coord_data_out

Category

Count

Description

Total outflow traffic for reading data from the database.

Tag

FieldDescription
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

HTTP_DATA_OUT

Name

http_data_out

Category

Count

Description

The size of the Http return data

Tag

FieldDescription
TIMETime of http_data_out
DATABASEDatabase name
NODE_IDID of data node
TENANTTenant name the database belongs to
DatabaseDatabase name
UserUser name
VALUEThe total size of the read traffic in Bytes

USER_QUERIES

Name

user_queries

Category

Count

Description

The times the user queries from the database.

Tag

FieldDescription
TIMETime of queries
DATABASEDatabase name
NODE_IDID of data node
TENANTTenant name the database belongs to
USERUser name
VALUEUser Query times

USER_WRITES

Name

user_writes

Category

Count

Description

The times the user writes to the database.

Tag

FieldDescription
TIMETime of writes
DATABASEDatabase name
NODE_IDID of data node
TENANTTenant name the database belongs to
USERUser name
VALUEUser write times

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']

Parameter Description

targets is the adderss of CnosDB Http.

Store to CnosDB

Change the store_metrics in config to true.