Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix Used Measuring Points aler sql #302

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/alert_rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"maxDataPoints": 43200,
"queryType": "SQL",
"refId": "A",
"sql": " select now(), cluster_id, CASE WHEN max(grants_timeseries_total) > 0 THEN max(grants_timeseries_used) /max(grants_timeseries_total) * 100 ELSE 0 END AS result from log.taosd_cluster_info where _ts >= (now - 30s) and _ts < now partition by cluster_id having timetruncate(first(_ts), 1m) > 0 ",
"sql": " select now(), cluster_id, CASE WHEN max(grants_timeseries_total) > 0.0 THEN max(grants_timeseries_used) / max(grants_timeseries_total) * 100.0 ELSE 0.0 END AS result from log.taosd_cluster_info where _ts >= (now - 30s) and _ts < now partition by cluster_id having timetruncate(first(_ts), 1m) > 0 ",
"timeShiftPeriod": ""
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/dashboards/TDinsightV3.json
Original file line number Diff line number Diff line change
Expand Up @@ -4614,7 +4614,7 @@
"formatType": "Time series",
"queryType": "SQL",
"refId": "A",
"sql": " select now(), cluster_id, CASE WHEN max(grants_timeseries_total) > 0 THEN max(grants_timeseries_used) /max(grants_timeseries_total) * 100 ELSE 0 END AS result from log.taosd_cluster_info where _ts >= (now - 30s) and _ts < now partition by cluster_id having timetruncate(first(_ts), 1m) > 0 ",
"sql": " select now(), cluster_id, CASE WHEN max(grants_timeseries_total) > 0.0 THEN max(grants_timeseries_used) / max(grants_timeseries_total) * 100.0 ELSE 0.0 END AS result from log.taosd_cluster_info where _ts >= (now - 30s) and _ts < now partition by cluster_id having timetruncate(first(_ts), 1m) > 0 ",
"timeShiftPeriod": "1",
"timeShiftUnit": "days"
}
Expand Down
Loading