Important
The SingleStore 9.1 release candidate (RC) gives you the opportunity to preview, evaluate, and provide feedback on new and upcoming features prior to their general availability. In the interim, SingleStore 9.0 is recommended for production workloads, which can later be upgraded to SingleStore 9.1.
Troubleshoot Your Monitoring Setup
On this page
Pipelines
Check the Monitoring Tables for Data
-
Connect to the database.
-
Run the following SQL.
The default database name is metrics.If your database name is different from the default name, replace metricswith your database name.USE metrics;SELECT * FROM metrics LIMIT 10;Optional, run
SELECT * FROMon all of the monitoring tables.If these queries return an empty set, review the pipelines error tables using the next step.
-
Review the monitoring pipelines.
SHOW PIPELINES; -
If a monitoring pipeline (with a name resembling
*_andmetrics *_) is in a state other thanblobs running, start the pipeline.START PIPELINE <pipeline-name>; -
Check the
information_table for errors.schema. pipelines_ errors SELECT * FROM information_schema.pipelines_errors;
Resolve Pipeline Errors
If you receive an Cannot extract data for the pipeline error in the pipelines_, perform the following steps.
-
Confirm that port
9104is accessible from all hosts in the cluster.This is the default port used for monitoring. To test this, run the following command at the Linux command line and review the output. curl http://<endpoint>:9104/cluster-metricsFor example:
curl http://192.168.1.100:9104/cluster-metrics -
If the hostname of the Master Aggregator is
localhost, and a pipeline was created usinglocalhost, use the following SQL commands to recreate the pipeline with the Master Aggregator host’s IP addresses.For example: metricspipeline:CREATE OR REPLACE PIPELINE `metrics` AS LOAD DATA prometheus_exporter"http://<host-ip-address>:9104/cluster-metrics" CONFIG '{"is_memsql_internal":true}'INTO PROCEDURE `load_metrics` FORMAT JSON;START PIPELINE IF NOT RUNNING metrics;blobspipeline:CREATE OR REPLACE PIPELINE `blobs` AS LOAD DATA prometheus_exporter"http://<host-ip-address>:9104/samples" CONFIG '{"is_memsql_internal":true, "download_type":"samples"}'INTO PROCEDURE `load_blobs` FORMAT JSON;START PIPELINE IF NOT RUNNING blobs;
Disable Collection of Specific Metrics
In some environments, specific metrics can be expensive to generate, produce copious amounts of data, or capture information that is not required.
How the Monitoring Exporter Collects Metrics
The monitoring exporter uses the following internal components to collect metrics:
-
Collectors: Generate Prometheus-format metrics.
Disable a collector by adding the --no-cluster-collect.flag to the exporter configuration.<collector_ name> List of collectors: Collector name
Description
eventsCollect from
information_.schema. MV_ EVENTS info_schema. processlist Collect current thread state counts from
information_.schema. PROCESSLIST info_schema. mv_ processlist Collect current thread state counts from
information_.schema. MV_ PROCESSLIST memory.counters Collect memory aggregates from
GLOBAL STATUSvariables.info_schema. tables Collect metrics from
information_.schema. TABLES info_schema. tablestats Collect table statistics from
information_.schema. TABLE_ STATISTICS info_schema. mv_ nodes Collect metrics from
information_.schema. MV_ NODES info_schema. system_ info Collect metrics from
MV_andNODES MV_.HOSTS_ INFORMATION info_schema. mv_ disk_ usage Collect disk usage stats by SingleStore nodes from
information_.schema. MV_ DISK_ USAGE info_schema. mv_ data_ disk_ usage Collect breakdown of disk usage by each database from
information_.schema. MV_ DATA_ DISK_ USAGE info_schema. resource_ pools Collect resource pool configurations from
information_.schema. RESOURCE_ POOLS info_schema. resource_ pool_ status Collect resource pool status from
information_.schema. MV_ RESOURCE_ POOL_ STATUS info_schema. aggregators Collect Aggregator node information from
information_.schema. AGGREGATORS info_schema. leaves Collect leaf node information from
information_.schema. LEAVES distributed.partitions Collect partition status from
information_(offline/online/total per DB/role).schema. DISTRIBUTED_ PARTITIONS distributed.unavailable. partitions For each cluster, returns
1if there exists a fully unavailable partition in any user database ininformation_(both Master and Replica offline).schema. DISTRIBUTED_ PARTITIONS heartbeatCollect from a heartbeat table (e.
g. pt-heartbeat) to expose stored vs current timestamps. info_schema. mv_ bottomless_ status_ extended Collect statistics about remote storage usage from
information_.schema. MV_ BOTTOMLESS_ STATUS_ EXTENDED info_schema. mv_ cloud_ duplication_ status Collect statistics about storage duplication from
information_.schema. MV_ CLOUD_ DUPLICATION_ STATUS info_schema. mv_ cloud_ branches Collect statistics about duplication attach points from
information_.schema. MV_ CLOUD_ BRANCHES info_schema. mv_ trace_ events_ status Collect Event Tracing status from
information_.schema. MV_ TRACE_ EVENTS_ STATUS pipeline.metrics Collect pipeline state metrics from
information_(state, IDs, times) and pipeline counts (running/stopped/errored).schema. PIPELINES pipeline.errorstate Mark pipelines in
state = 'ERROR'(per database and pipeline name).pipeline.errors Collect pipeline errors since the last seen timestamp from
information_.schema. PIPELINES_ ERRORS info_schema. pipeline_ batches Collect batch-level pipeline metrics from
information_.schema. PIPELINES_ BATCHES -
Samplers: Generate non-Prometheus-format metrics that populate internal metric tables/views used by dashboards and other components.
Disable a sampler by adding the --no-sample.flag to the exporter configuration.<sampler_ name> List of samplers: Sampler name
Description
activitySample the contents of
information_(and optionallyschema. MV_ ACTIVITIES_ CUMULATIVE information_).schema. MV_ QUERIES activity_extended Sample the contents of
information_(and optionallyschema. MV_ ACTIVITIES_ EXTENDED_ CUMULATIVE information_).schema. MV_ QUERIES nodeSample the contents of
information_.schema. MV_ NODES cluster_info Expose
information_,schema. MV_ NODES information_,schema. MV_ HOSTS_ INFORMATION information_, andschema. MV_ DISTRIBUTED_ DATABASES_ STATUS information_.schema. MV_ CLUSTER_ STATUS pipeline_metrics Expose the
information_table.schema. PIPELINES pipeline_errors Expose
information_since the last sampled error timestamp.schema. PIPELINES_ ERRORS eventsExpose the
information_table as a stream of event records.schema. MV_ EVENTS connection_attributes Expose
information_.schema. MV_ CONNECTION_ ATTRIBUTES columnstore_merge_ status Expose
information_.schema. MV_ COLUMNSTORE_ MERGE_ STATUS
Disable Metrics
Update the exporter flags in the operator configuration.
-
Open the
sdb-operator.file for the deployment.yaml -
Append the required flags to
--master-exporter-parametersargument.For example: --master-exporter-parameters=" ... --no-sample.activity_extended" -
Apply the updated configuration.
Common Flags to Disable Metrics
Use the following flags to disable the respective metric collection:
-
--no-sample.: Disables queries to thecolumnstore_ merge_ status MV_information schema view.COLUMNSTORE_ MERGE_ STATUS -
--no-sample.: Disables queries to thepipeline_ errors PIPELINES_information schema view.ERRORS -
--no-sample.: Disables queries to theactivity_ extended MV_information schema view and stops the collection of parametrized query texts that populateACTIVITIES_ EXTENDED_ CUMULATIVE MV_metrics.QUERIES
Disable Activity Metrics Collection
Use the --no-sample. flag to disable collection of activity metrics.
-
Activity metrics queries are slow or consume excessive resources on the source cluster.
-
Extended activity metrics generate more data than downstream systems (pipelines or monitoring stack) can handle.
-
Minimize metric collection for privacy or data minimization.
To re-enable activity metrics collection, remove the --no-sample. flag from the exporter configuration and restart the exporter.
Last modified: