diff --git a/python/ray/dashboard/modules/metrics/dashboards/data_grafana_dashboard_base.json b/python/ray/dashboard/modules/metrics/dashboards/data_grafana_dashboard_base.json index 2d8fe951d0ec..dea96d4513b2 100644 --- a/python/ray/dashboard/modules/metrics/dashboards/data_grafana_dashboard_base.json +++ b/python/ray/dashboard/modules/metrics/dashboards/data_grafana_dashboard_base.json @@ -46,7 +46,7 @@ "selected": false }, "datasource": "${datasource}", - "definition": "label_values(ray_data_allocated_bytes{{{global_filters}}}, SessionName)", + "definition": "query_result(count by (SessionName)(last_over_time(ray_data_output_bytes{{{global_filters}}}[$__range])))", "description": "Filter queries to specific ray sessions.", "error": null, "hide": 0, @@ -56,11 +56,11 @@ "name": "SessionName", "options": [], "query": { - "query": "label_values(ray_data_allocated_bytes{{{global_filters}}}, SessionName)", + "query": "query_result(count by (SessionName)(last_over_time(ray_data_output_bytes{{{global_filters}}}[$__range])))", "refId": "StandardVariableQuery" }, "refresh": 2, - "regex": "", + "regex": "{SessionName=\"(?.*)\".*", "skipUrlSync": false, "sort": 2, "tagValuesQuery": "", @@ -81,7 +81,7 @@ ] }, "datasource": "${datasource}", - "definition": "label_values(ray_data_allocated_bytes{{{global_filters}}}, dataset)", + "definition": "query_result(count by (dataset)(last_over_time(ray_data_output_bytes{{SessionName=~\"$SessionName\",{global_filters}}}[$__range])))", "description": null, "error": null, "hide": 0, @@ -91,11 +91,11 @@ "name": "DatasetID", "options": [], "query": { - "query": "label_values(ray_data_allocated_bytes{{{global_filters}}}, dataset)", + "query": "query_result(count by (dataset)(last_over_time(ray_data_output_bytes{{SessionName=~\"$SessionName\",{global_filters}}}[$__range])))", "refId": "Prometheus-Dataset-Variable-Query" }, "refresh": 2, - "regex": "", + "regex": "{dataset=\"(?.*)\".*", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", diff --git a/python/ray/dashboard/modules/metrics/dashboards/train_grafana_dashboard_base.json b/python/ray/dashboard/modules/metrics/dashboards/train_grafana_dashboard_base.json index 7aeb1764a4a8..04651a75fb18 100644 --- a/python/ray/dashboard/modules/metrics/dashboards/train_grafana_dashboard_base.json +++ b/python/ray/dashboard/modules/metrics/dashboards/train_grafana_dashboard_base.json @@ -46,7 +46,7 @@ "selected": false }, "datasource": "${datasource}", - "definition": "label_values(ray_train_report_total_blocked_time_s{{{global_filters}}}, SessionName)", + "definition": "query_result(count by (SessionName)(last_over_time(ray_train_worker_group_start_total_time_s{{SessionName=~\"$SessionName\",{global_filters}}}[$__range])))", "description": "Filter queries to specific ray sessions.", "error": null, "hide": 0, @@ -56,11 +56,11 @@ "name": "SessionName", "options": [], "query": { - "query": "label_values(ray_train_report_total_blocked_time_s{{{global_filters}}}, SessionName)", + "query": "query_result(count by (SessionName)(last_over_time(ray_train_worker_group_start_total_time_s{{SessionName=~\"$SessionName\",{global_filters}}}[$__range])))", "refId": "StandardVariableQuery" }, "refresh": 2, - "regex": "", + "regex": "{SessionName=\"(?.*)\".*", "skipUrlSync": false, "sort": 2, "tagValuesQuery": "", @@ -75,8 +75,8 @@ "selected": false }, "datasource": "${datasource}", - "definition": "label_values(ray_train_report_total_blocked_time_s{{{global_filters}}}, ray_train_run_name)", - "description": "Filter queries to specific ray sessions.", + "definition": "query_result(count by (ray_train_run_name)(last_over_time(ray_train_worker_group_start_total_time_s{{SessionName=~\"$SessionName\",{global_filters}}}[$__range])))", + "description": "Filter queries to specific Ray Train run names.", "error": null, "hide": 0, "includeAll": true, @@ -85,11 +85,11 @@ "name": "TrainRunName", "options": [], "query": { - "query": "label_values(ray_train_report_total_blocked_time_s{{{global_filters}}}, ray_train_run_name)", + "query": "query_result(count by (ray_train_run_name)(last_over_time(ray_train_worker_group_start_total_time_s{{SessionName=~\"$SessionName\",{global_filters}}}[$__range])))", "refId": "StandardVariableQuery" }, "refresh": 2, - "regex": "", + "regex": "{ray_train_run_name=\"(?.*)\".*", "skipUrlSync": false, "sort": 2, "tagValuesQuery": "",