Update hivegrid-cloud reference to latest main

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
davidandClaude Fable 5 committed 2026-07-08 16:15:37 +02:00
1 parent e98d38e716
commit 7b21524c86
3781 files changed
+373484 -225607

No files matched your search

@@ -1,7 +1,7 @@
{
"uid": "boilerplate-ai-cost",
"title": "Boilerplate — AI Cost per Tenant",
"tags": ["boilerplate", "ai"],
"uid": "hivegrid-ai-cost",
"title": "HiveGrid — AI Cost per Tenant",
"tags": ["hivegrid", "ai"],
"timezone": "browser",
"schemaVersion": 39,
"refresh": "1m",
@@ -17,7 +17,7 @@
"refId": "A",
"expr": "topk(20, sum by (tenant_bucket) (increase(ai_tokens_consumed_total[24h])))",
"legendFormat": "{{tenant_bucket}}",
"datasource": { "uid": "boilerplate-prometheus", "type": "prometheus" }
"datasource": { "uid": "hivegrid-prometheus", "type": "prometheus" }
}
]
},
@@ -27,7 +27,7 @@
"title": "Tokens by provider (24h)",
"gridPos": { "h": 10, "w": 12, "x": 12, "y": 0 },
"targets": [
{ "refId": "A", "expr": "sum by (provider) (increase(ai_tokens_consumed_total[24h]))", "legendFormat": "{{provider}}", "datasource": { "uid": "boilerplate-prometheus", "type": "prometheus" } }
{ "refId": "A", "expr": "sum by (provider) (increase(ai_tokens_consumed_total[24h]))", "legendFormat": "{{provider}}", "datasource": { "uid": "hivegrid-prometheus", "type": "prometheus" } }
]
},
{
@@ -36,7 +36,7 @@
"title": "Daily token-consumption trend (per model)",
"gridPos": { "h": 10, "w": 24, "x": 0, "y": 10 },
"targets": [
{ "refId": "A", "expr": "sum by (model) (rate(ai_tokens_consumed_total[1h]))", "legendFormat": "{{model}}", "datasource": { "uid": "boilerplate-prometheus", "type": "prometheus" } }
{ "refId": "A", "expr": "sum by (model) (rate(ai_tokens_consumed_total[1h]))", "legendFormat": "{{model}}", "datasource": { "uid": "hivegrid-prometheus", "type": "prometheus" } }
]
},
{
@@ -45,7 +45,7 @@
"title": "Cardinality of tenant_bucket (should stay ≤ 101)",
"gridPos": { "h": 4, "w": 6, "x": 0, "y": 20 },
"targets": [
{ "refId": "A", "expr": "count(count by (tenant_bucket) (ai_tokens_consumed_total))", "datasource": { "uid": "boilerplate-prometheus", "type": "prometheus" } }
{ "refId": "A", "expr": "count(count by (tenant_bucket) (ai_tokens_consumed_total))", "datasource": { "uid": "hivegrid-prometheus", "type": "prometheus" } }
],
"fieldConfig": { "defaults": { "thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }, { "color": "yellow", "value": 80 }, { "color": "red", "value": 101 }] } } }
}
@@ -1,7 +1,7 @@
{
"uid": "boilerplate-api-latency",
"title": "Boilerplate — API Latency",
"tags": ["boilerplate", "api"],
"uid": "hivegrid-api-latency",
"title": "HiveGrid — API Latency",
"tags": ["hivegrid", "api"],
"timezone": "browser",
"schemaVersion": 39,
"refresh": "30s",
@@ -13,9 +13,9 @@
"title": "p50 / p95 / p99 (s) per route",
"gridPos": { "h": 10, "w": 24, "x": 0, "y": 0 },
"targets": [
{ "refId": "A", "expr": "histogram_quantile(0.50, sum by (le, route) (rate(http_request_duration_seconds_bucket{service=\"api\"}[5m])))", "legendFormat": "p50 {{route}}", "datasource": { "uid": "boilerplate-prometheus", "type": "prometheus" } },
{ "refId": "B", "expr": "histogram_quantile(0.95, sum by (le, route) (rate(http_request_duration_seconds_bucket{service=\"api\"}[5m])))", "legendFormat": "p95 {{route}}", "datasource": { "uid": "boilerplate-prometheus", "type": "prometheus" } },
{ "refId": "C", "expr": "histogram_quantile(0.99, sum by (le, route) (rate(http_request_duration_seconds_bucket{service=\"api\"}[5m])))", "legendFormat": "p99 {{route}}", "datasource": { "uid": "boilerplate-prometheus", "type": "prometheus" } }
{ "refId": "A", "expr": "histogram_quantile(0.50, sum by (le, route) (rate(http_request_duration_seconds_bucket{service=\"api\"}[5m])))", "legendFormat": "p50 {{route}}", "datasource": { "uid": "hivegrid-prometheus", "type": "prometheus" } },
{ "refId": "B", "expr": "histogram_quantile(0.95, sum by (le, route) (rate(http_request_duration_seconds_bucket{service=\"api\"}[5m])))", "legendFormat": "p95 {{route}}", "datasource": { "uid": "hivegrid-prometheus", "type": "prometheus" } },
{ "refId": "C", "expr": "histogram_quantile(0.99, sum by (le, route) (rate(http_request_duration_seconds_bucket{service=\"api\"}[5m])))", "legendFormat": "p99 {{route}}", "datasource": { "uid": "hivegrid-prometheus", "type": "prometheus" } }
],
"fieldConfig": { "defaults": { "unit": "s" } }
},
@@ -25,7 +25,7 @@
"title": "Request rate per route",
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 10 },
"targets": [
{ "refId": "A", "expr": "sum by (route) (rate(http_requests_total{service=\"api\"}[1m]))", "legendFormat": "{{route}}", "datasource": { "uid": "boilerplate-prometheus", "type": "prometheus" } }
{ "refId": "A", "expr": "sum by (route) (rate(http_requests_total{service=\"api\"}[1m]))", "legendFormat": "{{route}}", "datasource": { "uid": "hivegrid-prometheus", "type": "prometheus" } }
]
},
{
@@ -34,7 +34,7 @@
"title": "Status-code distribution",
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 10 },
"targets": [
{ "refId": "A", "expr": "sum by (status) (rate(http_requests_total{service=\"api\"}[1m]))", "legendFormat": "{{status}}", "datasource": { "uid": "boilerplate-prometheus", "type": "prometheus" } }
{ "refId": "A", "expr": "sum by (status) (rate(http_requests_total{service=\"api\"}[1m]))", "legendFormat": "{{status}}", "datasource": { "uid": "hivegrid-prometheus", "type": "prometheus" } }
]
}
]
@@ -1,7 +1,7 @@
{
"uid": "boilerplate-business-kpi",
"title": "Boilerplate — Business KPIs",
"tags": ["boilerplate", "business"],
"uid": "hivegrid-business-kpi",
"title": "HiveGrid — Business KPIs",
"tags": ["hivegrid", "business"],
"timezone": "browser",
"schemaVersion": 39,
"refresh": "1m",
@@ -13,7 +13,7 @@
"title": "Active tenants",
"gridPos": { "h": 4, "w": 6, "x": 0, "y": 0 },
"targets": [
{ "refId": "A", "expr": "active_tenants", "datasource": { "uid": "boilerplate-prometheus", "type": "prometheus" } }
{ "refId": "A", "expr": "active_tenants", "datasource": { "uid": "hivegrid-prometheus", "type": "prometheus" } }
]
},
{
@@ -22,16 +22,16 @@
"title": "Active users (24h)",
"gridPos": { "h": 4, "w": 6, "x": 6, "y": 0 },
"targets": [
{ "refId": "A", "expr": "active_users_24h", "datasource": { "uid": "boilerplate-prometheus", "type": "prometheus" } }
{ "refId": "A", "expr": "active_users_24h", "datasource": { "uid": "hivegrid-prometheus", "type": "prometheus" } }
]
},
{
"id": 3,
"type": "timeseries",
"title": "Stripe webhook events / min by type",
"title": "Billing webhook events / min by type",
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 4 },
"targets": [
{ "refId": "A", "expr": "sum by (event_type) (rate(stripe_webhook_events_total[5m]))", "legendFormat": "{{event_type}}", "datasource": { "uid": "boilerplate-prometheus", "type": "prometheus" } }
{ "refId": "A", "expr": "sum by (event_type) (rate(billing_provider_webhook_events_total[5m]))", "legendFormat": "{{event_type}}", "datasource": { "uid": "hivegrid-prometheus", "type": "prometheus" } }
]
},
{
@@ -40,7 +40,7 @@
"title": "Mail delivery rate by status",
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 4 },
"targets": [
{ "refId": "A", "expr": "sum by (status) (rate(mail_sent_total[5m]))", "legendFormat": "{{status}}", "datasource": { "uid": "boilerplate-prometheus", "type": "prometheus" } }
{ "refId": "A", "expr": "sum by (status) (rate(mail_sent_total[5m]))", "legendFormat": "{{status}}", "datasource": { "uid": "hivegrid-prometheus", "type": "prometheus" } }
]
},
{
@@ -49,7 +49,7 @@
"title": "Outbound webhook attempts by status",
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 12 },
"targets": [
{ "refId": "A", "expr": "sum by (status) (rate(webhook_delivery_attempts_total[5m]))", "legendFormat": "{{status}}", "datasource": { "uid": "boilerplate-prometheus", "type": "prometheus" } }
{ "refId": "A", "expr": "sum by (status) (rate(webhook_delivery_attempts_total[5m]))", "legendFormat": "{{status}}", "datasource": { "uid": "hivegrid-prometheus", "type": "prometheus" } }
]
},
{
@@ -58,7 +58,7 @@
"title": "Active subscriptions by plan",
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 12 },
"targets": [
{ "refId": "A", "expr": "subscription_active", "legendFormat": "{{plan_id}}", "datasource": { "uid": "boilerplate-prometheus", "type": "prometheus" } }
{ "refId": "A", "expr": "subscription_active", "legendFormat": "{{plan_id}}", "datasource": { "uid": "hivegrid-prometheus", "type": "prometheus" } }
]
}
]
@@ -1,7 +1,7 @@
{
"uid": "boilerplate-overview",
"title": "Boilerplate — Overview",
"tags": ["boilerplate", "overview"],
"uid": "hivegrid-overview",
"title": "HiveGrid — Overview",
"tags": ["hivegrid", "overview"],
"timezone": "browser",
"schemaVersion": 39,
"refresh": "30s",
@@ -13,7 +13,7 @@
"title": "Services up",
"gridPos": { "h": 4, "w": 6, "x": 0, "y": 0 },
"targets": [
{ "refId": "A", "expr": "count(up{job=~\"boilerplate-.*\"} == 1)", "datasource": { "uid": "boilerplate-prometheus", "type": "prometheus" } }
{ "refId": "A", "expr": "count(up{job=~\"hivegrid-.*\"} == 1)", "datasource": { "uid": "hivegrid-prometheus", "type": "prometheus" } }
],
"fieldConfig": { "defaults": { "mappings": [], "thresholds": { "mode": "absolute", "steps": [{ "color": "red", "value": null }, { "color": "green", "value": 3 }] } } }
},
@@ -23,7 +23,7 @@
"title": "HTTP request rate (per service)",
"gridPos": { "h": 8, "w": 12, "x": 6, "y": 0 },
"targets": [
{ "refId": "A", "expr": "sum by (service) (rate(http_requests_total[1m]))", "legendFormat": "{{service}}", "datasource": { "uid": "boilerplate-prometheus", "type": "prometheus" } }
{ "refId": "A", "expr": "sum by (service) (rate(http_requests_total[1m]))", "legendFormat": "{{service}}", "datasource": { "uid": "hivegrid-prometheus", "type": "prometheus" } }
]
},
{
@@ -36,7 +36,7 @@
"refId": "A",
"expr": "sum by (service) (rate(http_requests_total{status=~\"5..\"}[5m])) / clamp_min(sum by (service) (rate(http_requests_total[5m])), 0.001)",
"legendFormat": "{{service}}",
"datasource": { "uid": "boilerplate-prometheus", "type": "prometheus" }
"datasource": { "uid": "hivegrid-prometheus", "type": "prometheus" }
}
],
"fieldConfig": { "defaults": { "unit": "percentunit", "max": 0.5 } }
@@ -51,7 +51,7 @@
"refId": "A",
"expr": "histogram_quantile(0.95, sum by (le, service) (rate(http_request_duration_seconds_bucket[5m])))",
"legendFormat": "{{service}}",
"datasource": { "uid": "boilerplate-prometheus", "type": "prometheus" }
"datasource": { "uid": "hivegrid-prometheus", "type": "prometheus" }
}
],
"fieldConfig": { "defaults": { "unit": "s" } }
@@ -1,7 +1,7 @@
{
"uid": "boilerplate-queue-health",
"title": "Boilerplate — Queue Health",
"tags": ["boilerplate", "queue"],
"uid": "hivegrid-queue-health",
"title": "HiveGrid — Queue Health",
"tags": ["hivegrid", "queue"],
"timezone": "browser",
"schemaVersion": 39,
"refresh": "30s",
@@ -13,7 +13,7 @@
"title": "Active jobs (gauge) per queue",
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 },
"targets": [
{ "refId": "A", "expr": "queue_jobs_active", "legendFormat": "{{queue}}", "datasource": { "uid": "boilerplate-prometheus", "type": "prometheus" } }
{ "refId": "A", "expr": "queue_jobs_active", "legendFormat": "{{queue}}", "datasource": { "uid": "hivegrid-prometheus", "type": "prometheus" } }
]
},
{
@@ -22,7 +22,7 @@
"title": "Waiting jobs (gauge) per queue",
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 },
"targets": [
{ "refId": "A", "expr": "queue_jobs_waiting", "legendFormat": "{{queue}}", "datasource": { "uid": "boilerplate-prometheus", "type": "prometheus" } }
{ "refId": "A", "expr": "queue_jobs_waiting", "legendFormat": "{{queue}}", "datasource": { "uid": "hivegrid-prometheus", "type": "prometheus" } }
]
},
{
@@ -31,7 +31,7 @@
"title": "Completed rate per queue",
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 8 },
"targets": [
{ "refId": "A", "expr": "sum by (queue) (rate(queue_jobs_completed_total[5m]))", "legendFormat": "{{queue}}", "datasource": { "uid": "boilerplate-prometheus", "type": "prometheus" } }
{ "refId": "A", "expr": "sum by (queue) (rate(queue_jobs_completed_total[5m]))", "legendFormat": "{{queue}}", "datasource": { "uid": "hivegrid-prometheus", "type": "prometheus" } }
]
},
{
@@ -40,7 +40,7 @@
"title": "Failed rate per queue (by error_type)",
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 8 },
"targets": [
{ "refId": "A", "expr": "sum by (queue, error_type) (rate(queue_jobs_failed_total[5m]))", "legendFormat": "{{queue}} / {{error_type}}", "datasource": { "uid": "boilerplate-prometheus", "type": "prometheus" } }
{ "refId": "A", "expr": "sum by (queue, error_type) (rate(queue_jobs_failed_total[5m]))", "legendFormat": "{{queue}} / {{error_type}}", "datasource": { "uid": "hivegrid-prometheus", "type": "prometheus" } }
]
},
{
@@ -49,7 +49,7 @@
"title": "Job duration heatmap",
"gridPos": { "h": 10, "w": 24, "x": 0, "y": 16 },
"targets": [
{ "refId": "A", "expr": "sum by (le) (rate(queue_job_duration_seconds_bucket[5m]))", "format": "heatmap", "datasource": { "uid": "boilerplate-prometheus", "type": "prometheus" } }
{ "refId": "A", "expr": "sum by (le) (rate(queue_job_duration_seconds_bucket[5m]))", "format": "heatmap", "datasource": { "uid": "hivegrid-prometheus", "type": "prometheus" } }
]
}
]
@@ -1,4 +1,4 @@
# Grafana stack for the boilerplate.
# Grafana stack for HiveGrid.
#
# Deploys alongside Prometheus on the Hetzner observability box. Joins the
# same docker network so Grafana can reach Prometheus via DNS
@@ -7,7 +7,7 @@
services:
grafana:
image: grafana/grafana-oss:11.4.0
container_name: boilerplate-grafana
container_name: hivegrid-grafana
restart: unless-stopped
user: "472:472"
environment:
@@ -17,7 +17,7 @@ services:
# Disable anonymous access — Business / per-tenant data lives in here.
GF_AUTH_ANONYMOUS_ENABLED: "false"
GF_AUTH_DISABLE_LOGIN_FORM: "false"
GF_SERVER_ROOT_URL: ${GRAFANA_ROOT_URL:-https://grafana.boiler.saas-ctrl.com}
GF_SERVER_ROOT_URL: ${GRAFANA_ROOT_URL:-https://grafana.saas-ctrl.com}
# Prometheus token used by the provisioned datasource. The yaml
# references it via env interpolation.
GRAFANA_PROMETHEUS_TOKEN: ${GRAFANA_PROMETHEUS_TOKEN:?GRAFANA_PROMETHEUS_TOKEN must be set}
@@ -42,9 +42,9 @@ services:
networks:
observability:
name: boilerplate-observability
name: hivegrid-observability
external: true
volumes:
grafana-data:
name: boilerplate-grafana-data
name: hivegrid-grafana-data
@@ -1,9 +1,9 @@
apiVersion: 1
providers:
- name: boilerplate
- name: hivegrid
orgId: 1
folder: Boilerplate
folder: HiveGrid
type: file
disableDeletion: true
updateIntervalSeconds: 30
@@ -3,7 +3,7 @@ apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
uid: boilerplate-prometheus
uid: hivegrid-prometheus
access: proxy
url: http://prometheus:9090
isDefault: true