{
    "__inputs": [
        {
            "name": "DS_PROMETHEUS",
            "label": "Prometheus",
            "description": "",
            "type": "datasource",
            "pluginId": "prometheus",
            "pluginName": "Prometheus"
        }
    ],
    "__elements": {},
    "__requires": [
        {
            "type": "grafana",
            "id": "grafana",
            "name": "Grafana",
            "version": "11.5.2"
        },
        {
            "type": "panel",
            "id": "piechart",
            "name": "Pie chart",
            "version": ""
        },
        {
            "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": "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",
                "target": {
                    "limit": 100,
                    "matchAny": false,
                    "tags": [],
                    "type": "dashboard"
                },
                "type": "dashboard"
            }
        ]
    },
    "description": "WordPress Dashboard - Monitor WordPress sites with health, performance, and content metrics",
    "editable": true,
    "fiscalYearStartMonth": 0,
    "graphTooltip": 0,
    "id": null,
    "links": [],
    "panels": [
        {
            "datasource": {
                "type": "prometheus",
                "uid": "${datasource}"
            },
            "description": "Total number of WordPress users across all selected sites",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "mode": "thresholds"
                    },
                    "mappings": [],
                    "noValue": "0",
                    "thresholds": {
                        "mode": "absolute",
                        "steps": [
                            {
                                "color": "green",
                                "value": null
                            }
                        ]
                    },
                    "unit": "short"
                },
                "overrides": []
            },
            "gridPos": {
                "h": 6,
                "w": 4,
                "x": 0,
                "y": 0
            },
            "id": 1,
            "options": {
                "colorMode": "value",
                "graphMode": "area",
                "justifyMode": "auto",
                "orientation": "auto",
                "percentChangeColorMode": "standard",
                "reduceOptions": {
                    "calcs": [
                        "lastNotNull"
                    ],
                    "fields": "",
                    "values": false
                },
                "showPercentChange": false,
                "textMode": "value",
                "wideLayout": true
            },
            "pluginVersion": "11.5.2",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "${DS_PROMETHEUS}"
                    },
                    "editorMode": "code",
                    "expr": "sum(wordpress_users_total{wordpress_site=~\"$website\", role=\"total\"})",
                    "instant": true,
                    "legendFormat": "Total Users",
                    "range": false,
                    "refId": "A"
                }
            ],
            "title": "Total Users",
            "type": "stat"
        },
        {
            "datasource": {
                "type": "prometheus",
                "uid": "${datasource}"
            },
            "description": "Total number of published pages across all selected sites",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "mode": "thresholds"
                    },
                    "mappings": [],
                    "noValue": "0",
                    "thresholds": {
                        "mode": "absolute",
                        "steps": [
                            {
                                "color": "green",
                                "value": null
                            }
                        ]
                    },
                    "unit": "short"
                },
                "overrides": []
            },
            "gridPos": {
                "h": 6,
                "w": 4,
                "x": 4,
                "y": 0
            },
            "id": 2,
            "options": {
                "colorMode": "value",
                "graphMode": "area",
                "justifyMode": "auto",
                "orientation": "auto",
                "percentChangeColorMode": "standard",
                "reduceOptions": {
                    "calcs": [
                        "lastNotNull"
                    ],
                    "fields": "",
                    "values": false
                },
                "showPercentChange": false,
                "textMode": "value",
                "wideLayout": true
            },
            "pluginVersion": "11.5.2",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "${DS_PROMETHEUS}"
                    },
                    "editorMode": "code",
                    "expr": "sum(wordpress_pages_total{wordpress_site=~\"$website\", status=\"published\"})",
                    "instant": true,
                    "legendFormat": "Published Pages",
                    "range": false,
                    "refId": "A"
                }
            ],
            "title": "Published Pages",
            "type": "stat"
        },
        {
            "datasource": {
                "type": "prometheus",
                "uid": "${datasource}"
            },
            "description": "Total number of published blog posts across all selected sites",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "mode": "thresholds"
                    },
                    "mappings": [],
                    "noValue": "0",
                    "thresholds": {
                        "mode": "absolute",
                        "steps": [
                            {
                                "color": "green",
                                "value": null
                            }
                        ]
                    },
                    "unit": "short"
                },
                "overrides": []
            },
            "gridPos": {
                "h": 6,
                "w": 4,
                "x": 8,
                "y": 0
            },
            "id": 3,
            "options": {
                "colorMode": "value",
                "graphMode": "area",
                "justifyMode": "auto",
                "orientation": "auto",
                "percentChangeColorMode": "standard",
                "reduceOptions": {
                    "calcs": [
                        "lastNotNull"
                    ],
                    "fields": "",
                    "values": false
                },
                "showPercentChange": false,
                "textMode": "value",
                "wideLayout": true
            },
            "pluginVersion": "11.5.2",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "${DS_PROMETHEUS}"
                    },
                    "editorMode": "code",
                    "expr": "sum(wordpress_posts_total{wordpress_site=~\"$website\", status=\"published\"})",
                    "instant": true,
                    "legendFormat": "Published Posts",
                    "range": false,
                    "refId": "A"
                }
            ],
            "title": "Published Posts",
            "type": "stat"
        },
        {
            "datasource": {
                "type": "prometheus",
                "uid": "${datasource}"
            },
            "description": "Total media items across all selected sites",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "mode": "thresholds"
                    },
                    "mappings": [],
                    "noValue": "0",
                    "thresholds": {
                        "mode": "absolute",
                        "steps": [
                            {
                                "color": "green",
                                "value": null
                            }
                        ]
                    },
                    "unit": "short"
                },
                "overrides": []
            },
            "gridPos": {
                "h": 6,
                "w": 4,
                "x": 12,
                "y": 0
            },
            "id": 4,
            "options": {
                "colorMode": "value",
                "graphMode": "area",
                "justifyMode": "auto",
                "orientation": "auto",
                "percentChangeColorMode": "standard",
                "reduceOptions": {
                    "calcs": [
                        "lastNotNull"
                    ],
                    "fields": "",
                    "values": false
                },
                "showPercentChange": false,
                "textMode": "value",
                "wideLayout": true
            },
            "pluginVersion": "11.5.2",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "${DS_PROMETHEUS}"
                    },
                    "editorMode": "code",
                    "expr": "sum(wordpress_media_total{wordpress_site=~\"$website\"})",
                    "instant": true,
                    "legendFormat": "Media Items",
                    "range": false,
                    "refId": "A"
                }
            ],
            "title": "Media Items",
            "type": "stat"
        },
        {
            "datasource": {
                "type": "prometheus",
                "uid": "${datasource}"
            },
            "description": "Critical WordPress issues requiring immediate attention",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "mode": "thresholds"
                    },
                    "mappings": [],
                    "noValue": "0",
                    "thresholds": {
                        "mode": "absolute",
                        "steps": [
                            {
                                "color": "green",
                                "value": null
                            },
                            {
                                "color": "green",
                                "value": 0
                            },
                            {
                                "color": "red",
                                "value": 1
                            }
                        ]
                    },
                    "unit": "short"
                },
                "overrides": []
            },
            "gridPos": {
                "h": 6,
                "w": 4,
                "x": 16,
                "y": 0
            },
            "id": 5,
            "options": {
                "colorMode": "value",
                "graphMode": "area",
                "justifyMode": "auto",
                "orientation": "auto",
                "percentChangeColorMode": "standard",
                "reduceOptions": {
                    "calcs": [
                        "lastNotNull"
                    ],
                    "fields": "",
                    "values": false
                },
                "showPercentChange": false,
                "textMode": "value",
                "wideLayout": true
            },
            "pluginVersion": "11.5.2",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "${DS_PROMETHEUS}"
                    },
                    "editorMode": "code",
                    "expr": "sum(wordpress_health_check_total{wordpress_site=~\"$website\", category=\"critical\"})",
                    "instant": true,
                    "legendFormat": "Critical Issues",
                    "range": false,
                    "refId": "A"
                }
            ],
            "title": "Critical Issues",
            "type": "stat"
        },
        {
            "datasource": {
                "type": "prometheus",
                "uid": "${datasource}"
            },
            "description": "Total number of failed WordPress health checks",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "mode": "thresholds"
                    },
                    "mappings": [],
                    "noValue": "0",
                    "thresholds": {
                        "mode": "absolute",
                        "steps": [
                            {
                                "color": "green",
                                "value": null
                            },
                            {
                                "color": "yellow",
                                "value": 1
                            },
                            {
                                "color": "red",
                                "value": 5
                            }
                        ]
                    },
                    "unit": "short"
                },
                "overrides": []
            },
            "gridPos": {
                "h": 6,
                "w": 4,
                "x": 20,
                "y": 0
            },
            "id": 6,
            "options": {
                "colorMode": "value",
                "graphMode": "area",
                "justifyMode": "auto",
                "orientation": "auto",
                "percentChangeColorMode": "standard",
                "reduceOptions": {
                    "calcs": [
                        "lastNotNull"
                    ],
                    "fields": "",
                    "values": false
                },
                "showPercentChange": false,
                "textMode": "value",
                "wideLayout": true
            },
            "pluginVersion": "11.5.2",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "${DS_PROMETHEUS}"
                    },
                    "editorMode": "code",
                    "expr": "sum(wordpress_health_check_total{wordpress_site=~\"$website\", category=\"total_failed\"})",
                    "instant": true,
                    "legendFormat": "Total Failed",
                    "range": false,
                    "refId": "A"
                }
            ],
            "title": "Total Failed Tests",
            "type": "stat"
        },
        {
            "datasource": {
                "type": "prometheus",
                "uid": "${datasource}"
            },
            "description": "Recommended improvements for WordPress security and performance",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "fixedColor": "yellow",
                        "mode": "fixed"
                    },
                    "mappings": [],
                    "noValue": "0",
                    "thresholds": {
                        "mode": "absolute",
                        "steps": [
                            {
                                "color": "green",
                                "value": null
                            },
                            {
                                "color": "yellow",
                                "value": 1
                            }
                        ]
                    },
                    "unit": "short"
                },
                "overrides": []
            },
            "gridPos": {
                "h": 5,
                "w": 4,
                "x": 0,
                "y": 6
            },
            "id": 7,
            "options": {
                "colorMode": "value",
                "graphMode": "area",
                "justifyMode": "auto",
                "orientation": "auto",
                "percentChangeColorMode": "standard",
                "reduceOptions": {
                    "calcs": [
                        "lastNotNull"
                    ],
                    "fields": "",
                    "values": false
                },
                "showPercentChange": false,
                "textMode": "value",
                "wideLayout": true
            },
            "pluginVersion": "11.5.2",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "${DS_PROMETHEUS}"
                    },
                    "editorMode": "code",
                    "expr": "sum(wordpress_health_check_total{wordpress_site=~\"$website\", category=\"recommended\"})",
                    "instant": true,
                    "legendFormat": "Recommended",
                    "range": false,
                    "refId": "A"
                }
            ],
            "title": "Recommended Fixes",
            "type": "stat"
        },
        {
            "datasource": {
                "type": "prometheus",
                "uid": "${datasource}"
            },
            "description": "WordPress tests that are passing successfully",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "fixedColor": "green",
                        "mode": "fixed"
                    },
                    "mappings": [],
                    "noValue": "0",
                    "thresholds": {
                        "mode": "absolute",
                        "steps": [
                            {
                                "color": "green",
                                "value": null
                            }
                        ]
                    },
                    "unit": "short"
                },
                "overrides": []
            },
            "gridPos": {
                "h": 5,
                "w": 4,
                "x": 4,
                "y": 6
            },
            "id": 8,
            "options": {
                "colorMode": "value",
                "graphMode": "area",
                "justifyMode": "auto",
                "orientation": "auto",
                "percentChangeColorMode": "standard",
                "reduceOptions": {
                    "calcs": [
                        "lastNotNull"
                    ],
                    "fields": "",
                    "values": false
                },
                "showPercentChange": false,
                "textMode": "value",
                "wideLayout": true
            },
            "pluginVersion": "11.5.2",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "${DS_PROMETHEUS}"
                    },
                    "editorMode": "code",
                    "expr": "sum(wordpress_health_check_total{wordpress_site=~\"$website\", category=\"good\"})",
                    "instant": true,
                    "legendFormat": "Good",
                    "range": false,
                    "refId": "A"
                }
            ],
            "title": "Passed Tests",
            "type": "stat"
        },
        {
            "datasource": {
                "type": "prometheus",
                "uid": "${datasource}"
            },
            "description": "Security issues detected by WordPress Site Health",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "fixedColor": "orange",
                        "mode": "fixed"
                    },
                    "mappings": [],
                    "noValue": "0",
                    "thresholds": {
                        "mode": "absolute",
                        "steps": [
                            {
                                "color": "green",
                                "value": null
                            },
                            {
                                "color": "orange",
                                "value": 1
                            }
                        ]
                    },
                    "unit": "short"
                },
                "overrides": []
            },
            "gridPos": {
                "h": 5,
                "w": 8,
                "x": 8,
                "y": 6
            },
            "id": 9,
            "options": {
                "colorMode": "value",
                "graphMode": "none",
                "justifyMode": "auto",
                "orientation": "auto",
                "percentChangeColorMode": "standard",
                "reduceOptions": {
                    "calcs": [
                        "lastNotNull"
                    ],
                    "fields": "",
                    "values": false
                },
                "showPercentChange": false,
                "textMode": "value_and_name",
                "wideLayout": true
            },
            "pluginVersion": "11.5.2",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "${DS_PROMETHEUS}"
                    },
                    "editorMode": "code",
                    "expr": "wordpress_health_check_total{wordpress_site=~\"$website\", category=\"security\"}",
                    "instant": true,
                    "legendFormat": "{{wordpress_site}}",
                    "range": false,
                    "refId": "A"
                }
            ],
            "title": "Security Issues by Site",
            "type": "stat"
        },
        {
            "datasource": {
                "type": "prometheus",
                "uid": "${datasource}"
            },
            "description": "Performance issues detected by WordPress Site Health",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "fixedColor": "blue",
                        "mode": "fixed"
                    },
                    "mappings": [],
                    "noValue": "0",
                    "thresholds": {
                        "mode": "absolute",
                        "steps": [
                            {
                                "color": "green",
                                "value": null
                            },
                            {
                                "color": "blue",
                                "value": 1
                            }
                        ]
                    },
                    "unit": "short"
                },
                "overrides": []
            },
            "gridPos": {
                "h": 5,
                "w": 8,
                "x": 16,
                "y": 6
            },
            "id": 10,
            "options": {
                "colorMode": "value",
                "graphMode": "none",
                "justifyMode": "auto",
                "orientation": "auto",
                "percentChangeColorMode": "standard",
                "reduceOptions": {
                    "calcs": [
                        "lastNotNull"
                    ],
                    "fields": "",
                    "values": false
                },
                "showPercentChange": false,
                "textMode": "value_and_name",
                "wideLayout": true
            },
            "pluginVersion": "11.5.2",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "${DS_PROMETHEUS}"
                    },
                    "editorMode": "code",
                    "expr": "wordpress_health_check_total{wordpress_site=~\"$website\", category=\"performance\"}",
                    "instant": true,
                    "legendFormat": "{{wordpress_site}}",
                    "range": false,
                    "refId": "A"
                }
            ],
            "title": "Performance Issues by Site",
            "type": "stat"
        },
        {
            "datasource": {
                "type": "prometheus",
                "uid": "${datasource}"
            },
            "description": "Detailed health check failures and recommendations by site - shows specific issues that need attention",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "mode": "thresholds"
                    },
                    "custom": {
                        "align": "auto",
                        "cellOptions": {
                            "type": "auto"
                        },
                        "filterable": true,
                        "inspect": false
                    },
                    "mappings": [
                        {
                            "options": {
                                "0": {
                                    "index": 0,
                                    "text": "FAILED"
                                },
                                "1": {
                                    "index": 1,
                                    "text": "PASSED"
                                }
                            },
                            "type": "value"
                        }
                    ],
                    "thresholds": {
                        "mode": "absolute",
                        "steps": [
                            {
                                "color": "red",
                                "value": null
                            },
                            {
                                "color": "green",
                                "value": 1
                            }
                        ]
                    }
                },
                "overrides": [
                    {
                        "matcher": {
                            "id": "byName",
                            "options": "Status"
                        },
                        "properties": [
                            {
                                "id": "custom.cellOptions",
                                "value": {
                                    "mode": "basic",
                                    "type": "color-background"
                                }
                            }
                        ]
                    },
                    {
                        "matcher": {
                            "id": "byName",
                            "options": "Website"
                        },
                        "properties": [
                            {
                                "id": "custom.width",
                                "value": 214
                            }
                        ]
                    },
                    {
                        "matcher": {
                            "id": "byName",
                            "options": "Status Type"
                        },
                        "properties": [
                            {
                                "id": "custom.width",
                                "value": 148
                            }
                        ]
                    },
                    {
                        "matcher": {
                            "id": "byName",
                            "options": "Category"
                        },
                        "properties": [
                            {
                                "id": "custom.width",
                                "value": 170
                            }
                        ]
                    },
                    {
                        "matcher": {
                            "id": "byName",
                            "options": "Description"
                        },
                        "properties": [
                            {
                                "id": "custom.width",
                                "value": 607
                            }
                        ]
                    }
                ]
            },
            "gridPos": {
                "h": 8,
                "w": 24,
                "x": 0,
                "y": 11
            },
            "id": 19,
            "options": {
                "cellHeight": "sm",
                "footer": {
                    "countRows": false,
                    "fields": "",
                    "reducer": [
                        "sum"
                    ],
                    "show": false
                },
                "showHeader": true,
                "sortBy": [
                    {
                        "desc": false,
                        "displayName": "Status"
                    }
                ]
            },
            "pluginVersion": "11.5.2",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "${DS_PROMETHEUS}"
                    },
                    "editorMode": "builder",
                    "expr": "wordpress_health_check_detail_info{wordpress_site=~\"$website\"} == 0",
                    "format": "table",
                    "instant": true,
                    "legendFormat": "__auto",
                    "range": false,
                    "refId": "A"
                }
            ],
            "title": "Health Check Details - Failed Tests",
            "transformations": [
                {
                    "id": "organize",
                    "options": {
                        "excludeByName": {
                            "Time": true,
                            "__name__": true,
                            "container": true,
                            "endpoint": true,
                            "instance": true,
                            "job": true,
                            "namespace": true,
                            "pod": true,
                            "service": true,
                            "test_name": true,
                            "Critical Failed": true,
                            "Is Critical": true
                        },
                        "indexByName": {
                            "Value": 4,
                            "category": 2,
                            "description": 3,
                            "status": 1,
                            "wordpress_site": 0
                        },
                        "renameByName": {
                            "Value": "Status",
                            "category": "Category",
                            "description": "Description",
                            "status": "Status Type",
                            "wordpress_site": "Website"
                        }
                    }
                },
                {
                    "id": "calculateField",
                    "options": {
                        "alias": "Critical Failed",
                        "binary": {
                            "left": "Status",
                            "operator": "==",
                            "reducer": "sum",
                            "right": "0"
                        },
                        "mode": "binary"
                    }
                },
                {
                    "id": "calculateField",
                    "options": {
                        "alias": "Is Critical",
                        "binary": {
                            "left": "Category",
                            "operator": "==",
                            "reducer": "sum",
                            "right": "critical"
                        },
                        "mode": "binary"
                    }
                },
                {
                    "id": "filterByValue",
                    "options": {
                        "filters": [
                            {
                                "config": {
                                    "id": "equal",
                                    "options": {
                                        "value": 0
                                    }
                                },
                                "fieldName": "Status"
                            }
                        ],
                        "match": "any",
                        "type": "include"
                    }
                }
            ],
            "type": "table"
        },
        {
            "datasource": {
                "type": "prometheus",
                "uid": "${datasource}"
            },
            "description": "WordPress database size and autoload performance metrics",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "mode": "fixed",
                        "fixedColor": "blue"
                    },
                    "mappings": [],
                    "noValue": "0",
                    "thresholds": {
                        "mode": "absolute",
                        "steps": [
                            {
                                "color": "blue",
                                "value": null
                            }
                        ]
                    },
                    "unit": "short"
                },
                "overrides": [
                    {
                        "matcher": {
                            "id": "byRegexp",
                            "options": "/.*Size.*/"
                        },
                        "properties": [
                            {
                                "id": "unit",
                                "value": "bytes"
                            }
                        ]
                    },
                    {
                        "matcher": {
                            "id": "byRegexp",
                            "options": "/.*Database.*/"
                        },
                        "properties": [
                            {
                                "id": "unit",
                                "value": "bytes"
                            }
                        ]
                    }
                ]
            },
            "gridPos": {
                "h": 7,
                "w": 11,
                "x": 0,
                "y": 19
            },
            "id": 11,
            "options": {
                "colorMode": "value",
                "graphMode": "none",
                "justifyMode": "auto",
                "orientation": "auto",
                "percentChangeColorMode": "standard",
                "reduceOptions": {
                    "calcs": [
                        "lastNotNull"
                    ],
                    "fields": "",
                    "values": false
                },
                "showPercentChange": false,
                "textMode": "value_and_name",
                "wideLayout": true
            },
            "pluginVersion": "11.5.2",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "${DS_PROMETHEUS}"
                    },
                    "editorMode": "code",
                    "expr": "wordpress_database_size_bytes{wordpress_site=~\"$website\"}",
                    "instant": true,
                    "legendFormat": "{{wordpress_site}} - Database Size",
                    "range": false,
                    "refId": "A"
                },
                {
                    "datasource": {
                        "uid": "${datasource}"
                    },
                    "editorMode": "code",
                    "expr": "wordpress_autoload_options_total{wordpress_site=~\"$website\"}",
                    "instant": true,
                    "legendFormat": "{{wordpress_site}} - Autoload Options Count",
                    "range": false,
                    "refId": "B"
                },
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "${DS_PROMETHEUS}"
                    },
                    "editorMode": "code",
                    "expr": "wordpress_autoload_size_bytes{wordpress_site=~\"$website\"}",
                    "instant": true,
                    "legendFormat": "{{wordpress_site}} - Autoload Size (Bytes)",
                    "range": false,
                    "refId": "C"
                },
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "${DS_PROMETHEUS}"
                    },
                    "editorMode": "code",
                    "expr": "wordpress_autoload_transients_total{wordpress_site=~\"$website\"}",
                    "instant": true,
                    "legendFormat": "{{wordpress_site}} - Autoload Transients",
                    "range": false,
                    "refId": "D"
                }
            ],
            "title": "Database and Autoload Metrics",
            "type": "stat"
        },
        {
            "datasource": {
                "type": "prometheus",
                "uid": "${datasource}"
            },
            "description": "WordPress directory sizes and performance metrics",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "mode": "fixed",
                        "fixedColor": "blue"
                    },
                    "mappings": [],
                    "noValue": "0",
                    "thresholds": {
                        "mode": "absolute",
                        "steps": [
                            {
                                "color": "blue",
                                "value": null
                            }
                        ]
                    },
                    "unit": "short"
                },
                "overrides": [
                    {
                        "matcher": {
                            "id": "byRegexp",
                            "options": "/.*Size.*/"
                        },
                        "properties": [
                            {
                                "id": "unit",
                                "value": "bytes"
                            }
                        ]
                    }
                ]
            },
            "gridPos": {
                "h": 7,
                "w": 13,
                "x": 11,
                "y": 19
            },
            "id": 18,
            "options": {
                "colorMode": "value",
                "graphMode": "none",
                "justifyMode": "auto",
                "orientation": "auto",
                "percentChangeColorMode": "standard",
                "reduceOptions": {
                    "calcs": [
                        "lastNotNull"
                    ],
                    "fields": "",
                    "values": false
                },
                "showPercentChange": false,
                "textMode": "value_and_name",
                "wideLayout": true
            },
            "pluginVersion": "11.5.2",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "${DS_PROMETHEUS}"
                    },
                    "editorMode": "code",
                    "expr": "wordpress_directory_size_bytes{wordpress_site=~\"$website\", directory=\"total\"}",
                    "instant": true,
                    "legendFormat": "{{wordpress_site}} - Total Directory Size",
                    "range": false,
                    "refId": "A"
                },
                {
                    "datasource": {
                        "uid": "${datasource}"
                    },
                    "editorMode": "code",
                    "expr": "wordpress_directory_size_bytes{wordpress_site=~\"$website\", directory=\"uploads\"}",
                    "instant": true,
                    "legendFormat": "{{wordpress_site}} - Uploads Directory Size",
                    "range": false,
                    "refId": "B"
                },
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "${DS_PROMETHEUS}"
                    },
                    "editorMode": "code",
                    "expr": "wordpress_directory_size_bytes{wordpress_site=~\"$website\", directory=\"themes\"}",
                    "instant": true,
                    "legendFormat": "{{wordpress_site}} - Themes Directory Size",
                    "range": false,
                    "refId": "C"
                },
                {
                    "datasource": {
                        "uid": "${datasource}"
                    },
                    "editorMode": "code",
                    "expr": "wordpress_directory_size_bytes{wordpress_site=~\"$website\", directory=\"plugins\"}",
                    "instant": true,
                    "legendFormat": "{{wordpress_site}} - Plugins Directory Size",
                    "range": false,
                    "refId": "D"
                }
            ],
            "title": "Directory Size Metrics",
            "type": "stat"
        },
        {
            "datasource": {
                "type": "prometheus",
                "uid": "${datasource}"
            },
            "description": "WordPress and PHP configuration per site",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "mode": "thresholds"
                    },
                    "custom": {
                        "align": "auto",
                        "cellOptions": {
                            "type": "auto"
                        },
                        "inspect": false
                    },
                    "mappings": [],
                    "thresholds": {
                        "mode": "absolute",
                        "steps": [
                            {
                                "color": "green",
                                "value": null
                            }
                        ]
                    }
                },
                "overrides": [
                    {
                        "matcher": {
                            "id": "byName",
                            "options": "Memory Limit (MB)"
                        },
                        "properties": [
                            {
                                "id": "unit",
                                "value": "decbytes"
                            }
                        ]
                    },
                    {
                        "matcher": {
                            "id": "byName",
                            "options": "Upload Max Filesize (MB)"
                        },
                        "properties": [
                            {
                                "id": "unit",
                                "value": "decbytes"
                            }
                        ]
                    },
                    {
                        "matcher": {
                            "id": "byName",
                            "options": "Post Max Size (MB)"
                        },
                        "properties": [
                            {
                                "id": "unit",
                                "value": "decbytes"
                            }
                        ]
                    }
                ]
            },
            "gridPos": {
                "h": 6,
                "w": 24,
                "x": 0,
                "y": 26
            },
            "id": 12,
            "options": {
                "cellHeight": "sm",
                "footer": {
                    "countRows": false,
                    "fields": "",
                    "reducer": [
                        "sum"
                    ],
                    "show": false
                },
                "showHeader": true
            },
            "pluginVersion": "11.5.2",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "${datasource}"
                    },
                    "editorMode": "code",
                    "expr": "wordpress_version{wordpress_site=~\"$website\"}",
                    "format": "table",
                    "instant": true,
                    "legendFormat": "__auto",
                    "range": false,
                    "refId": "A"
                },
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "${datasource}"
                    },
                    "editorMode": "code",
                    "expr": "wordpress_php_version_info{wordpress_site=~\"$website\"}",
                    "format": "table",
                    "instant": true,
                    "legendFormat": "__auto",
                    "range": false,
                    "refId": "B"
                },
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "${datasource}"
                    },
                    "editorMode": "code",
                    "expr": "wordpress_memory_limit_info{wordpress_site=~\"$website\"}",
                    "format": "table",
                    "instant": true,
                    "legendFormat": "Memory Limit: {{value}}",
                    "range": false,
                    "refId": "C"
                },
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "${datasource}"
                    },
                    "editorMode": "code",
                    "expr": "wordpress_upload_max_info{wordpress_site=~\"$website\"}",
                    "format": "table",
                    "instant": true,
                    "legendFormat": "Upload Max: {{value}}",
                    "range": false,
                    "refId": "D"
                },
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "${datasource}"
                    },
                    "editorMode": "code",
                    "expr": "wordpress_post_max_info{wordpress_site=~\"$website\"}",
                    "format": "table",
                    "instant": true,
                    "legendFormat": "Post Max: {{value}}",
                    "range": false,
                    "refId": "E"
                },
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "${datasource}"
                    },
                    "editorMode": "code",
                    "expr": "wordpress_exec_time_info{wordpress_site=~\"$website\"}",
                    "format": "table",
                    "instant": true,
                    "legendFormat": "Max Exec: {{value}}",
                    "range": false,
                    "refId": "F"
                }
            ],
            "title": "WordPress and PHP Configuration",
            "transformations": [
                {
                    "id": "filterFieldsByName",
                    "options": {
                        "include": {
                            "names": [
                                "wordpress_site",
                                "version",
                                "php_version",
                                "memory_limit",
                                "upload_max",
                                "post_max",
                                "exec_time"
                            ]
                        }
                    }
                },
                {
                    "id": "joinByField",
                    "options": {
                        "byField": "wordpress_site",
                        "mode": "outer"
                    }
                },
                {
                    "id": "organize",
                    "options": {
                        "excludeByName": {},
                        "indexByName": {},
                        "renameByName": {
                            "exec_time": "Max Execution Time",
                            "memory_limit": "Memory Limit",
                            "php_version": "PHP Version",
                            "post_max": "Post Max Size",
                            "upload_max": "Upload Max Filesize",
                            "version": "WordPress Version",
                            "wordpress_site": "Website"
                        }
                    }
                }
            ],
            "type": "table"
        },
        {
            "datasource": {
                "type": "prometheus",
                "uid": "${datasource}"
            },
            "description": "Plugin status overview - inactive plugins shown in red",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "mode": "thresholds"
                    },
                    "mappings": [],
                    "noValue": "0",
                    "thresholds": {
                        "mode": "absolute",
                        "steps": [
                            {
                                "color": "green"
                            }
                        ]
                    },
                    "unit": "short"
                },
                "overrides": [
                    {
                        "matcher": {
                            "id": "byName",
                            "options": "Inactive Plugins"
                        },
                        "properties": [
                            {
                                "id": "color",
                                "value": {
                                    "fixedColor": "red",
                                    "mode": "fixed"
                                }
                            }
                        ]
                    }
                ]
            },
            "gridPos": {
                "h": 6,
                "w": 12,
                "x": 0,
                "y": 32
            },
            "id": 13,
            "options": {
                "colorMode": "value",
                "graphMode": "none",
                "justifyMode": "auto",
                "orientation": "auto",
                "percentChangeColorMode": "standard",
                "reduceOptions": {
                    "calcs": [
                        "lastNotNull"
                    ],
                    "fields": "",
                    "values": false
                },
                "showPercentChange": false,
                "textMode": "value_and_name",
                "wideLayout": true
            },
            "pluginVersion": "11.5.2",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "${DS_PROMETHEUS}"
                    },
                    "editorMode": "code",
                    "expr": "sum(wordpress_plugins_total{wordpress_site=~\"$website\", status=\"active\"})",
                    "instant": true,
                    "legendFormat": "Active Plugins",
                    "range": false,
                    "refId": "A"
                },
                {
                    "datasource": {
                        "uid": "${datasource}"
                    },
                    "editorMode": "code",
                    "expr": "sum(wordpress_plugins_total{wordpress_site=~\"$website\", status=\"inactive\"})",
                    "instant": true,
                    "legendFormat": "Inactive Plugins",
                    "range": false,
                    "refId": "B"
                }
            ],
            "title": "Plugin Status",
            "type": "stat"
        },
        {
            "datasource": {
                "type": "prometheus",
                "uid": "${datasource}"
            },
            "description": "Plugin update status - plugins needing updates shown in red",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "mode": "thresholds"
                    },
                    "mappings": [],
                    "noValue": "0",
                    "thresholds": {
                        "mode": "absolute",
                        "steps": [
                            {
                                "color": "green"
                            }
                        ]
                    },
                    "unit": "short"
                },
                "overrides": [
                    {
                        "matcher": {
                            "id": "byName",
                            "options": "Updates Available"
                        },
                        "properties": [
                            {
                                "id": "color",
                                "value": {
                                    "mode": "thresholds"
                                }
                            },
                            {
                                "id": "thresholds",
                                "value": {
                                    "mode": "absolute",
                                    "steps": [
                                        {
                                            "color": "green"
                                        },
                                        {
                                            "color": "green",
                                            "value": 0
                                        },
                                        {
                                            "color": "red",
                                            "value": 1
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                ]
            },
            "gridPos": {
                "h": 6,
                "w": 12,
                "x": 12,
                "y": 32
            },
            "id": 14,
            "options": {
                "colorMode": "value",
                "graphMode": "none",
                "justifyMode": "auto",
                "orientation": "auto",
                "percentChangeColorMode": "standard",
                "reduceOptions": {
                    "calcs": [
                        "lastNotNull"
                    ],
                    "fields": "",
                    "values": false
                },
                "showPercentChange": false,
                "textMode": "value_and_name",
                "wideLayout": true
            },
            "pluginVersion": "11.5.2",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "${datasource}"
                    },
                    "editorMode": "code",
                    "expr": "sum(wordpress_plugins_update_total{wordpress_site=~\"$website\", status=\"uptodate\"})",
                    "instant": true,
                    "legendFormat": "Up to Date",
                    "range": false,
                    "refId": "A"
                },
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "${datasource}"
                    },
                    "editorMode": "code",
                    "expr": "sum(wordpress_plugins_update_total{wordpress_site=~\"$website\", status=\"available\"})",
                    "instant": true,
                    "legendFormat": "Updates Available",
                    "range": false,
                    "refId": "B"
                }
            ],
            "title": "Plugin Updates",
            "type": "stat"
        },
        {
            "datasource": {
                "type": "prometheus",
                "uid": "${datasource}"
            },
            "description": "Comment status distribution across all selected sites - excluding spam",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "mode": "palette-classic"
                    },
                    "custom": {
                        "hideFrom": {
                            "legend": false,
                            "tooltip": false,
                            "vis": false,
                            "viz": false
                        }
                    },
                    "mappings": [],
                    "unit": "short"
                },
                "overrides": []
            },
            "gridPos": {
                "h": 8,
                "w": 12,
                "x": 0,
                "y": 38
            },
            "id": 15,
            "options": {
                "legend": {
                    "displayMode": "table",
                    "placement": "right",
                    "showLegend": true,
                    "values": [
                        "value"
                    ]
                },
                "pieType": "pie",
                "reduceOptions": {
                    "calcs": [
                        "lastNotNull"
                    ],
                    "fields": "",
                    "values": false
                },
                "tooltip": {
                    "hideZeros": false,
                    "mode": "single",
                    "sort": "none"
                }
            },
            "pluginVersion": "11.5.2",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "${DS_PROMETHEUS}"
                    },
                    "editorMode": "code",
                    "expr": "sum by (status) (wordpress_comments_total{wordpress_site=~\"$website\", status!=\"spam\", status!=\"all\"})",
                    "instant": true,
                    "legendFormat": "{{status}}",
                    "range": false,
                    "refId": "A"
                }
            ],
            "title": "Comment Status Distribution",
            "type": "piechart"
        },
        {
            "datasource": {
                "type": "prometheus",
                "uid": "${datasource}"
            },
            "description": "User roles distribution across all selected sites",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "mode": "palette-classic"
                    },
                    "custom": {
                        "hideFrom": {
                            "legend": false,
                            "tooltip": false,
                            "vis": false,
                            "viz": false
                        }
                    },
                    "mappings": [],
                    "unit": "short"
                },
                "overrides": []
            },
            "gridPos": {
                "h": 8,
                "w": 12,
                "x": 12,
                "y": 38
            },
            "id": 16,
            "options": {
                "legend": {
                    "displayMode": "table",
                    "placement": "right",
                    "showLegend": true,
                    "values": [
                        "value"
                    ]
                },
                "pieType": "pie",
                "reduceOptions": {
                    "calcs": [
                        "lastNotNull"
                    ],
                    "fields": "",
                    "values": false
                },
                "tooltip": {
                    "hideZeros": false,
                    "mode": "single",
                    "sort": "none"
                }
            },
            "pluginVersion": "11.5.2",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "${DS_PROMETHEUS}"
                    },
                    "editorMode": "code",
                    "expr": "sum by (role) (wordpress_users_total{wordpress_site=~\"$website\", role!=\"total\"})",
                    "instant": true,
                    "legendFormat": "{{role}}",
                    "range": false,
                    "refId": "A"
                }
            ],
            "title": "User Roles Distribution",
            "type": "piechart"
        },
        {
            "datasource": {
                "type": "prometheus",
                "uid": "${datasource}"
            },
            "description": "WordPress activity timeline showing published posts, approved comments, and published sites",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "mode": "palette-classic"
                    },
                    "custom": {
                        "axisBorderShow": false,
                        "axisCenteredZero": false,
                        "axisColorMode": "text",
                        "axisLabel": "",
                        "axisPlacement": "auto",
                        "barAlignment": 0,
                        "barWidthFactor": 0.6,
                        "drawStyle": "line",
                        "fillOpacity": 0,
                        "gradientMode": "none",
                        "hideFrom": {
                            "legend": false,
                            "tooltip": false,
                            "vis": false,
                            "viz": false
                        },
                        "insertNulls": 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"
                            }
                        ]
                    },
                    "unit": "short"
                },
                "overrides": []
            },
            "gridPos": {
                "h": 9,
                "w": 24,
                "x": 0,
                "y": 46
            },
            "id": 17,
            "options": {
                "legend": {
                    "calcs": [],
                    "displayMode": "list",
                    "placement": "bottom",
                    "showLegend": true
                },
                "tooltip": {
                    "hideZeros": false,
                    "mode": "single",
                    "sort": "none"
                }
            },
            "pluginVersion": "11.5.2",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "${DS_PROMETHEUS}"
                    },
                    "editorMode": "code",
                    "expr": "wordpress_posts_total{wordpress_site=~\"$website\", status=\"published\"}",
                    "instant": false,
                    "legendFormat": "{{wordpress_site}} - Published Posts",
                    "range": true,
                    "refId": "A"
                },
                {
                    "datasource": {
                        "uid": "${datasource}"
                    },
                    "editorMode": "code",
                    "expr": "wordpress_comments_total{wordpress_site=~\"$website\", status=\"approved\"}",
                    "instant": false,
                    "legendFormat": "{{wordpress_site}} - Approved Comments",
                    "range": true,
                    "refId": "B"
                },
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "${DS_PROMETHEUS}"
                    },
                    "editorMode": "code",
                    "expr": "wordpress_pages_total{wordpress_site=~\"$website\", status=\"published\"}",
                    "instant": false,
                    "legendFormat": "{{wordpress_site}} - Published Pages",
                    "range": true,
                    "refId": "C"
                }
            ],
            "title": "WordPress Activity Timeline",
            "type": "timeseries"
        }
    ],
    "refresh": "",
    "schemaVersion": 40,
    "tags": [
        "wordpress",
        "monitoring",
        "health",
        "performance"
    ],
    "templating": {
        "list": [
            {
                "current": {},
                "includeAll": false,
                "name": "datasource",
                "options": [],
                "query": "prometheus",
                "refresh": 1,
                "regex": "",
                "type": "datasource"
            },
            {
                "allValue": ".*",
                "current": {},
                "datasource": {
                    "type": "prometheus",
                    "uid": "${datasource}"
                },
                "definition": "label_values(wordpress_users_total, wordpress_site)",
                "includeAll": true,
                "multi": true,
                "name": "website",
                "options": [],
                "query": {
                    "query": "label_values(wordpress_users_total, wordpress_site)",
                    "refId": "StandardVariableQuery"
                },
                "refresh": 1,
                "regex": "",
                "sort": 1,
                "type": "query"
            }
        ]
    },
    "time": {
        "from": "now-24h",
        "to": "now"
    },
    "timepicker": {},
    "timezone": "browser",
    "title": "WordPress Monitoring",
    "uid": "wordpress-monitoring",
    "version": 3,
    "weekStart": ""
}