Skip to content

Instantly share code, notes, and snippets.

@euantorano
Created June 8, 2019 16:24
Show Gist options
  • Save euantorano/647033d2e89313c2250dd0f15ef9bbfa to your computer and use it in GitHub Desktop.
Save euantorano/647033d2e89313c2250dd0f15ef9bbfa to your computer and use it in GitHub Desktop.
MyBB Grafana Dashboard
{
"__inputs": [],
"__requires": [
{
"type": "panel",
"id": "gauge",
"name": "Gauge",
"version": ""
},
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "6.2.2"
},
{
"type": "panel",
"id": "graph",
"name": "Graph",
"version": ""
}
],
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"description": "Statistics from MyBB",
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": null,
"links": [],
"panels": [
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"description": "The total number of posts in all forums",
"fill": 1,
"gridPos": {
"h": 9,
"w": 12,
"x": 0,
"y": 0
},
"id": 4,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": true,
"targets": [
{
"expr": "mybb_stats_num_posts",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Number of posts",
"refId": "A"
},
{
"expr": "mybb_stats_num_deleted_posts",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Number of deleted posts",
"refId": "B"
},
{
"expr": "mybb_stats_num_unapproved_posts",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Number of unapproved posts",
"refId": "C"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Posts",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"decimals": 0,
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"decimals": 0,
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"description": "Stats on the number of total threads in all forums",
"fill": 1,
"gridPos": {
"h": 9,
"w": 12,
"x": 12,
"y": 0
},
"id": 2,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": true,
"targets": [
{
"expr": "mybb_stats_num_threads",
"format": "time_series",
"instant": false,
"intervalFactor": 1,
"legendFormat": "Number of threads",
"refId": "A"
},
{
"expr": "mybb_stats_num_deleted_threads",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Number of deleted threads",
"refId": "B"
},
{
"expr": "mybb_stats_num_unapproved_threads",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Number of unapproved threads",
"refId": "C"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Threads",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"decimals": 0,
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"decimals": 0,
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"description": "The number of users online at any given time",
"fill": 1,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 9
},
"id": 6,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": true,
"targets": [
{
"expr": "mybb_online_users_total",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Total online",
"refId": "A"
},
{
"expr": "mybb_online_users_registered",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Registered users",
"refId": "B"
},
{
"expr": "mybb_online_users_bots",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Bots",
"refId": "C"
},
{
"expr": "mybb_online_users_guests",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Guests",
"refId": "D"
},
{
"expr": "mybb_most_online",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Most online",
"refId": "E"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Online Users",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"decimals": 0,
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"decimals": 0,
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"description": "Details on reported content such as posts",
"fill": 1,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 9
},
"id": 8,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": true,
"targets": [
{
"expr": "mybb_reported_content_total",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Total",
"refId": "A"
},
{
"expr": "mybb_reported_content_unread",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Unread",
"refId": "B"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Reported Content",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"decimals": 0,
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"decimals": 0,
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"description": "The number of emails waiting in the mail queue",
"gridPos": {
"h": 5,
"w": 6,
"x": 0,
"y": 17
},
"id": 10,
"links": [],
"options": {
"fieldOptions": {
"calcs": [
"last"
],
"defaults": {
"max": 100,
"min": 0
},
"mappings": [],
"override": {},
"thresholds": [
{
"color": "green",
"index": 0,
"value": null
},
{
"color": "red",
"index": 1,
"value": 80
}
],
"values": false
},
"orientation": "auto",
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "6.2.2",
"targets": [
{
"expr": "mybb_mail_queue_size",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Mail Queue",
"type": "gauge"
},
{
"description": "The number of suer accounts waiting to be activated",
"gridPos": {
"h": 5,
"w": 6,
"x": 6,
"y": 17
},
"id": 12,
"links": [],
"options": {
"fieldOptions": {
"calcs": [
"last"
],
"defaults": {
"max": 100,
"min": 0
},
"mappings": [],
"override": {},
"thresholds": [
{
"color": "green",
"index": 0,
"value": null
},
{
"color": "red",
"index": 1,
"value": 80
}
],
"values": false
},
"orientation": "auto",
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "6.2.2",
"targets": [
{
"expr": "mybb_awaiting_activation_users",
"format": "time_series",
"instant": false,
"intervalFactor": 1,
"legendFormat": "Users awaiting activation",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Awaiting Activation",
"type": "gauge"
},
{
"gridPos": {
"h": 5,
"w": 6,
"x": 12,
"y": 17
},
"id": 14,
"links": [],
"options": {
"fieldOptions": {
"calcs": [
"last"
],
"defaults": {
"max": 100,
"min": 0
},
"mappings": [],
"override": {},
"thresholds": [
{
"color": "green",
"index": 0,
"value": null
},
{
"color": "red",
"index": 1,
"value": 80
}
],
"values": false
},
"orientation": "auto",
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "6.2.2",
"targets": [
{
"expr": "mybb_stats_num_users",
"format": "time_series",
"instant": false,
"intervalFactor": 1,
"legendFormat": "Number of users",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Number Of Users",
"type": "gauge"
},
{
"gridPos": {
"h": 5,
"w": 6,
"x": 18,
"y": 17
},
"id": 16,
"links": [],
"options": {
"fieldOptions": {
"calcs": [
"last"
],
"defaults": {
"max": 100,
"min": 0,
"unit": "percent"
},
"mappings": [],
"override": {},
"thresholds": [
{
"color": "green",
"index": 0,
"value": null
},
{
"color": "red",
"index": 1,
"value": 80
}
],
"values": false
},
"orientation": "auto",
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "6.2.2",
"targets": [
{
"expr": "mybb_stats_percentage_of_users_who_have_posted",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "% Users Who Have Posted",
"type": "gauge"
}
],
"refresh": "5s",
"schemaVersion": 18,
"style": "dark",
"tags": [
"mybb"
],
"templating": {
"list": []
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
]
},
"timezone": "",
"title": "MyBB Stats",
"uid": "yuita3GZz",
"version": 6
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment