TSDB Operational Commands
The TSDB show commands provide detailed information about the TSDB operations.
TSDB Show Commands
The TSDB show commands display data about the alerts and metrics of time-series.
Time-series Alert
This command displays time-series alert information in a tabular format. Key information is displayed in the summary output.
Syntax:
show time-series alert <options>
Option | Description |
---|---|
- |
Without any option, the command lists all firing alerts. |
<alert-rule> |
Lists all alerts for the given alert rule. |
Example 1: Summary view of all firing alerts
supervisor@rtbrick>SPINE01: op> show time-series alert Since Level Summary 26-APR-2023 05:50:00 Warning Chassis temperature is 63..C 26-APR-2023 05:49:44 Error Fan speed 0rpm of fan PSU-1-Fan is below 1000rpm. supervisor@rtbrick>SPINE01: op>
Example 2: Summary view of the alert rule "chassis_temperature_warning"
supervisor@rtbrick>SPINE01: op> show time-series alert chassis_temperature_warning Alert: chassis_temperature_warning Firing since 26-APR-2023 05:50:00 Level: Warning Summary: Chassis temperature is 62..C Description: At least one chassis temperature sensor reports 62..C which exceeds threshold of 50..C. Labels: alertname : chassis_temperature_warning bd_name : resmond element_name : ufi08.q2c.u23.r4.nbg.rtbrick.net Annotations: clear_threshold : 50 description : At least one chassis temperature sensor reports 62..C which exceeds threshold of 50..C. level : 4 summary : Chassis temperature is 62..C threshold : 55 unit : CELSIUS value : 62 supervisor@rtbrick>SPINE01: op>
Time-series Metric
This command displays metrics of time-series.
Syntax:
show time-series metric <options>
Attribute | Description |
---|---|
<metric-name> |
Lists the lastly sampled values for the specified metric. |
Example: Summary view of the metric for chassis_fan_speed_rpm
supervisor@rtbrick>SPINE01: op> show time-series metric chassis_fan_speed_rpm Metric: chassis_fan_speed_rpm Value: 6100 sampled at 26-APR-2023 10:19:54 Labels: bd : resmond bd_name : resmond element_name : ufi05.q2c.u11.r4.nbg.rtbrick.net fan : Chassis Fan - 0 instance : localhost:11012 job : bds pod_name : DTSL status : 9 Value: 6200 sampled at 26-APR-2023 10:19:54 Labels: bd : resmond bd_name : resmond element_name : ufi05.q2c.u11.r4.nbg.rtbrick.net fan : Chassis Fan - 1 instance : localhost:11012 job : bds pod_name : DTSL status : 9 Value: 6100 sampled at 26-APR-2023 10:19:54 Labels: bd : resmond bd_name : resmond element_name : ufi05.q2c.u11.r4.nbg.rtbrick.net fan : Chassis Fan - 2 instance : localhost:11012 job : bds pod_name : DTSL status : 9 Value: 6100 sampled at 26-APR-2023 10:19:54 Labels: bd : resmond bd_name : resmond element_name : ufi05.q2c.u11.r4.nbg.rtbrick.net fan : Chassis Fan - 3 instance : localhost:11012 job : bds pod_name : DTSL status : 9