Skip to main content
Version: 2.3.2

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

Type

Gauge

Description

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

HTTP_DATA_IN

NAME

http_data_in

Category

Count

Description

Data traffic written over http, excluding SQL.

Tag

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

HTTP_DATA_OUT

Name

http_data_out

Category

Count

Description

The size of the Http return data

Tag

FieldDescription
TIMETime of record
DATABASEDatabaseName
NODE_IDID of data node
TENANTTenant name the database belongs to
DatabaseDatabase name
UserUser name
VALUEThe total write traffic in Bytes

HTTP_QUERIES

Name

http_queries

Type

Count

Description

This metric keeps track of the number of Http queries a user makes.

Tag

FieldDiscription
TIMETime of record
DATABASEDatabaseName
NODE_IDID of data node
TENANTTenant name the database belongs to
USERUser name
VALUEQuery times

HTTP_WRITES

Name

http_writes

Type

Count

Description

This metric records the number of times a user writes via Http.

Tag

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

HTTP_QUERY_DURATION

Name

http_query_duration

Type

Histogram

Description

Time spent querying through the Http interface.

Tag

FieldDescription
TIMETime of record
DATABASEDatabase name
NODE_IDID of data node
TENANTTenant name the database belongs to
DatabaseDatabase name
UserUser name
LELess than this time, in ms
VALUETimes

HTTP_WRITE_DURATION

Name

http_write_duration

Type

Histogram

Description

Time taken to write through the Http interface.

Tag

FieldDiscription
TIMETime of queries
DATABASEDatabase name
NODE_IDID of data node
TENANTTenant name the database belongs to
USERUser name
LELess than this time, in ms
VALUETimes

COORD_DATA_IN

Name

coord_data_in

Type

Count

Description

Total size of the data accepted by the Coordinator when the data is written to the database.

Tag

FieldDiscription
TIMETime of record
DATABASEDatabase name
NODE_IDID of data node
TENANTTenant name the database belongs to
VALUEData size in bytes

COORD_DATA_OUT

Name

coord_data_out

Type

Count

Description

Total size of the data sent by the Coordinator when the data is read out of the database.

Tag

FieldDiscription
TIMETime of record
DATABASEDatabase name
NODE_IDID of data node
TENANTTenant name the database belongs to
VALUEData size in bytes

COORD_QUERIES

Name

coord_queries

Type

Count

Type

The number of times the data passes through the Coordinator during the query.

Tag

FieldDiscription
TIMETime of record
DATABASEDatabase name
NODE_IDID of data node
TENANTTenant name the database belongs to
VALUETimes

COORD_WRITES

Name

coord_writes

Type

Count

Description

The number of times the data passes through the Coordinator during writing.

Tag

FieldDiscription
TIMETime of record
DATABASEDatabase name
NODE_IDID of data node
TENANTTenant name the database belongs to
VALUETimes

SQL_DATA_IN

Name

sql_data_in

Type

Count

Description

The size of the data written via sql, including INSERT, COPY statements

Tag

FieldDiscription
TIMETime of record
DATABASEDatabase name
NODE_IDID of data node
TENANTTenant name the database belongs to
VALUEData size in bytes

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.