{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": { "type": "grafana", "uid": "-- Grafana --" },
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 1,
"links": [],
"panels": [
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"fieldConfig": {
"defaults": {
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": null },
{ "color": "red", "value": 0 }
]
}
},
"overrides": []
},
"gridPos": { "h": 16, "w": 24, "x": 0, "y": 0 },
"id": 1,
"options": {
"basemap": {
"config": {},
"name": "Layer 0",
"type": "default"
},
"controls": {
"mouseWheelZoom": true,
"showAttribution": true,
"showDebug": false,
"showMeasure": false,
"showZoom": true
},
"layers": [
{
"config": {
"showLegend": true,
"style": {
"color": {
"field": "Value",
"fixed": "green"
},
"opacity": 0.7,
"rotation": { "fixed": 0, "max": 360, "min": -360, "mode": "fixed" },
"size": { "fixed": 10, "max": 15, "min": 5 },
"symbol": { "fixed": "img/icons/marker/circle.svg", "mode": "fixed" },
"textConfig": {
"fontSize": 12,
"offsetX": 0,
"offsetY": 0,
"textAlign": "center",
"textBaseline": "middle"
}
}
},
"location": {
"latitude": "latitude",
"longitude": "longitude",
"mode": "fields"
},
"name": "Perforce Servers",
"tooltip": true,
"type": "markers"
}
],
"tooltip": { "mode": "details" },
"view": {
"allLayers": true,
"id": "fit",
"lat": 0,
"lon": 0,
"zoom": 3
}
},
"title": "Perforce Server Locations",
"type": "geomap",
"targets": [
{
"expr": "location",
"legendFormat": "{{office}} ({{city}}, {{state}})",
"refId": "A",
"format": "table",
"instant": true
}
],
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": { "Time": true, "__name__": true },
"renameByName": {}
}
}
]
},
{
"collapsed": false,
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 16 },
"id": 100,
"title": "Server Status by Location",
"type": "row"
},
{
"datasource": { "type": "prometheus", "uid": "${datasource}" },
"fieldConfig": {
"defaults": {
"custom": {
"align": "auto",
"cellOptions": { "type": "auto" },
"inspect": false
},
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": null }
]
}
},
"overrides": [
{
"matcher": { "id": "byName", "options": "Status" },
"properties": [
{
"id": "mappings",
"value": [
{ "options": { "0": { "color": "red", "text": "DOWN" }, "1": { "color": "green", "text": "UP" } }, "type": "value" }
]
},
{ "id": "custom.cellOptions", "value": { "mode": "basic", "type": "color-background" } }
]
},
{
"matcher": { "id": "byName", "options": "Response (ms)" },
"properties": [
{ "id": "unit", "value": "ms" },
{ "id": "thresholds", "value": { "mode": "absolute", "steps": [{ "color": "green", "value": null }, { "color": "yellow", "value": 100 }, { "color": "red", "value": 500 }] } },
{ "id": "custom.cellOptions", "value": { "mode": "basic", "type": "color-background" } }
]
}
]
},
"gridPos": { "h": 8, "w": 24, "x": 0, "y": 17 },
"id": 2,
"options": {
"showHeader": true,
"sortBy": [{ "desc": false, "displayName": "Office" }]
},
"title": "All Servers Overview",
"type": "table",
"targets": [
{
"expr": "location",
"legendFormat": "",
"refId": "A",
"format": "table",
"instant": true
},
{
"expr": "p4_up",
"legendFormat": "",
"refId": "B",
"format": "table",
"instant": true
},
{
"expr": "p4_healthcheck_duration_ms",
"legendFormat": "",
"refId": "C",
"format": "table",
"instant": true
}
],
"transformations": [
{
"id": "merge",
"options": {}
},
{
"id": "organize",
"options": {
"excludeByName": { "Time": true, "__name__": true, "latitude": true, "longitude": true, "zip": true, "address": true },
"renameByName": {
"office": "Office",
"city": "City",
"state": "State",
"country": "Country",
"studio": "Studio",
"instance": "Instance",
"job": "Job",
"Value #B": "Status",
"Value #C": "Response (ms)"
},
"indexByName": {
"Office": 0,
"City": 1,
"State": 2,
"Country": 3,
"Studio": 4,
"Instance": 5,
"Status": 6,
"Response (ms)": 7
}
}
}
]
}
],
"refresh": "1m",
"schemaVersion": 39,
"tags": ["perforce", "sdp", "geomap"],
"templating": {
"list": [
{
"current": {},
"hide": 0,
"includeAll": false,
"label": "Data Source",
"multi": false,
"name": "datasource",
"options": [],
"query": "prometheus",
"refresh": 1,
"type": "datasource"
}
]
},
"time": { "from": "now-6h", "to": "now" },
"timepicker": {},
"timezone": "",
"title": "Perforce SDP - Server Map",
"uid": "perforce-sdp-geomap",
"version": 1
}
| # | Change | User | Description | Committed | |
|---|---|---|---|---|---|
| #1 | 32511 | Russell C. Jackson (Rusty) |
Add Grafana dashboards for Perforce SDP monitoring Three dashboards covering p4prometheus, custom health/disk/network metrics, node_exporter system metrics, and server geolocation. |