Skip to content

Instantly share code, notes, and snippets.

@Manawyrm
Last active April 20, 2022 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Manawyrm/714dc4d21c41d672583022e5329ba1fd to your computer and use it in GitHub Desktop.
Save Manawyrm/714dc4d21c41d672583022e5329ba1fd to your computer and use it in GitHub Desktop.
OCTOI / osmo-e1d dashboard for Grafana + Prometheus + statsd_exporter
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 3,
"links": [],
"liveNow": false,
"panels": [
{
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 10,
"w": 13,
"x": 0,
"y": 0
},
"id": 12,
"interval": "15",
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "AS8qkmwnz"
},
"exemplar": true,
"expr": "rate(e1oip_line_90_187_70_153_10010_e1oip_rx_pkt_out_of_order{}[$__interval])",
"interval": "",
"intervalFactor": 1,
"legendFormat": "Out-of-Order packets",
"refId": "Out-of-Order"
},
{
"datasource": {
"type": "prometheus",
"uid": "AS8qkmwnz"
},
"exemplar": true,
"expr": "rate(e1oip_line_90_187_70_153_10010_e1oip_rx_pkt_out_of_win{}[$__interval])",
"hide": false,
"interval": "",
"legendFormat": "Out-of-Window packets",
"refId": "Out-of-Window"
}
],
"title": "e1oip RX packet errors (OCTOI)",
"type": "timeseries"
},
{
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 10,
"w": 7,
"x": 13,
"y": 0
},
"id": 14,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "AS8qkmwnz"
},
"exemplar": true,
"expr": "e1d_line_I0_L0_gpsdo_tune_coarse{}",
"interval": "",
"legendFormat": "coarse tune",
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "AS8qkmwnz"
},
"exemplar": true,
"expr": "e1d_line_I0_L0_gpsdo_tune_fine{}",
"hide": false,
"interval": "",
"legendFormat": "fine tune",
"refId": "B"
}
],
"title": "icE1usb GPSDO",
"type": "timeseries"
},
{
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"0": {
"color": "purple",
"index": 0,
"text": "Disabled"
},
"1": {
"color": "orange",
"index": 1,
"text": "Calibrate"
},
"2": {
"color": "yellow",
"index": 2,
"text": "Hold over"
},
"3": {
"color": "super-light-yellow",
"index": 3,
"text": "Coarse tuned"
},
"4": {
"color": "green",
"index": 4,
"text": "Fine tuned"
}
},
"type": "value"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 2,
"x": 20,
"y": 0
},
"id": 16,
"options": {
"colorMode": "background",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "8.4.6",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "AS8qkmwnz"
},
"exemplar": true,
"expr": "e1d_line_I0_L0_gpsdo_state{}",
"format": "table",
"instant": false,
"interval": "",
"legendFormat": "State",
"refId": "GPSDO State"
}
],
"title": "GPSDO state",
"transformations": [],
"type": "stat"
},
{
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"0": {
"color": "purple",
"index": 0,
"text": "Unknown"
},
"1": {
"color": "green",
"index": 1,
"text": "OK"
},
"2": {
"color": "orange",
"index": 2,
"text": "Open circuit"
},
"3": {
"color": "red",
"index": 3,
"text": "Short circuit"
}
},
"type": "value"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 2,
"x": 22,
"y": 0
},
"id": 17,
"options": {
"colorMode": "background",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "8.4.6",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "AS8qkmwnz"
},
"exemplar": true,
"expr": "e1d_line_I0_L0_gpsdo_antenna{}",
"format": "table",
"instant": false,
"interval": "",
"legendFormat": "State",
"refId": "GPSDO State"
}
],
"title": "GPS antenna state",
"transformations": [],
"type": "stat"
},
{
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"0": {
"color": "green",
"index": 0,
"text": "OK"
},
"1": {
"color": "red",
"index": 1,
"text": "Lost"
}
},
"type": "value"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 2,
"x": 20,
"y": 4
},
"id": 20,
"options": {
"colorMode": "background",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"last"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "8.4.6",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "AS8qkmwnz"
},
"exemplar": true,
"expr": "e1d_line_I0_L0_rx_signal_lost{}",
"format": "table",
"instant": false,
"interval": "",
"legendFormat": "",
"refId": "GPSDO State"
}
],
"title": "E1 RX signal",
"transformations": [],
"type": "stat"
},
{
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"0": {
"color": "green",
"index": 0,
"text": "OK"
},
"1": {
"color": "red",
"index": 1,
"text": "Lost"
}
},
"type": "value"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 2,
"x": 22,
"y": 4
},
"id": 24,
"options": {
"colorMode": "background",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"last"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "8.4.6",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "AS8qkmwnz"
},
"exemplar": true,
"expr": "e1d_line_I0_L0_rx_signal_lost{}",
"format": "table",
"instant": false,
"interval": "",
"legendFormat": "",
"refId": "GPSDO State"
}
],
"title": "E1 RX signal",
"transformations": [],
"type": "stat"
},
{
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "transparent",
"value": null
},
{
"color": "green",
"value": 1
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 2,
"x": 20,
"y": 7
},
"id": 21,
"options": {
"colorMode": "background",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"last"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "8.4.6",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "AS8qkmwnz"
},
"exemplar": true,
"expr": "e1oip_line_90_187_70_153_10010_e1oip_e1t_ts_active{}",
"format": "table",
"instant": false,
"interval": "",
"legendFormat": "",
"refId": "GPSDO State"
}
],
"title": "TS IP->E1",
"transformations": [],
"type": "stat"
},
{
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "transparent",
"value": null
},
{
"color": "green",
"value": 1
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 2,
"x": 22,
"y": 7
},
"id": 25,
"options": {
"colorMode": "background",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"last"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "8.4.6",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "AS8qkmwnz"
},
"exemplar": true,
"expr": "e1oip_line_90_187_70_153_10010_e1oip_e1o_ts_active{}",
"format": "table",
"instant": false,
"interval": "",
"legendFormat": "",
"refId": "GPSDO State"
}
],
"title": "TS E1->IP",
"transformations": [],
"type": "stat"
},
{
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 11,
"w": 13,
"x": 0,
"y": 10
},
"id": 10,
"interval": "15",
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "AS8qkmwnz"
},
"exemplar": true,
"expr": "rate(e1oip_line_90_187_70_153_10010_e1oip_underrun{}[$__interval])",
"interval": "",
"legendFormat": "Underrun frames in IP->E1 direction",
"refId": "Underrun"
},
{
"datasource": {
"type": "prometheus",
"uid": "AS8qkmwnz"
},
"exemplar": true,
"expr": "rate(e1oip_line_90_187_70_153_10010_e1oip_substituted{}[$__interval])",
"hide": false,
"interval": "",
"legendFormat": "Substituted frames in IP->E1 direction",
"refId": "Substituted"
}
],
"title": "e1oip_underrun (OCTOI)",
"type": "timeseries"
},
{
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 11,
"w": 11,
"x": 13,
"y": 10
},
"id": 4,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "AS8qkmwnz"
},
"exemplar": true,
"expr": "e1oip_line_90_187_70_153_10010_e1oip_e1t_fifo_level{}",
"format": "time_series",
"interval": "",
"legendFormat": "IP->E1 frames",
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "AS8qkmwnz"
},
"exemplar": true,
"expr": "e1oip_line_90_187_70_153_10010_e1oip_e1o_fifo_level{}",
"hide": false,
"interval": "",
"legendFormat": "E1->IP frames",
"refId": "E1->"
}
],
"title": "FIFO levels (OCTOI)",
"type": "timeseries"
},
{
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 13,
"x": 0,
"y": 21
},
"id": 23,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "AS8qkmwnz"
},
"exemplar": true,
"expr": "e1oip_line_90_187_70_153_10010_e1oip_e1o_ts_active{}",
"interval": "",
"legendFormat": "E1->IP timeslots active",
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "AS8qkmwnz"
},
"exemplar": true,
"expr": "e1oip_line_90_187_70_153_10010_e1oip_e1t_ts_active{}",
"hide": false,
"interval": "",
"legendFormat": "IP->E1 timeslots active",
"refId": "B"
}
],
"title": "Timeslots",
"type": "timeseries"
}
],
"refresh": false,
"schemaVersion": 35,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "2022-04-20T20:17:00.986Z",
"to": "2022-04-20T20:24:55.076Z"
},
"timepicker": {},
"timezone": "",
"title": "OCTOI",
"uid": "bfY17mwnk",
"version": 29,
"weekStart": ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment