project initialization
Some checks failed
System Monitoring / Health Checks (push) Has been cancelled
System Monitoring / Performance Monitoring (push) Has been cancelled
System Monitoring / Database Monitoring (push) Has been cancelled
System Monitoring / Cache Monitoring (push) Has been cancelled
System Monitoring / Log Monitoring (push) Has been cancelled
System Monitoring / Resource Monitoring (push) Has been cancelled
System Monitoring / Uptime Monitoring (push) Has been cancelled
System Monitoring / Backup Monitoring (push) Has been cancelled
System Monitoring / Security Monitoring (push) Has been cancelled
System Monitoring / Monitoring Dashboard (push) Has been cancelled
System Monitoring / Alerting (push) Has been cancelled
Security Scanning / Dependency Scanning (push) Has been cancelled
Security Scanning / Code Security Scanning (push) Has been cancelled
Security Scanning / Secrets Scanning (push) Has been cancelled
Security Scanning / Container Security Scanning (push) Has been cancelled
Security Scanning / Compliance Checking (push) Has been cancelled
Security Scanning / Security Dashboard (push) Has been cancelled
Security Scanning / Security Remediation (push) Has been cancelled

This commit is contained in:
2025-10-05 02:37:33 +08:00
parent 2cbb6d5fa1
commit b3fff546e9
226 changed files with 97805 additions and 35 deletions

View File

@@ -0,0 +1,266 @@
{
"dashboard": {
"id": null,
"title": "Business Metrics",
"tags": ["business", "metrics"],
"timezone": "Asia/Kuala_Lumpur",
"panels": [
{
"id": 1,
"title": "Active Users",
"type": "stat",
"gridPos": {"h": 8, "w": 6, "x": 0, "y": 0},
"targets": [
{
"expr": "active_users",
"legendFormat": "Current Active Users"
}
],
"fieldConfig": {
"defaults": {
"mappings": [],
"thresholds": {
"steps": [
{"color": "green", "value": null},
{"color": "yellow", "value": 50},
{"color": "red", "value": 100}
]
},
"unit": "short"
}
}
},
{
"id": 2,
"title": "New Users Today",
"type": "stat",
"gridPos": {"h": 8, "w": 6, "x": 6, "y": 0},
"targets": [
{
"expr": "increase(new_users_total[24h])",
"legendFormat": "New Users Today"
}
],
"fieldConfig": {
"defaults": {
"mappings": [],
"thresholds": {
"steps": [
{"color": "green", "value": null},
{"color": "yellow", "value": 10},
{"color": "red", "value": 20}
]
},
"unit": "short"
}
}
},
{
"id": 3,
"title": "Revenue (MYR)",
"type": "stat",
"gridPos": {"h": 8, "w": 6, "x": 12, "y": 0},
"targets": [
{
"expr": "increase(revenue_total[24h])",
"legendFormat": "Revenue Today"
}
],
"fieldConfig": {
"defaults": {
"mappings": [],
"thresholds": {
"steps": [
{"color": "green", "value": null},
{"color": "yellow", "value": 10000},
{"color": "red", "value": 50000}
]
},
"unit": "currencyMYR"
}
}
},
{
"id": 4,
"title": "Conversion Rate",
"type": "stat",
"gridPos": {"h": 8, "w": 6, "x": 18, "y": 0},
"targets": [
{
"expr": "rate(conversion_events_total[24h]) / rate(page_views_total[24h]) * 100",
"legendFormat": "Conversion Rate %"
}
],
"fieldConfig": {
"defaults": {
"mappings": [],
"thresholds": {
"steps": [
{"color": "red", "value": null},
{"color": "yellow", "value": 2},
{"color": "green", "value": 5}
]
},
"unit": "percent"
}
}
},
{
"id": 5,
"title": "User Registrations",
"type": "graph",
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 8},
"targets": [
{
"expr": "rate(new_users_total[1h])",
"legendFormat": "Registrations/Hour"
}
],
"yaxes": [{"label": "Users/Hour"}]
},
{
"id": 6,
"title": "Revenue Trend",
"type": "graph",
"gridPos": {"h": 8, "w": 12, "x": 12, "y": 8},
"targets": [
{
"expr": "rate(revenue_total[1h])",
"legendFormat": "Revenue/Hour (MYR)"
}
],
"yaxes": [{"label": "MYR/Hour"}]
},
{
"id": 7,
"title": "Transactions by Status",
"type": "piechart",
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 16},
"targets": [
{
"expr": "rate(transaction_successful_total[1h])",
"legendFormat": "Successful"
},
{
"expr": "rate(transaction_failed_total[1h])",
"legendFormat": "Failed"
},
{
"expr": "rate(transaction_pending_total[1h])",
"legendFormat": "Pending"
}
]
},
{
"id": 8,
"title": "Payment Methods",
"type": "piechart",
"gridPos": {"h": 8, "w": 12, "x": 12, "y": 16},
"targets": [
{
"expr": "rate(payment_successful_total{method=\"FPX\"}[1h])",
"legendFormat": "FPX"
},
{
"expr": "rate(payment_successful_total{method=\"Boost\"}[1h])",
"legendFormat": "Boost"
},
{
"expr": "rate(payment_successful_total{method=\"GrabPay\"}[1h])",
"legendFormat": "GrabPay"
},
{
"expr": "rate(payment_successful_total{method=\"TouchNGo\"}[1h])",
"legendFormat": "Touch 'n Go"
}
]
},
{
"id": 9,
"title": "Malaysian States Activity",
"type": "table",
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 24},
"targets": [
{
"expr": "malaysian_users_by_state",
"format": "table",
"legendFormat": "{{state}}"
}
],
"fieldConfig": {
"defaults": {
"custom": {
"align": "auto",
"displayMode": "auto"
}
}
}
},
{
"id": 10,
"title": "SST Calculations",
"type": "graph",
"gridPos": {"h": 8, "w": 12, "x": 12, "y": 24},
"targets": [
{
"expr": "rate(sst_calculations_total[1h])",
"legendFormat": "SST Calculations/Hour"
}
],
"yaxes": [{"label": "Calculations/Hour"}]
},
{
"id": 11,
"title": "IC Validations",
"type": "graph",
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 32},
"targets": [
{
"expr": "rate(ic_validations_total[1h])",
"legendFormat": "IC Validations/Hour"
}
],
"yaxes": [{"label": "Validations/Hour"}]
},
{
"id": 12,
"title": "Postcode Lookups",
"type": "graph",
"gridPos": {"h": 8, "w": 12, "x": 12, "y": 32},
"targets": [
{
"expr": "rate(malaysian_postcode_lookups_total[1h])",
"legendFormat": "Postcode Lookups/Hour"
}
],
"yaxes": [{"label": "Lookups/Hour"}]
},
{
"id": 13,
"title": "Tenant Activity",
"type": "table",
"gridPos": {"h": 8, "w": 24, "x": 0, "y": 40},
"targets": [
{
"expr": "tenant_active_users",
"format": "table",
"legendFormat": "{{tenant_name}}"
}
],
"fieldConfig": {
"defaults": {
"custom": {
"align": "auto",
"displayMode": "auto"
}
}
}
}
],
"time": {
"from": "now-24h",
"to": "now"
},
"refresh": "5m"
}
}