Collect CockroachDB node and cluster ids in Metricbeat module #22959
Labels
enhancement
Metricbeat
Metricbeat
module
Stalled
Team:Service-Integrations
Label for the Service Integrations team
CockroachDB has the native concept of node and cluster ids. As a user one may want to filter data per instance or per cluster.
We need to confirm the identifiers to use for each case, some options:
Cluster ID:
SELECT value FROM crdb_internal.node_build_info where field = 'ClusterID';
Node ID:
SELECT value FROM crdb_internal.node_metrics where name = 'node-id';
SELECT DISTINCT node_id FROM crdb_internal.node_build_info;
This may be an important change because current CockroachDB module is a light module collecting prometheus exposed metrics, and this may require enriching events with metadata obtained with SQL queries.
Related:
The text was updated successfully, but these errors were encountered: