{
  "__inputs": [
    {
      "name": "DS_PROMETHEUS",
      "label": "prometheus",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    }
  ],
  "__elements": {},
  "__requires": [
    {
      "type": "panel",
      "id": "barchart",
      "name": "Bar chart",
      "version": ""
    },
    {
      "type": "panel",
      "id": "geomap",
      "name": "Geomap",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "11.3.1"
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    },
    {
      "type": "panel",
      "id": "text",
      "name": "Text",
      "version": ""
    },
    {
      "type": "panel",
      "id": "timeseries",
      "name": "Time series",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "grafana",
          "uid": "-- Grafana --"
        },
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "description": "[v1.5] 1. Let’s light up the map:) / 2. Multiple improvements.",
  "editable": false,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 1,
  "id": null,
  "links": [
    {
      "asDropdown": true,
      "icon": "external link",
      "includeVars": false,
      "keepTime": false,
      "tags": [],
      "targetBlank": false,
      "title": "Other",
      "tooltip": "",
      "type": "dashboards",
      "url": ""
    },
    {
      "asDropdown": false,
      "icon": "bolt",
      "includeVars": false,
      "keepTime": false,
      "tags": [],
      "targetBlank": true,
      "title": "GitHub",
      "tooltip": "",
      "type": "link",
      "url": "https://github.com/TPCTPCTPC/Grafana-Dashboards"
    }
  ],
  "liveNow": true,
  "panels": [
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "fieldMinMax": false,
          "mappings": [],
          "max": 0.35,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "#394f70",
                "value": null
              },
              {
                "color": "#3d5b9b",
                "value": 0.01
              },
              {
                "color": "#4564a3",
                "value": 0.05
              },
              {
                "color": "#6c5c9d",
                "value": 0.1
              },
              {
                "color": "#8264a0",
                "value": 0.2
              },
              {
                "color": "#a0738c",
                "value": 0.25
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 4,
        "x": 0,
        "y": 0
      },
      "id": 37,
      "options": {
        "colorMode": "background_solid",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "percentChangeColorMode": "inverted",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showPercentChange": false,
        "textMode": "value_and_name",
        "wideLayout": false
      },
      "pluginVersion": "11.3.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "avg(probe_duration_seconds{job=\"$job\", city=\"$city\", ip=\"$ip\"} > 0 and probe_duration_seconds < 1)",
          "format": "table",
          "instant": true,
          "legendFormat": "{{city}}",
          "range": false,
          "refId": "DESTINATION"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "avg(probe_duration_seconds{job=\"$job\", ip=\"$ip\", city!=\"\", domestic!=\"true\"} > 0.01 and probe_duration_seconds < 1)",
          "format": "table",
          "hide": false,
          "instant": true,
          "legendFormat": "International",
          "range": false,
          "refId": "INTERNATIONAL"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "avg(probe_duration_seconds{job=\"$job\", isp=\"$isp\", ip=\"$ip\"} > 0 and probe_duration_seconds < 1)",
          "format": "table",
          "hide": false,
          "instant": true,
          "legendFormat": "{{isp}}",
          "range": false,
          "refId": "ISP"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "avg(1 > probe_duration_seconds{job=\"$job\",code=\"ANYCAST\",ip=\"$ip\"} > 0)",
          "format": "table",
          "hide": false,
          "instant": true,
          "legendFormat": "ANYCAST",
          "range": false,
          "refId": "ANYCAST"
        }
      ],
      "transformations": [
        {
          "id": "merge",
          "options": {}
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "includeByName": {},
            "indexByName": {},
            "renameByName": {
              "Value #ANYCAST": "🛰️ Anycast",
              "Value #DESTINATION": "🏙️ $city",
              "Value #INTERNATIONAL": "🌍 International",
              "Value #ISP": "📶 $isp"
            }
          }
        }
      ],
      "type": "stat"
    },
    {
      "description": "<p>This dashboard is created by <strong>@SLOMO</strong> / <a href=\"https://github.com/TPCTPCTPC/Grafana-Dashboards\" target=\"_blank\">TPCTPCTPC@GitHub</a></p>",
      "gridPos": {
        "h": 2,
        "w": 11,
        "x": 4,
        "y": 0
      },
      "id": 5,
      "options": {
        "code": {
          "language": "plaintext",
          "showLineNumbers": false,
          "showMiniMap": false
        },
        "content": "<h4>PING | DESTINATION <sup>$ip</sup></h4>\n<p style=\"font-size: 13px;\">$job → <strong>$city</strong></p>",
        "mode": "html"
      },
      "pluginVersion": "11.3.1",
      "type": "text"
    },
    {
      "gridPos": {
        "h": 2,
        "w": 9,
        "x": 15,
        "y": 0
      },
      "id": 7,
      "options": {
        "code": {
          "language": "plaintext",
          "showLineNumbers": false,
          "showMiniMap": false
        },
        "content": "<h4>LIVE MAP <sup>$ip</sup></h4>\n<div style=\"display: flex; align-items: center;\">\n  <span style=\"font-size: 10px;\"><strong>0 ms</strong></span>\n  <div style=\"width: 20%; height: 5px; background: linear-gradient(to right, #6CA556, #D3A741, #CA4651); border-radius: 5px; margin: 0 10px; display: flex; align-items: center; justify-content: center;\"></div>\n  <span style=\"font-size: 10px;\"><strong>300 ms</strong></span>\n</div>",
        "mode": "html"
      },
      "pluginVersion": "11.3.1",
      "type": "text"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic-by-name",
            "seriesBy": "max"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "axisSoftMax": 0.02,
            "axisSoftMin": 0,
            "axisWidth": 50,
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 5,
            "gradientMode": "opacity",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "smooth",
            "lineWidth": 1,
            "pointSize": 1,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": 120000,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "s"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)CT($|\\W)|电信|China Telecom/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#1c4597",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)CU($|\\W)|联通|China Unicom/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#cb2e34",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)CM($|\\W)|移动|China Mobile/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#99ba46",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)CE($|\\W)|教育网|CERNET/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#e6a064",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)NTT($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#5483b6",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)(OCN|DOCOMO|docomo)($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#cf0f30",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)(KDDI|au Hikari)($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#eb5505",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)NURO|So-net($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#000000",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)ARTERIA($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#ee0077",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)BIGLOBE($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#008cd7",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)SoftBank|BBTEC($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#abafb0",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)IIJ/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#5b65a2",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)OPTAGE|eo Hikari($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#0195a1",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)GMO($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#fabe00",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)Rakuten($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#ff008c",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)(J:COM|JCOM)($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#e73219",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)ORACLE|Oracle($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#c74634",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)(AMAZON|Amazon|AWS)($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#f19e38",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)(GOOGLE|GCP|Google|8.8.8.8)($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#4285f3",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)(Azure|AZ|Microsoft)($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#69c7ef",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)(ALIBABA|Alibaba|Aliyun)($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#ff6701",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)(HE|H.E.|H. E. |Hurricane)($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#000066",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 8,
        "w": 11,
        "x": 4,
        "y": 2
      },
      "id": 1,
      "options": {
        "legend": {
          "calcs": [
            "lastNotNull",
            "mean"
          ],
          "displayMode": "table",
          "placement": "bottom",
          "showLegend": true,
          "sortBy": "Mean",
          "sortDesc": true
        },
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        }
      },
      "pluginVersion": "11.3.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "1 > probe_duration_seconds{job=\"$job\",city=\"$city\",ip=\"$ip\"} > 0",
          "interval": "",
          "legendFormat": "{{name}}",
          "range": true,
          "refId": "A"
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-GrYlRd"
          },
          "custom": {
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          },
          "fieldMinMax": false,
          "mappings": [
            {
              "options": {
                "0.5": {
                  "index": 0,
                  "text": "TO"
                }
              },
              "type": "value"
            }
          ],
          "max": 0.3,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "#394f70",
                "value": null
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 5,
        "x": 15,
        "y": 2
      },
      "id": 25,
      "options": {
        "basemap": {
          "config": {
            "server": "world-imagery",
            "showLabels": true,
            "theme": "auto",
            "url": "https://{a-c}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png"
          },
          "name": "Layer 0",
          "opacity": 0.5,
          "tooltip": false,
          "type": "carto"
        },
        "controls": {
          "mouseWheelZoom": false,
          "showAttribution": false,
          "showDebug": false,
          "showMeasure": false,
          "showScale": false,
          "showZoom": false
        },
        "layers": [
          {
            "config": {
              "showLegend": false,
              "style": {
                "color": {
                  "field": "Value",
                  "fixed": "dark-blue"
                },
                "opacity": 0.5,
                "rotation": {
                  "fixed": 0,
                  "max": 360,
                  "min": -360,
                  "mode": "mod"
                },
                "size": {
                  "fixed": 4,
                  "max": 7.5,
                  "min": 2
                },
                "symbol": {
                  "fixed": "img/icons/marker/circle.svg",
                  "mode": "fixed"
                },
                "symbolAlign": {
                  "horizontal": "center",
                  "vertical": "center"
                },
                "text": {
                  "field": "code",
                  "fixed": "",
                  "mode": "field"
                },
                "textConfig": {
                  "fontSize": 12.5,
                  "offsetX": -2,
                  "offsetY": -2,
                  "textAlign": "right",
                  "textBaseline": "bottom"
                }
              }
            },
            "filterData": {
              "id": "byRefId",
              "options": "A"
            },
            "location": {
              "gazetteer": "public/gazetteer/airports.geojson",
              "lookup": "code",
              "mode": "lookup"
            },
            "name": "Average RTT",
            "tooltip": true,
            "type": "markers"
          },
          {
            "config": {
              "nightColor": "#a7a6ba4D",
              "show": "to",
              "sun": false
            },
            "name": "Solar",
            "opacity": 0.5,
            "tooltip": true,
            "type": "dayNight"
          },
          {
            "config": {
              "blur": 25,
              "radius": 25,
              "weight": {
                "fixed": 0.25,
                "max": 1,
                "min": 0
              }
            },
            "filterData": {
              "id": "byRefId",
              "options": "A"
            },
            "location": {
              "gazetteer": "public/gazetteer/airports.geojson",
              "lookup": "code",
              "mode": "lookup"
            },
            "name": "Lights",
            "opacity": 0.25,
            "tooltip": false,
            "type": "heatmap"
          }
        ],
        "tooltip": {
          "mode": "details"
        },
        "view": {
          "allLayers": false,
          "id": "coords",
          "lastOnly": false,
          "lat": 35,
          "layer": "Layer 1",
          "lon": 110,
          "padding": 0,
          "zoom": 2.5
        }
      },
      "pluginVersion": "11.3.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "clamp_max(avg(probe_duration_seconds{job=\"$job\", ip=\"$ip\"}) by (code, city), 0.5)",
          "format": "table",
          "instant": true,
          "legendFormat": "{{code}}",
          "range": false,
          "refId": "A"
        }
      ],
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "city",
                "code",
                "Value"
              ]
            }
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "includeByName": {},
            "indexByName": {},
            "renameByName": {
              "Value": "⏳",
              "city": "🏙️",
              "code": "📍"
            }
          }
        }
      ],
      "type": "geomap"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-GrYlRd"
          },
          "custom": {
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          },
          "fieldMinMax": false,
          "mappings": [
            {
              "options": {
                "0.5": {
                  "index": 0,
                  "text": "TO"
                }
              },
              "type": "value"
            }
          ],
          "max": 0.3,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "#394f70",
                "value": null
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 4,
        "x": 20,
        "y": 2
      },
      "id": 80,
      "options": {
        "basemap": {
          "config": {
            "server": "world-imagery",
            "showLabels": true,
            "theme": "auto",
            "url": "https://{a-c}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png"
          },
          "name": "Layer 0",
          "opacity": 0.5,
          "tooltip": false,
          "type": "carto"
        },
        "controls": {
          "mouseWheelZoom": false,
          "showAttribution": false,
          "showDebug": false,
          "showMeasure": false,
          "showScale": false,
          "showZoom": false
        },
        "layers": [
          {
            "config": {
              "showLegend": false,
              "style": {
                "color": {
                  "field": "Value",
                  "fixed": "dark-blue"
                },
                "opacity": 1,
                "rotation": {
                  "fixed": 0,
                  "max": 360,
                  "min": -360,
                  "mode": "mod"
                },
                "size": {
                  "fixed": 2.5,
                  "max": 7.5,
                  "min": 2
                },
                "symbol": {
                  "fixed": "img/icons/marker/circle.svg",
                  "mode": "fixed"
                },
                "symbolAlign": {
                  "horizontal": "center",
                  "vertical": "center"
                },
                "text": {
                  "field": "code",
                  "fixed": "",
                  "mode": "fixed"
                },
                "textConfig": {
                  "fontSize": 12.5,
                  "offsetX": 4,
                  "offsetY": -4,
                  "textAlign": "right",
                  "textBaseline": "bottom"
                }
              }
            },
            "filterData": {
              "id": "byRefId",
              "options": "A"
            },
            "location": {
              "gazetteer": "public/gazetteer/airports.geojson",
              "lookup": "code",
              "mode": "lookup"
            },
            "name": "Average RTT",
            "tooltip": true,
            "type": "markers"
          },
          {
            "config": {
              "blur": 25,
              "radius": 25,
              "weight": {
                "fixed": 0.25,
                "max": 1,
                "min": 0
              }
            },
            "filterData": {
              "id": "byRefId",
              "options": "A"
            },
            "location": {
              "gazetteer": "public/gazetteer/airports.geojson",
              "lookup": "code",
              "mode": "lookup"
            },
            "name": "Lights",
            "opacity": 0.25,
            "tooltip": false,
            "type": "heatmap"
          }
        ],
        "tooltip": {
          "mode": "details"
        },
        "view": {
          "allLayers": false,
          "id": "coords",
          "lastOnly": false,
          "lat": 40,
          "layer": "Layer 1",
          "lon": -105,
          "padding": 0,
          "zoom": 1.5
        }
      },
      "pluginVersion": "11.3.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "clamp_max(avg(probe_duration_seconds{job=\"$job\", ip=\"$ip\"}) by (code, city), 0.5)",
          "format": "table",
          "instant": true,
          "legendFormat": "{{code}}",
          "range": false,
          "refId": "A"
        }
      ],
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "code",
                "Value",
                "city"
              ]
            }
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "includeByName": {},
            "indexByName": {},
            "renameByName": {
              "Value": "⏳",
              "city": "🏙️",
              "code": "📍"
            }
          }
        }
      ],
      "type": "geomap"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "description": "<p>This dashboard is created by <strong>@SLOMO</strong> / <a href=\"https://github.com/TPCTPCTPC/Grafana-Dashboards\" target=\"_blank\">TPCTPCTPC@GitHub</a></p>",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "center",
            "cellOptions": {
              "type": "auto"
            },
            "inspect": false
          },
          "decimals": 0,
          "fieldMinMax": false,
          "mappings": [],
          "max": 0.5,
          "min": -0.01,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "#394f70",
                "value": null
              },
              {
                "color": "#3d5b9b",
                "value": 0.01
              },
              {
                "color": "#4564a3",
                "value": 0.05
              },
              {
                "color": "#6c5c9d",
                "value": 0.1
              },
              {
                "color": "#8264a0",
                "value": 0.2
              },
              {
                "color": "#a0738c",
                "value": 0.25
              }
            ]
          },
          "unit": "s"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "city"
            },
            "properties": [
              {
                "id": "custom.align",
                "value": "left"
              },
              {
                "id": "custom.cellOptions",
                "value": {
                  "mode": "basic",
                  "type": "color-background",
                  "wrapText": false
                }
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "#636363bf",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "RTT (ms)"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 55
              },
              {
                "id": "custom.cellOptions",
                "value": {
                  "mode": "basic",
                  "type": "color-background"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 6,
        "w": 4,
        "x": 0,
        "y": 4
      },
      "id": 86,
      "options": {
        "cellHeight": "sm",
        "footer": {
          "countRows": false,
          "enablePagination": false,
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": false,
        "sortBy": []
      },
      "pluginVersion": "11.3.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "avg(probe_duration_seconds{job=\"$job\", city!=\"\", ip=\"$ip\"} > 0 and probe_duration_seconds < 1) by (city)",
          "format": "table",
          "instant": true,
          "legendFormat": "{{city}}",
          "range": false,
          "refId": "A"
        }
      ],
      "title": "| Avg. Global RTT ",
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "city",
                "Value"
              ]
            }
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "includeByName": {},
            "indexByName": {
              "Value": 2,
              "city": 0,
              "code": 1
            },
            "renameByName": {
              "Value": "RTT (ms)",
              "city": "CITY",
              "code": "📍"
            }
          }
        },
        {
          "id": "sortBy",
          "options": {
            "fields": {},
            "sort": [
              {
                "field": "RTT (ms)"
              }
            ]
          }
        }
      ],
      "type": "table"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-GrYlRd"
          },
          "custom": {
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          },
          "fieldMinMax": false,
          "mappings": [
            {
              "options": {
                "0.5": {
                  "index": 0,
                  "text": "TO"
                }
              },
              "type": "value"
            }
          ],
          "max": 0.3,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "#394f70",
                "value": null
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 4,
        "x": 15,
        "y": 7
      },
      "id": 28,
      "options": {
        "basemap": {
          "config": {
            "server": "streets",
            "showLabels": true,
            "theme": "auto",
            "url": "https://{a-c}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png"
          },
          "name": "Layer 0",
          "opacity": 0.5,
          "tooltip": false,
          "type": "carto"
        },
        "controls": {
          "mouseWheelZoom": false,
          "showAttribution": false,
          "showDebug": false,
          "showMeasure": false,
          "showScale": false,
          "showZoom": false
        },
        "layers": [
          {
            "config": {
              "showLegend": false,
              "style": {
                "color": {
                  "field": "Value",
                  "fixed": "dark-blue"
                },
                "opacity": 1,
                "rotation": {
                  "fixed": 0,
                  "max": 360,
                  "min": -360,
                  "mode": "mod"
                },
                "size": {
                  "fixed": 2.5,
                  "max": 7.5,
                  "min": 2
                },
                "symbol": {
                  "fixed": "img/icons/marker/circle.svg",
                  "mode": "fixed"
                },
                "symbolAlign": {
                  "horizontal": "center",
                  "vertical": "center"
                },
                "text": {
                  "field": "code",
                  "fixed": "",
                  "mode": "fixed"
                },
                "textConfig": {
                  "fontSize": 12.5,
                  "offsetX": 4,
                  "offsetY": -4,
                  "textAlign": "right",
                  "textBaseline": "bottom"
                }
              }
            },
            "filterData": {
              "id": "byRefId",
              "options": "A"
            },
            "location": {
              "gazetteer": "public/gazetteer/airports.geojson",
              "lookup": "code",
              "mode": "lookup"
            },
            "name": "Average RTT",
            "tooltip": true,
            "type": "markers"
          },
          {
            "config": {
              "blur": 25,
              "radius": 25,
              "weight": {
                "fixed": 0.25,
                "max": 1,
                "min": 0
              }
            },
            "filterData": {
              "id": "byRefId",
              "options": "A"
            },
            "location": {
              "gazetteer": "public/gazetteer/airports.geojson",
              "lookup": "code",
              "mode": "lookup"
            },
            "name": "Lights",
            "opacity": 0.25,
            "tooltip": false,
            "type": "heatmap"
          }
        ],
        "tooltip": {
          "mode": "none"
        },
        "view": {
          "allLayers": false,
          "id": "coords",
          "lastOnly": false,
          "lat": -1,
          "layer": "Layer 1",
          "lon": 113,
          "padding": 0,
          "zoom": 3
        }
      },
      "pluginVersion": "11.3.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "clamp_max(avg(probe_duration_seconds{job=\"$job\", ip=\"$ip\"}) by (code, city), 0.5)",
          "format": "table",
          "instant": true,
          "legendFormat": "{{code}}",
          "range": false,
          "refId": "A"
        }
      ],
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "code",
                "Value",
                "city"
              ]
            }
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "includeByName": {},
            "indexByName": {},
            "renameByName": {
              "Value": "⏳",
              "city": "🏙️",
              "code": "📍"
            }
          }
        }
      ],
      "type": "geomap"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-GrYlRd"
          },
          "custom": {
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          },
          "fieldMinMax": false,
          "mappings": [
            {
              "options": {
                "0.5": {
                  "index": 0,
                  "text": "TO"
                }
              },
              "type": "value"
            }
          ],
          "max": 0.3,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "#394f70",
                "value": null
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 5,
        "x": 19,
        "y": 7
      },
      "id": 74,
      "options": {
        "basemap": {
          "config": {
            "server": "streets",
            "showLabels": true,
            "theme": "auto",
            "url": "https://{a-c}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png"
          },
          "name": "Layer 0",
          "opacity": 0.5,
          "tooltip": false,
          "type": "carto"
        },
        "controls": {
          "mouseWheelZoom": false,
          "showAttribution": false,
          "showDebug": false,
          "showMeasure": false,
          "showScale": false,
          "showZoom": false
        },
        "layers": [
          {
            "config": {
              "showLegend": false,
              "style": {
                "color": {
                  "field": "Value",
                  "fixed": "dark-blue"
                },
                "opacity": 1,
                "rotation": {
                  "fixed": 0,
                  "max": 360,
                  "min": -360,
                  "mode": "mod"
                },
                "size": {
                  "fixed": 2.5,
                  "max": 7.5,
                  "min": 2
                },
                "symbol": {
                  "fixed": "img/icons/marker/circle.svg",
                  "mode": "fixed"
                },
                "symbolAlign": {
                  "horizontal": "center",
                  "vertical": "center"
                },
                "text": {
                  "field": "code",
                  "fixed": "",
                  "mode": "fixed"
                },
                "textConfig": {
                  "fontSize": 12.5,
                  "offsetX": 4,
                  "offsetY": -4,
                  "textAlign": "right",
                  "textBaseline": "bottom"
                }
              }
            },
            "filterData": {
              "id": "byRefId",
              "options": "A"
            },
            "location": {
              "gazetteer": "public/gazetteer/airports.geojson",
              "lookup": "code",
              "mode": "lookup"
            },
            "name": "Average RTT",
            "tooltip": true,
            "type": "markers"
          },
          {
            "config": {
              "blur": 25,
              "radius": 25,
              "weight": {
                "fixed": 0.25,
                "max": 1,
                "min": 0
              }
            },
            "filterData": {
              "id": "byRefId",
              "options": "A"
            },
            "location": {
              "gazetteer": "public/gazetteer/airports.geojson",
              "lookup": "code",
              "mode": "lookup"
            },
            "name": "Lights",
            "opacity": 0.25,
            "tooltip": false,
            "type": "heatmap"
          }
        ],
        "tooltip": {
          "mode": "details"
        },
        "view": {
          "allLayers": false,
          "id": "coords",
          "lastOnly": false,
          "lat": 50,
          "layer": "Layer 1",
          "lon": 25,
          "padding": 0,
          "shared": false,
          "zoom": 2
        }
      },
      "pluginVersion": "11.3.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "clamp_max(avg(probe_duration_seconds{job=\"$job\", ip=\"$ip\"}) by (code, city), 0.5)",
          "format": "table",
          "instant": true,
          "legendFormat": "{{code}}",
          "range": false,
          "refId": "A"
        }
      ],
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "code",
                "Value",
                "city"
              ]
            }
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "includeByName": {},
            "indexByName": {},
            "renameByName": {
              "Value": "⏳",
              "city": "🏙️",
              "code": "📍"
            }
          }
        }
      ],
      "type": "geomap"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisGridShow": false,
            "axisLabel": "",
            "axisPlacement": "hidden",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "smooth",
            "lineWidth": 1,
            "pointSize": 1,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": 60000,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "s"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/.*Cloudflare|CLOUDFLARE|CF|1.1.1.1/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#f48120",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/.*Quad9|QUAD9|9.9.9.9/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#ca375f",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)(GOOGLE|GCP|Google|8.8.8.8)($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#4285f3",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)(Azure|AZ|Microsoft)($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#69c7ef",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)(ALIBABA|Alibaba|Aliyun)($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#ff6701",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)NTT($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#3070b6",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 2,
        "w": 4,
        "x": 0,
        "y": 10
      },
      "id": 78,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": false
        },
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        }
      },
      "pluginVersion": "11.3.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "1 > probe_duration_seconds{job=\"$job\",code=\"ANYCAST\",ip=\"$ip\"} > 0",
          "legendFormat": "{{name}}",
          "range": true,
          "refId": "A"
        }
      ],
      "title": "| Anycast",
      "type": "timeseries"
    },
    {
      "description": "<p>This dashboard is created by <strong>@SLOMO</strong> / <a href=\"https://github.com/TPCTPCTPC/Grafana-Dashboards\" target=\"_blank\">TPCTPCTPC@GitHub</a></p>",
      "gridPos": {
        "h": 2,
        "w": 11,
        "x": 4,
        "y": 10
      },
      "id": 40,
      "options": {
        "code": {
          "language": "plaintext",
          "showLineNumbers": false,
          "showMiniMap": false
        },
        "content": "<h4>PING | ISP <sup>$ip</sup></h4>\n<p style=\"font-size: 13px;\">$job → <strong>$isp</strong></p>",
        "mode": "html"
      },
      "pluginVersion": "11.3.1",
      "type": "text"
    },
    {
      "gridPos": {
        "h": 2,
        "w": 9,
        "x": 15,
        "y": 10
      },
      "id": 85,
      "options": {
        "code": {
          "language": "plaintext",
          "showLineNumbers": false,
          "showMiniMap": false
        },
        "content": "<h4>PACKET LOSS RATE <sup>$ip</sup></h4>\n<p style=\"font-size: 13px;\">$job → <strong>$city</strong></p>",
        "mode": "html"
      },
      "pluginVersion": "11.3.1",
      "type": "text"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-GrYlRd"
          },
          "custom": {
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          },
          "decimals": 0,
          "fieldMinMax": false,
          "mappings": [
            {
              "options": {
                "1": {
                  "index": 0,
                  "text": "TO"
                }
              },
              "type": "value"
            }
          ],
          "max": 0.3,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "#394f70",
                "value": null
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 4,
        "x": 0,
        "y": 12
      },
      "id": 24,
      "options": {
        "basemap": {
          "config": {
            "server": "streets",
            "showLabels": false,
            "theme": "auto",
            "url": "https://{a-c}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png"
          },
          "name": "Layer 0",
          "opacity": 0.5,
          "tooltip": false,
          "type": "carto"
        },
        "controls": {
          "mouseWheelZoom": false,
          "showAttribution": false,
          "showDebug": false,
          "showMeasure": false,
          "showScale": false,
          "showZoom": false
        },
        "layers": [
          {
            "config": {
              "showLegend": false,
              "style": {
                "color": {
                  "field": "Value",
                  "fixed": "dark-blue"
                },
                "opacity": 0.5,
                "rotation": {
                  "fixed": 0,
                  "max": 360,
                  "min": -360,
                  "mode": "mod"
                },
                "size": {
                  "fixed": 4,
                  "max": 7.5,
                  "min": 2
                },
                "symbol": {
                  "fixed": "img/icons/marker/circle.svg",
                  "mode": "fixed"
                },
                "symbolAlign": {
                  "horizontal": "center",
                  "vertical": "center"
                },
                "text": {
                  "field": "Value",
                  "fixed": "",
                  "mode": "field"
                },
                "textConfig": {
                  "fontSize": 10.5,
                  "offsetY": -4,
                  "textAlign": "center",
                  "textBaseline": "bottom"
                }
              }
            },
            "filterData": {
              "id": "byRefId",
              "options": "A"
            },
            "location": {
              "gazetteer": "public/gazetteer/airports.geojson",
              "lookup": "code",
              "mode": "lookup"
            },
            "name": "ISP",
            "tooltip": true,
            "type": "markers"
          },
          {
            "config": {
              "blur": 25,
              "radius": 25,
              "weight": {
                "fixed": 0.25,
                "max": 1,
                "min": 0
              }
            },
            "filterData": {
              "id": "byRefId",
              "options": "A"
            },
            "location": {
              "gazetteer": "public/gazetteer/airports.geojson",
              "lookup": "code",
              "mode": "lookup"
            },
            "name": "Lights",
            "opacity": 0.25,
            "tooltip": false,
            "type": "heatmap"
          }
        ],
        "tooltip": {
          "mode": "details"
        },
        "view": {
          "allLayers": false,
          "id": "fit",
          "lastOnly": false,
          "lat": 33,
          "layer": "ISP",
          "lon": 120,
          "padding": 0,
          "zoom": 3
        }
      },
      "pluginVersion": "11.3.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "clamp_max(avg(probe_duration_seconds{job=\"$job\", isp=\"$isp\", ip=\"$ip\"}) by (code,city), 1)",
          "format": "table",
          "instant": true,
          "legendFormat": "{{code}}",
          "range": false,
          "refId": "A"
        }
      ],
      "title": "| $isp",
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "city",
                "code",
                "Value"
              ]
            }
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "includeByName": {},
            "indexByName": {},
            "renameByName": {
              "Value": "⏳",
              "city": "🏙️",
              "code": "📍"
            }
          }
        }
      ],
      "type": "geomap"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "axisSoftMax": 0.2,
            "axisSoftMin": 0.1,
            "axisWidth": 50,
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "opacity",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "smooth",
            "lineStyle": {
              "dash": [
                10,
                25
              ],
              "fill": "dash"
            },
            "lineWidth": 1,
            "pointSize": 1,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": 120000,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "s"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byValue",
              "options": {
                "op": "lte",
                "reducer": "mean",
                "value": 0.05
              }
            },
            "properties": [
              {
                "id": "custom.axisSoftMax",
                "value": 0.05
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 8,
        "w": 11,
        "x": 4,
        "y": 12
      },
      "id": 39,
      "options": {
        "legend": {
          "calcs": [
            "lastNotNull",
            "mean"
          ],
          "displayMode": "table",
          "placement": "bottom",
          "showLegend": true,
          "sortBy": "Mean",
          "sortDesc": true
        },
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        }
      },
      "pluginVersion": "11.3.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "expr": "1 > probe_duration_seconds{job=\"$job\",isp=\"$isp\",ip=\"$ip\"} > 0",
          "interval": "",
          "legendFormat": "{{isp}} | {{city}}",
          "range": true,
          "refId": "A"
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic-by-name"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "fillOpacity": 70,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineWidth": 0,
            "scaleDistribution": {
              "type": "linear"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "fieldMinMax": false,
          "mappings": [],
          "max": 100,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "#aee4ca",
                "value": null
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byValue",
              "options": {
                "op": "gte",
                "reducer": "allIsZero",
                "value": 0
              }
            },
            "properties": [
              {
                "id": "custom.lineWidth",
                "value": 1.5
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)CT($|\\W)|电信|China Telecom/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#1c4597",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)CU($|\\W)|联通|China Unicom/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#cb2e34",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)CM($|\\W)|移动|China Mobile/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#99ba46",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)CE($|\\W)|教育网|CERNET/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#e6a064",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)NTT($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#5483b6",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)(OCN|DOCOMO|docomo)($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#cf0f30",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)(KDDI|au Hikari)($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#eb5505",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)NURO|So-net($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#000000",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)ARTERIA($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#ee0077",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)BIGLOBE($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#008cd7",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)SoftBank|BBTEC($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#abafb0",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)IIJ/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#5b65a2",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)OPTAGE|eo Hikari($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#0195a1",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)GMO($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#fabe00",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)Rakuten($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#ff008c",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)(J:COM|JCOM)($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#e73219",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)ORACLE|Oracle($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#c74634",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)(AMAZON|Amazon|AWS)($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#f19e38",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)(GOOGLE|GCP|Google|8.8.8.8)($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#4285f3",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)(Azure|AZ|Microsoft)($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#69c7ef",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)(ALIBABA|Alibaba|Aliyun)($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#ff6701",
                  "mode": "shades"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byRegexp",
              "options": "/(^|\\W)(HE|H.E.|H. E.|Hurricane)($|\\W)/"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#000066",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 6,
        "w": 9,
        "x": 15,
        "y": 12
      },
      "id": 69,
      "options": {
        "barRadius": 0.1,
        "barWidth": 0.97,
        "fullHighlight": true,
        "groupWidth": 0.7,
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "orientation": "auto",
        "showValue": "never",
        "stacking": "none",
        "tooltip": {
          "mode": "multi",
          "sort": "none"
        },
        "xTickLabelRotation": 0,
        "xTickLabelSpacing": 100
      },
      "pluginVersion": "11.3.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "(1 - avg_over_time(probe_success{job=\"$job\",city=\"$city\",ip=\"$ip\"}[1m])) * 100",
          "format": "time_series",
          "instant": false,
          "interval": "2m",
          "legendFormat": "{{name}}",
          "range": true,
          "refId": "A"
        }
      ],
      "type": "barchart"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "fixedColor": "#3c5b87",
            "mode": "thresholds"
          },
          "decimals": 0,
          "fieldMinMax": false,
          "mappings": [
            {
              "options": {
                "1": {
                  "index": 0,
                  "text": "TO"
                }
              },
              "type": "value"
            }
          ],
          "max": 1,
          "min": -0.1,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "#394f70",
                "value": null
              },
              {
                "color": "#3d5b9b",
                "value": 0.01
              },
              {
                "color": "#4564a3",
                "value": 0.05
              },
              {
                "color": "#6c5c9d",
                "value": 0.1
              },
              {
                "color": "#8264a0",
                "value": 0.2
              },
              {
                "color": "#a0738c",
                "value": 0.25
              }
            ]
          },
          "unit": "s"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byValue",
              "options": {
                "op": "gte",
                "reducer": "allIsZero",
                "value": 0
              }
            },
            "properties": []
          }
        ]
      },
      "gridPos": {
        "h": 2,
        "w": 4,
        "x": 0,
        "y": 18
      },
      "id": 65,
      "options": {
        "colorMode": "background_solid",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "percentChangeColorMode": "standard",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showPercentChange": false,
        "textMode": "value_and_name",
        "wideLayout": true
      },
      "pluginVersion": "11.3.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "sort(clamp_max(avg(probe_duration_seconds{job=\"$job\", isp=\"$isp\", ip=\"$ip\"}) by (city), 1))",
          "format": "time_series",
          "instant": true,
          "legendFormat": "{{city}}",
          "range": false,
          "refId": "A"
        }
      ],
      "transparent": true,
      "type": "stat"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_PROMETHEUS}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "fixedColor": "transparent",
            "mode": "continuous-BlYlRd"
          },
          "decimals": 2,
          "fieldMinMax": false,
          "mappings": [],
          "max": 100,
          "min": -10,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "#c1e6c1",
                "value": null
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 2,
        "w": 9,
        "x": 15,
        "y": 18
      },
      "id": 81,
      "options": {
        "colorMode": "background_solid",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "percentChangeColorMode": "inverted",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showPercentChange": false,
        "textMode": "value_and_name",
        "wideLayout": false
      },
      "pluginVersion": "11.3.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "clamp_min(1 - (sum(avg_over_time(probe_success{job=\"$job\",city=\"$city\",ip=\"$ip\"}[1h])) by (city, ip) / count(up{job=\"$job\",city=\"$city\",ip=\"$ip\"}) by (city, ip)), 0) * 100",
          "format": "table",
          "instant": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "clamp_min(1 - (sum(avg_over_time(probe_success{job=\"$job\",city=\"$city\",ip=\"$ip\"}[12h])) by (city, ip) / count(up{job=\"$job\",city=\"$city\",ip=\"$ip\"}) by (city, ip)), 0) * 100",
          "format": "table",
          "hide": false,
          "instant": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "B"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "clamp_min(1 - (sum(avg_over_time(probe_success{job=\"$job\",city=\"$city\",ip=\"$ip\"}[1d])) by (city, ip) / count(up{job=\"$job\",city=\"$city\",ip=\"$ip\"}) by (city, ip)), 0) * 100",
          "format": "table",
          "hide": false,
          "instant": false,
          "legendFormat": "__auto",
          "range": true,
          "refId": "C"
        }
      ],
      "transformations": [
        {
          "id": "merge",
          "options": {}
        },
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "Value #A",
                "Value #B",
                "Value #C",
                "Value #D"
              ]
            }
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "includeByName": {},
            "indexByName": {},
            "renameByName": {
              "Value": "1m",
              "Value #A": "1h",
              "Value #B": "12h",
              "Value #C": "1d",
              "Value #D": "7d",
              "code": "📍"
            }
          }
        }
      ],
      "type": "stat"
    }
  ],
  "refresh": "10s",
  "schemaVersion": 40,
  "tags": [
    "SLOMO",
    "Blackbox Exporter",
    "Prometheus"
  ],
  "templating": {
    "list": [
      {
        "current": {},
        "definition": "label_values(probe_success,job)",
        "hide": 1,
        "label": "JOB",
        "name": "job",
        "options": [],
        "query": {
          "qryType": 1,
          "query": "label_values(probe_success,job)",
          "refId": "PrometheusVariableQueryEditor-VariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "type": "query"
      },
      {
        "current": {},
        "definition": "label_values(probe_success{job=\"$job\"},code)",
        "hide": 2,
        "label": "COUNTRY",
        "name": "code",
        "options": [],
        "query": {
          "qryType": 1,
          "query": "label_values(probe_success{job=\"$job\"},code)",
          "refId": "PrometheusVariableQueryEditor-VariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "type": "query"
      },
      {
        "current": {},
        "definition": "label_values(probe_success{job=\"$job\"},city)",
        "description": "",
        "includeAll": false,
        "label": "🏙️ DESTINATION",
        "name": "city",
        "options": [],
        "query": {
          "qryType": 1,
          "query": "label_values(probe_success{job=\"$job\"},city)",
          "refId": "PrometheusVariableQueryEditor-VariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "type": "query"
      },
      {
        "current": {},
        "definition": "label_values(probe_success{job=\"$job\"},isp)",
        "label": "📶 ISP",
        "name": "isp",
        "options": [],
        "query": {
          "qryType": 1,
          "query": "label_values(probe_success{job=\"$job\"},isp)",
          "refId": "PrometheusVariableQueryEditor-VariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "type": "query"
      },
      {
        "current": {},
        "definition": "label_values(probe_success{job=\"$job\"},ip)",
        "label": "🌐 IP VERSION",
        "name": "ip",
        "options": [],
        "query": {
          "qryType": 1,
          "query": "label_values(probe_success{job=\"$job\"},ip)",
          "refId": "PrometheusVariableQueryEditor-VariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "type": "query"
      }
    ]
  },
  "time": {
    "from": "now-1h",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "browser",
  "title": "BBxPing",
  "uid": "BlackboxExpt",
  "version": 170,
  "weekStart": "",
  "gnetId": 22500
}