Adding ~ to match job when multiple jobs (#18706)

This commit is contained in:
Mario Bros 2023-12-28 00:39:20 +01:00 committed by GitHub
parent 60aff22931
commit fbd8dfe60f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,7 +159,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "time() - max(minio_node_process_starttime_seconds{job=\"$scrape_jobs\"})",
"expr": "time() - max(minio_node_process_starttime_seconds{job=~\"$scrape_jobs\"})",
"format": "time_series",
"instant": true,
"interval": "",
@ -237,7 +237,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "sum by (instance) (minio_s3_traffic_received_bytes{job=\"$scrape_jobs\"})",
"expr": "sum by (instance) (minio_s3_traffic_received_bytes{job=~\"$scrape_jobs\"})",
"format": "table",
"hide": false,
"instant": false,
@ -357,7 +357,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "topk(1, sum(minio_cluster_capacity_usable_total_bytes{job=\"$scrape_jobs\"}) by (instance)) - topk(1, sum(minio_cluster_capacity_usable_free_bytes{job=\"$scrape_jobs\"}) by (instance))",
"expr": "topk(1, sum(minio_cluster_capacity_usable_total_bytes{job=~\"$scrape_jobs\"}) by (instance)) - topk(1, sum(minio_cluster_capacity_usable_free_bytes{job=~\"$scrape_jobs\"}) by (instance))",
"format": "time_series",
"instant": false,
"interval": "1m",
@ -372,7 +372,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "topk(1, sum(minio_cluster_capacity_usable_free_bytes{job=\"$scrape_jobs\"}) by (instance)) ",
"expr": "topk(1, sum(minio_cluster_capacity_usable_free_bytes{job=~\"$scrape_jobs\"}) by (instance)) ",
"hide": false,
"interval": "1m",
"legendFormat": "Free",
@ -508,7 +508,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "max(minio_cluster_usage_total_bytes{job=\"$scrape_jobs\"})",
"expr": "max(minio_cluster_usage_total_bytes{job=~\"$scrape_jobs\"})",
"interval": "",
"legendFormat": "Usage",
"range": true,
@ -575,7 +575,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "max(minio_cluster_objects_size_distribution{job=\"$scrape_jobs\"})",
"expr": "max(minio_cluster_objects_size_distribution{job=~\"$scrape_jobs\"})",
"format": "time_series",
"instant": false,
"interval": "",
@ -656,7 +656,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "sum (minio_node_file_descriptor_open_total{job=\"$scrape_jobs\"})",
"expr": "sum (minio_node_file_descriptor_open_total{job=~\"$scrape_jobs\"})",
"format": "table",
"hide": false,
"instant": false,
@ -735,7 +735,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "sum by (instance) (minio_s3_traffic_sent_bytes{job=\"$scrape_jobs\"})",
"expr": "sum by (instance) (minio_s3_traffic_sent_bytes{job=~\"$scrape_jobs\"})",
"format": "table",
"hide": false,
"instant": false,
@ -818,7 +818,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "sum without (server,instance) (minio_node_go_routine_total{job=\"$scrape_jobs\"})",
"expr": "sum without (server,instance) (minio_node_go_routine_total{job=~\"$scrape_jobs\"})",
"format": "table",
"hide": false,
"instant": false,
@ -901,7 +901,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "max(minio_cluster_nodes_online_total{job=\"$scrape_jobs\"})",
"expr": "max(minio_cluster_nodes_online_total{job=~\"$scrape_jobs\"})",
"format": "table",
"hide": false,
"instant": true,
@ -984,7 +984,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "max(minio_cluster_drive_online_total{job=\"$scrape_jobs\"})",
"expr": "max(minio_cluster_drive_online_total{job=~\"$scrape_jobs\"})",
"format": "table",
"hide": false,
"instant": true,
@ -1071,7 +1071,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "max(minio_cluster_bucket_total{job=\"$scrape_jobs\"})",
"expr": "max(minio_cluster_bucket_total{job=~\"$scrape_jobs\"})",
"format": "time_series",
"instant": false,
"interval": "1m",
@ -1136,7 +1136,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "sum by (server) (rate(minio_s3_traffic_received_bytes{job=\"$scrape_jobs\"}[$__rate_interval]))",
"expr": "sum by (server) (rate(minio_s3_traffic_received_bytes{job=~\"$scrape_jobs\"}[$__rate_interval]))",
"interval": "1m",
"intervalFactor": 2,
"legendFormat": "Data Received [{{server}}]",
@ -1228,7 +1228,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "sum by (server) (rate(minio_s3_traffic_sent_bytes{job=\"$scrape_jobs\"}[$__rate_interval]))",
"expr": "sum by (server) (rate(minio_s3_traffic_sent_bytes{job=~\"$scrape_jobs\"}[$__rate_interval]))",
"interval": "1m",
"intervalFactor": 2,
"legendFormat": "Data Sent [{{server}}]",
@ -1335,7 +1335,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "max(minio_cluster_nodes_offline_total{job=\"$scrape_jobs\"})",
"expr": "max(minio_cluster_nodes_offline_total{job=~\"$scrape_jobs\"})",
"format": "table",
"hide": false,
"instant": true,
@ -1418,7 +1418,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "max(minio_cluster_drive_offline_total{job=\"$scrape_jobs\"})",
"expr": "max(minio_cluster_drive_offline_total{job=~\"$scrape_jobs\"})",
"format": "table",
"hide": false,
"instant": true,
@ -1505,7 +1505,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "max(minio_cluster_usage_object_total{job=\"$scrape_jobs\"})",
"expr": "max(minio_cluster_usage_object_total{job=~\"$scrape_jobs\"})",
"format": "time_series",
"instant": false,
"interval": "1m",
@ -1574,7 +1574,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "max(minio_heal_time_last_activity_nano_seconds{job=\"$scrape_jobs\"})",
"expr": "max(minio_heal_time_last_activity_nano_seconds{job=~\"$scrape_jobs\"})",
"format": "time_series",
"instant": true,
"interval": "",
@ -1645,7 +1645,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "max(minio_usage_last_activity_nano_seconds{job=\"$scrape_jobs\"})",
"expr": "max(minio_usage_last_activity_nano_seconds{job=~\"$scrape_jobs\"})",
"format": "time_series",
"instant": true,
"interval": "",
@ -1712,7 +1712,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "sum by (server,api) (increase(minio_s3_requests_total{job=\"$scrape_jobs\"}[$__rate_interval]))",
"expr": "sum by (server,api) (increase(minio_s3_requests_total{job=~\"$scrape_jobs\"}[$__rate_interval]))",
"interval": "1m",
"intervalFactor": 2,
"legendFormat": "{{server,api}}",
@ -1804,7 +1804,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "sum by (server,api) (increase(minio_s3_requests_4xx_errors_total{job=\"$scrape_jobs\"}[$__rate_interval]))",
"expr": "sum by (server,api) (increase(minio_s3_requests_4xx_errors_total{job=~\"$scrape_jobs\"}[$__rate_interval]))",
"interval": "1m",
"intervalFactor": 2,
"legendFormat": "{{server,api}}",
@ -1896,7 +1896,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "sum by (server,api) (increase(minio_s3_requests_5xx_errors_total{job=\"$scrape_jobs\"}[$__rate_interval]))",
"expr": "sum by (server,api) (increase(minio_s3_requests_5xx_errors_total{job=~\"$scrape_jobs\"}[$__rate_interval]))",
"interval": "1m",
"intervalFactor": 2,
"legendFormat": "{{server,api}}",
@ -1998,7 +1998,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "rate(minio_inter_node_traffic_sent_bytes{job=\"$scrape_jobs\"}[$__rate_interval])",
"expr": "rate(minio_inter_node_traffic_sent_bytes{job=~\"$scrape_jobs\"}[$__rate_interval])",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
@ -2013,7 +2013,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "rate(minio_inter_node_traffic_received_bytes{job=\"$scrape_jobs\"}[$__rate_interval])",
"expr": "rate(minio_inter_node_traffic_received_bytes{job=~\"$scrape_jobs\"}[$__rate_interval])",
"interval": "",
"legendFormat": "Internode Bytes Sent [{{server}}]",
"refId": "B"
@ -2101,7 +2101,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "sum by (instance) (minio_heal_objects_heal_total{job=\"$scrape_jobs\"})",
"expr": "sum by (instance) (minio_heal_objects_heal_total{job=~\"$scrape_jobs\"})",
"interval": "",
"legendFormat": "Objects healed in current self heal run",
"refId": "A"
@ -2112,7 +2112,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "sum by (instance) (minio_heal_objects_error_total{job=\"$scrape_jobs\"})",
"expr": "sum by (instance) (minio_heal_objects_error_total{job=~\"$scrape_jobs\"})",
"hide": false,
"interval": "",
"legendFormat": "Heal errors in current self heal run",
@ -2124,7 +2124,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "sum by (instance) (minio_heal_objects_total{job=\"$scrape_jobs\"}) ",
"expr": "sum by (instance) (minio_heal_objects_total{job=~\"$scrape_jobs\"}) ",
"hide": false,
"interval": "",
"legendFormat": "Objects scanned in current self heal run",
@ -2213,7 +2213,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "rate(minio_node_process_cpu_total_seconds{job=\"$scrape_jobs\"}[$__rate_interval])",
"expr": "rate(minio_node_process_cpu_total_seconds{job=~\"$scrape_jobs\"}[$__rate_interval])",
"interval": "",
"legendFormat": "CPU Usage Rate [{{server}}]",
"refId": "A"
@ -2301,7 +2301,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "minio_node_process_resident_memory_bytes{job=\"$scrape_jobs\"}",
"expr": "minio_node_process_resident_memory_bytes{job=~\"$scrape_jobs\"}",
"interval": "",
"legendFormat": "Memory Used [{{server}}]",
"refId": "A"
@ -2389,7 +2389,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "minio_node_drive_used_bytes{job=\"$scrape_jobs\"}",
"expr": "minio_node_drive_used_bytes{job=~\"$scrape_jobs\"}",
"format": "time_series",
"instant": false,
"interval": "",
@ -2479,7 +2479,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "minio_node_drive_free_inodes{job=\"$scrape_jobs\"}",
"expr": "minio_node_drive_free_inodes{job=~\"$scrape_jobs\"}",
"format": "time_series",
"instant": false,
"interval": "",
@ -2581,7 +2581,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "rate(minio_node_syscall_read_total{job=\"$scrape_jobs\"}[$__rate_interval])",
"expr": "rate(minio_node_syscall_read_total{job=~\"$scrape_jobs\"}[$__rate_interval])",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
@ -2596,7 +2596,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "rate(minio_node_syscall_write_total{job=\"$scrape_jobs\"}[$__rate_interval])",
"expr": "rate(minio_node_syscall_write_total{job=~\"$scrape_jobs\"}[$__rate_interval])",
"interval": "",
"legendFormat": "Write Syscalls [{{server}}]",
"refId": "B"
@ -2698,7 +2698,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "minio_node_file_descriptor_open_total{job=\"$scrape_jobs\"}",
"expr": "minio_node_file_descriptor_open_total{job=~\"$scrape_jobs\"}",
"interval": "",
"legendFormat": "Open FDs [{{server}}]",
"refId": "B"
@ -2788,7 +2788,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "rate(minio_node_io_rchar_bytes{job=\"$scrape_jobs\"}[$__rate_interval])",
"expr": "rate(minio_node_io_rchar_bytes{job=~\"$scrape_jobs\"}[$__rate_interval])",
"format": "time_series",
"instant": false,
"interval": "",
@ -2801,7 +2801,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "rate(minio_node_io_wchar_bytes{job=\"$scrape_jobs\"}[$__rate_interval])",
"expr": "rate(minio_node_io_wchar_bytes{job=~\"$scrape_jobs\"}[$__rate_interval])",
"interval": "",
"legendFormat": "Node WChar [{{server}}]",
"refId": "B"
@ -2888,7 +2888,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "rate(minio_node_scanner_objects_scanned{job=\"$scrape_jobs\"}[$__rate_interval])",
"expr": "rate(minio_node_scanner_objects_scanned{job=~\"$scrape_jobs\"}[$__rate_interval])",
"interval": "1m",
"legendFormat": "[{{server}}]",
"refId": "A"
@ -2977,7 +2977,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "rate(minio_node_scanner_versions_scanned{job=\"$scrape_jobs\"}[$__rate_interval])",
"expr": "rate(minio_node_scanner_versions_scanned{job=~\"$scrape_jobs\"}[$__rate_interval])",
"interval": "1m",
"legendFormat": "[{{server}}]",
"refId": "A"
@ -3066,7 +3066,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "rate(minio_node_scanner_directories_scanned{job=\"$scrape_jobs\"}[$__rate_interval])",
"expr": "rate(minio_node_scanner_directories_scanned{job=~\"$scrape_jobs\"}[$__rate_interval])",
"interval": "1m",
"legendFormat": "[{{server}}]",
"refId": "A"
@ -3155,7 +3155,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "rate(minio_node_scanner_bucket_scans_started{job=\"$scrape_jobs\"}[$__rate_interval])",
"expr": "rate(minio_node_scanner_bucket_scans_started{job=~\"$scrape_jobs\"}[$__rate_interval])",
"interval": "1m",
"legendFormat": "[{{server}}]",
"refId": "A"
@ -3244,7 +3244,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "rate(minio_node_scanner_bucket_scans_finished{job=\"$scrape_jobs\"}[$__rate_interval])",
"expr": "rate(minio_node_scanner_bucket_scans_finished{job=~\"$scrape_jobs\"}[$__rate_interval])",
"interval": "1m",
"legendFormat": "[{{server}}]",
"refId": "A"
@ -3333,7 +3333,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "minio_node_drive_free_bytes{job=\"$scrape_jobs\"}",
"expr": "minio_node_drive_free_bytes{job=~\"$scrape_jobs\"}",
"interval": "1m",
"legendFormat": "[{{server}}:{{drive}}]",
"refId": "A"
@ -3422,7 +3422,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "minio_node_drive_total_bytes{job=\"$scrape_jobs\"}",
"expr": "minio_node_drive_total_bytes{job=~\"$scrape_jobs\"}",
"interval": "1m",
"legendFormat": "[{{server}}:{{drive}}]",
"refId": "A"
@ -3511,7 +3511,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "minio_node_drive_used_bytes{job=\"$scrape_jobs\"}",
"expr": "minio_node_drive_used_bytes{job=~\"$scrape_jobs\"}",
"interval": "1m",
"legendFormat": "[{{server}}:{{drive}}]",
"refId": "A"
@ -3600,7 +3600,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "minio_node_drive_free_inodes{job=\"$scrape_jobs\"}",
"expr": "minio_node_drive_free_inodes{job=~\"$scrape_jobs\"}",
"interval": "1m",
"legendFormat": "[{{server}}:{{drive}}]",
"refId": "A"
@ -3689,7 +3689,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "sum by (server, drive, api) (minio_node_drive_latency_us{job=\"$scrape_jobs\"})",
"expr": "sum by (server, drive, api) (minio_node_drive_latency_us{job=~\"$scrape_jobs\"})",
"interval": "1m",
"legendFormat": "[{{server}}:{{drive}}]",
"refId": "A"
@ -3778,7 +3778,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "minio_node_drive_total{job=\"$scrape_jobs\"}",
"expr": "minio_node_drive_total{job=~\"$scrape_jobs\"}",
"interval": "1m",
"legendFormat": "[{{server}}]",
"refId": "A"
@ -3867,7 +3867,7 @@
"uid": "Prom${DS_PROMETHEUS}etheus"
},
"exemplar": true,
"expr": "minio_node_drive_online_total{job=\"$scrape_jobs\"}",
"expr": "minio_node_drive_online_total{job=~\"$scrape_jobs\"}",
"interval": "1m",
"legendFormat": "[{{server}}]",
"refId": "A"
@ -3956,7 +3956,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "minio_node_drive_offline_total{job=\"$scrape_jobs\"}",
"expr": "minio_node_drive_offline_total{job=~\"$scrape_jobs\"}",
"interval": "1m",
"legendFormat": "[{{server}}]",
"refId": "A"
@ -4045,7 +4045,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "minio_node_drive_errors_availability{job=\"$scrape_jobs\"}",
"expr": "minio_node_drive_errors_availability{job=~\"$scrape_jobs\"}",
"interval": "1m",
"legendFormat": "[{{server}}:{{drive}}]",
"refId": "A"
@ -4134,7 +4134,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "minio_node_drive_errors_timeout{job=\"$scrape_jobs\"}",
"expr": "minio_node_drive_errors_timeout{job=~\"$scrape_jobs\"}",
"interval": "1m",
"legendFormat": "[{{server}}:{{drive}}]",
"refId": "A"
@ -4238,7 +4238,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "minio_cluster_kms_uptime{job=\"$scrape_jobs\"}",
"expr": "minio_cluster_kms_uptime{job=~\"$scrape_jobs\"}",
"format": "time_series",
"instant": true,
"interval": "",
@ -4301,7 +4301,7 @@
"uid": "Prometheus"
},
"exemplar": true,
"expr": "sum by (server) (minio_cluster_kms_online{job=\"$scrape_jobs\"})",
"expr": "sum by (server) (minio_cluster_kms_online{job=~\"$scrape_jobs\"})",
"interval": "1m",
"legendFormat": "{{server}}",
"refId": "A"
@ -4394,7 +4394,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "sum by (server) (increase(minio_cluster_kms_request_error{job=\"$scrape_jobs\"}[$__rate_interval]))",
"expr": "sum by (server) (increase(minio_cluster_kms_request_error{job=~\"$scrape_jobs\"}[$__rate_interval]))",
"interval": "1m",
"intervalFactor": 2,
"legendFormat": "{{server}}",
@ -4486,7 +4486,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "sum by (server) (increase(minio_cluster_kms_request_failure{job=\"$scrape_jobs\"}[$__rate_interval]))",
"expr": "sum by (server) (increase(minio_cluster_kms_request_failure{job=~\"$scrape_jobs\"}[$__rate_interval]))",
"interval": "1m",
"intervalFactor": 2,
"legendFormat": "{{server}}",
@ -4578,7 +4578,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "sum by (server) (rate(minio_cluster_kms_request_success{job=\"$scrape_jobs\"}[$__rate_interval]))",
"expr": "sum by (server) (rate(minio_cluster_kms_request_success{job=~\"$scrape_jobs\"}[$__rate_interval]))",
"interval": "1m",
"intervalFactor": 2,
"legendFormat": "KMS Request Success [{{server}}]",
@ -4667,7 +4667,7 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": true,
"expr": "minio_cluster_health_erasure_set_tolerance{job=\"$scrape_jobs\"}",
"expr": "minio_cluster_health_erasure_set_tolerance{job=~\"$scrape_jobs\"}",
"interval": "",
"legendFormat": "Pool: {{pool}} Set: {{set}}",
"refId": "A"