The forge restarted (new forgejo PID at 12:36), so it re-read [metrics] and gitea_issues_by_label now exists -- 24 series carrying real label names, read back out of the store rather than inferred from the metric name appearing in a label-values list. The panel shipped deliberately empty with EMPTY UNTIL THE FORGE RESTARTS in its title and a matching noValue, because an empty graph and an undeployed metric look identical. That warning is now false, and a stale warning is worse than none: it tells a reader the panel cannot have data at the moment it does. Keeps the operational half rather than deleting it -- the restart requirement is a fact about the NEXT metric someone enables, so it moves into the description as a note and into noValue, where it fires only when the series really is missing.
418 lines
15 KiB
JSON
418 lines
15 KiB
JSON
{
|
|
"title": "hyperhive · forge (content)",
|
|
"uid": "hyperhive-swarm-forge",
|
|
"description": "An INVENTORY board, not a service-health board — and the difference is the first thing to know about it. Its three siblings (metrics store, log store, authelia) answer 'is this service healthy': request rates, error rates, latency. Forgejo's exporter publishes no such series; what it publishes is a census of what the forge CONTAINS. So every number here is a gauge of stored things, sampled at scrape time. Nothing on this board can tell you the forge is slow or erroring, and a flat line means nobody created anything, not that scraping stopped — check the metrics-store board for that. Series are labelled service.name, NOT job; there is no job label in this store.",
|
|
"editable": true,
|
|
"refresh": "5m",
|
|
"schemaVersion": 39,
|
|
"tags": ["hyperhive", "swarm", "forge", "content"],
|
|
"time": { "from": "now-7d", "to": "now" },
|
|
"timezone": "utc",
|
|
"version": 1,
|
|
"templating": { "list": [] },
|
|
"panels": [
|
|
{
|
|
"id": 1,
|
|
"type": "stat",
|
|
"title": "Repositories",
|
|
"description": "Every repo the forge holds, including agent config repos — which is most of them on a busy hive, so this tracks agent count more closely than it tracks project count.",
|
|
"datasource": { "type": "prometheus", "uid": "@datasourceUid@" },
|
|
"gridPos": { "h": 4, "w": 4, "x": 0, "y": 0 },
|
|
"targets": [
|
|
{
|
|
"refId": "A",
|
|
"datasource": { "type": "prometheus", "uid": "@datasourceUid@" },
|
|
"expr": "gitea_repositories",
|
|
"instant": true,
|
|
"legendFormat": "repos"
|
|
}
|
|
],
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "short",
|
|
"decimals": 0,
|
|
"color": { "mode": "fixed", "fixedColor": "text" },
|
|
"mappings": []
|
|
},
|
|
"overrides": []
|
|
},
|
|
"options": {
|
|
"graphMode": "none",
|
|
"colorMode": "value",
|
|
"textMode": "value",
|
|
"justifyMode": "auto",
|
|
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }
|
|
}
|
|
},
|
|
{
|
|
"id": 2,
|
|
"type": "stat",
|
|
"title": "Users",
|
|
"description": "Forge accounts. Agents hold one each, so this is operators plus the live agent roster — a drop without a matching agent teardown is worth a look.",
|
|
"datasource": { "type": "prometheus", "uid": "@datasourceUid@" },
|
|
"gridPos": { "h": 4, "w": 4, "x": 4, "y": 0 },
|
|
"targets": [
|
|
{
|
|
"refId": "A",
|
|
"datasource": { "type": "prometheus", "uid": "@datasourceUid@" },
|
|
"expr": "gitea_users",
|
|
"instant": true,
|
|
"legendFormat": "users"
|
|
}
|
|
],
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "short",
|
|
"decimals": 0,
|
|
"color": { "mode": "fixed", "fixedColor": "text" },
|
|
"mappings": []
|
|
},
|
|
"overrides": []
|
|
},
|
|
"options": {
|
|
"graphMode": "none",
|
|
"colorMode": "value",
|
|
"textMode": "value",
|
|
"justifyMode": "auto",
|
|
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }
|
|
}
|
|
},
|
|
{
|
|
"id": 3,
|
|
"type": "stat",
|
|
"title": "Organizations",
|
|
"description": "Orgs, which is how the forge separates agent-owned repos from the shared ones. Near-constant by design; a change here is a structural decision someone made, not activity.",
|
|
"datasource": { "type": "prometheus", "uid": "@datasourceUid@" },
|
|
"gridPos": { "h": 4, "w": 4, "x": 8, "y": 0 },
|
|
"targets": [
|
|
{
|
|
"refId": "A",
|
|
"datasource": { "type": "prometheus", "uid": "@datasourceUid@" },
|
|
"expr": "gitea_organizations",
|
|
"instant": true,
|
|
"legendFormat": "orgs"
|
|
}
|
|
],
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "short",
|
|
"decimals": 0,
|
|
"color": { "mode": "fixed", "fixedColor": "text" },
|
|
"mappings": []
|
|
},
|
|
"overrides": []
|
|
},
|
|
"options": {
|
|
"graphMode": "none",
|
|
"colorMode": "value",
|
|
"textMode": "value",
|
|
"justifyMode": "auto",
|
|
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }
|
|
}
|
|
},
|
|
{
|
|
"id": 4,
|
|
"type": "stat",
|
|
"title": "Issues open",
|
|
"description": "Open issues across every repo. The one number on this board that behaves like a backlog gauge — rising means work is being filed faster than it is closed.",
|
|
"datasource": { "type": "prometheus", "uid": "@datasourceUid@" },
|
|
"gridPos": { "h": 4, "w": 4, "x": 12, "y": 0 },
|
|
"targets": [
|
|
{
|
|
"refId": "A",
|
|
"datasource": { "type": "prometheus", "uid": "@datasourceUid@" },
|
|
"expr": "gitea_issues_open",
|
|
"instant": true,
|
|
"legendFormat": "open"
|
|
}
|
|
],
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "short",
|
|
"decimals": 0,
|
|
"color": { "mode": "fixed", "fixedColor": "text" },
|
|
"mappings": []
|
|
},
|
|
"overrides": []
|
|
},
|
|
"options": {
|
|
"graphMode": "none",
|
|
"colorMode": "value",
|
|
"textMode": "value",
|
|
"justifyMode": "auto",
|
|
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }
|
|
}
|
|
},
|
|
{
|
|
"id": 5,
|
|
"type": "stat",
|
|
"title": "Issues closed",
|
|
"description": "Cumulative closed issues. Only ever rises, so read it as throughput-to-date rather than as a current state.",
|
|
"datasource": { "type": "prometheus", "uid": "@datasourceUid@" },
|
|
"gridPos": { "h": 4, "w": 4, "x": 16, "y": 0 },
|
|
"targets": [
|
|
{
|
|
"refId": "A",
|
|
"datasource": { "type": "prometheus", "uid": "@datasourceUid@" },
|
|
"expr": "gitea_issues_closed",
|
|
"instant": true,
|
|
"legendFormat": "closed"
|
|
}
|
|
],
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "short",
|
|
"decimals": 0,
|
|
"color": { "mode": "fixed", "fixedColor": "text" },
|
|
"mappings": []
|
|
},
|
|
"overrides": []
|
|
},
|
|
"options": {
|
|
"graphMode": "none",
|
|
"colorMode": "value",
|
|
"textMode": "value",
|
|
"justifyMode": "auto",
|
|
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }
|
|
}
|
|
},
|
|
{
|
|
"id": 6,
|
|
"type": "stat",
|
|
"title": "Releases",
|
|
"description": "Tagged releases. Expected to sit at zero on a hive that ships from main — a non-zero value here means someone started cutting them, which is a change worth noticing.",
|
|
"datasource": { "type": "prometheus", "uid": "@datasourceUid@" },
|
|
"gridPos": { "h": 4, "w": 4, "x": 20, "y": 0 },
|
|
"targets": [
|
|
{
|
|
"refId": "A",
|
|
"datasource": { "type": "prometheus", "uid": "@datasourceUid@" },
|
|
"expr": "gitea_releases",
|
|
"instant": true,
|
|
"legendFormat": "releases"
|
|
}
|
|
],
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "short",
|
|
"decimals": 0,
|
|
"color": { "mode": "fixed", "fixedColor": "text" },
|
|
"mappings": []
|
|
},
|
|
"overrides": []
|
|
},
|
|
"options": {
|
|
"graphMode": "none",
|
|
"colorMode": "value",
|
|
"textMode": "value",
|
|
"justifyMode": "auto",
|
|
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }
|
|
}
|
|
},
|
|
{
|
|
"id": 10,
|
|
"type": "timeseries",
|
|
"title": "Issues: open vs closed",
|
|
"description": "The two together, because either alone misleads. Open flat while closed climbs is a backlog being worked down; both climbing together is a backlog growing while work happens. A vertical step in closed is usually a bulk triage, not a productive afternoon.",
|
|
"datasource": { "type": "prometheus", "uid": "@datasourceUid@" },
|
|
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 4 },
|
|
"targets": [
|
|
{
|
|
"refId": "A",
|
|
"datasource": { "type": "prometheus", "uid": "@datasourceUid@" },
|
|
"expr": "gitea_issues_open",
|
|
"legendFormat": "open"
|
|
},
|
|
{
|
|
"refId": "B",
|
|
"datasource": { "type": "prometheus", "uid": "@datasourceUid@" },
|
|
"expr": "gitea_issues_closed",
|
|
"legendFormat": "closed"
|
|
}
|
|
],
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "short",
|
|
"decimals": 0,
|
|
"color": { "mode": "palette-classic" },
|
|
"custom": {
|
|
"drawStyle": "line",
|
|
"lineWidth": 1,
|
|
"fillOpacity": 10,
|
|
"showPoints": "never",
|
|
"spanNulls": false,
|
|
"axisSoftMin": 0
|
|
}
|
|
},
|
|
"overrides": []
|
|
},
|
|
"options": {
|
|
"legend": { "displayMode": "list", "placement": "bottom", "showLegend": true, "calcs": [] },
|
|
"tooltip": { "mode": "multi", "sort": "desc" }
|
|
}
|
|
},
|
|
{
|
|
"id": 11,
|
|
"type": "timeseries",
|
|
"title": "Repositories and users",
|
|
"description": "Both climb when an agent is created — a config repo and an account arrive together. So the interesting reading is when they DIVERGE: repos without users means repos created by hand, users without repos means accounts provisioned for something that never got one.",
|
|
"datasource": { "type": "prometheus", "uid": "@datasourceUid@" },
|
|
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 4 },
|
|
"targets": [
|
|
{
|
|
"refId": "A",
|
|
"datasource": { "type": "prometheus", "uid": "@datasourceUid@" },
|
|
"expr": "gitea_repositories",
|
|
"legendFormat": "repos"
|
|
},
|
|
{
|
|
"refId": "B",
|
|
"datasource": { "type": "prometheus", "uid": "@datasourceUid@" },
|
|
"expr": "gitea_users",
|
|
"legendFormat": "users"
|
|
}
|
|
],
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "short",
|
|
"decimals": 0,
|
|
"color": { "mode": "palette-classic" },
|
|
"custom": {
|
|
"drawStyle": "line",
|
|
"lineWidth": 1,
|
|
"fillOpacity": 0,
|
|
"showPoints": "never",
|
|
"spanNulls": false,
|
|
"axisSoftMin": 0
|
|
}
|
|
},
|
|
"overrides": []
|
|
},
|
|
"options": {
|
|
"legend": { "displayMode": "list", "placement": "bottom", "showLegend": true, "calcs": [] },
|
|
"tooltip": { "mode": "multi", "sort": "desc" }
|
|
}
|
|
},
|
|
{
|
|
"id": 20,
|
|
"type": "timeseries",
|
|
"title": "Discussion volume",
|
|
"description": "Comments and review comments across the forge. The closest thing here to an activity signal, and still a cumulative count rather than a rate — a steepening slope is more conversation, a flat stretch is a quiet period, and neither says anything about whether the forge is up.",
|
|
"datasource": { "type": "prometheus", "uid": "@datasourceUid@" },
|
|
"gridPos": { "h": 7, "w": 12, "x": 0, "y": 12 },
|
|
"targets": [
|
|
{
|
|
"refId": "A",
|
|
"datasource": { "type": "prometheus", "uid": "@datasourceUid@" },
|
|
"expr": "gitea_comments",
|
|
"legendFormat": "comments"
|
|
},
|
|
{
|
|
"refId": "B",
|
|
"datasource": { "type": "prometheus", "uid": "@datasourceUid@" },
|
|
"expr": "gitea_attachments",
|
|
"legendFormat": "attachments"
|
|
}
|
|
],
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "short",
|
|
"decimals": 0,
|
|
"color": { "mode": "palette-classic" },
|
|
"custom": {
|
|
"drawStyle": "line",
|
|
"lineWidth": 1,
|
|
"fillOpacity": 10,
|
|
"showPoints": "never",
|
|
"spanNulls": false,
|
|
"axisSoftMin": 0
|
|
}
|
|
},
|
|
"overrides": []
|
|
},
|
|
"options": {
|
|
"legend": { "displayMode": "list", "placement": "bottom", "showLegend": true, "calcs": [] },
|
|
"tooltip": { "mode": "multi", "sort": "desc" }
|
|
}
|
|
},
|
|
{
|
|
"id": 21,
|
|
"type": "timeseries",
|
|
"title": "Automation surface",
|
|
"description": "Webhooks and their queued delivery tasks. Worth a glance when something that should have triggered did not: a hooktask count that climbs and never settles is deliveries backing up, and every hive registering the same webhook has bitten this forge before.",
|
|
"datasource": { "type": "prometheus", "uid": "@datasourceUid@" },
|
|
"gridPos": { "h": 7, "w": 12, "x": 12, "y": 12 },
|
|
"targets": [
|
|
{
|
|
"refId": "A",
|
|
"datasource": { "type": "prometheus", "uid": "@datasourceUid@" },
|
|
"expr": "gitea_webhooks",
|
|
"legendFormat": "webhooks"
|
|
},
|
|
{
|
|
"refId": "B",
|
|
"datasource": { "type": "prometheus", "uid": "@datasourceUid@" },
|
|
"expr": "gitea_hooktasks",
|
|
"legendFormat": "hooktasks"
|
|
}
|
|
],
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "short",
|
|
"decimals": 0,
|
|
"color": { "mode": "palette-classic" },
|
|
"custom": {
|
|
"drawStyle": "line",
|
|
"lineWidth": 1,
|
|
"fillOpacity": 0,
|
|
"showPoints": "never",
|
|
"spanNulls": false,
|
|
"axisSoftMin": 0
|
|
}
|
|
},
|
|
"overrides": []
|
|
},
|
|
"options": {
|
|
"legend": { "displayMode": "list", "placement": "bottom", "showLegend": true, "calcs": [] },
|
|
"tooltip": { "mode": "multi", "sort": "desc" }
|
|
}
|
|
},
|
|
{
|
|
"id": 30,
|
|
"type": "timeseries",
|
|
"title": "Open issues by label",
|
|
"description": "Per-label backlog. Like every panel on this board it is an INVENTORY gauge: it says how many open issues carry each label right now, never how fast they arrive or close. A flat line is a real reading, not a broken scrape. Note for whoever enables the next forge metric: forgejo reads its [metrics] section at STARTUP, so a newly enabled series does not exist until that process restarts — a config merge alone does not do it, and an absent series says absent without ever saying why. Check the process, not the metric.",
|
|
"datasource": { "type": "prometheus", "uid": "@datasourceUid@" },
|
|
"gridPos": { "h": 7, "w": 24, "x": 0, "y": 19 },
|
|
"targets": [
|
|
{
|
|
"refId": "A",
|
|
"datasource": { "type": "prometheus", "uid": "@datasourceUid@" },
|
|
"expr": "gitea_issues_by_label",
|
|
"legendFormat": "{{label}}"
|
|
}
|
|
],
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "short",
|
|
"decimals": 0,
|
|
"color": { "mode": "palette-classic" },
|
|
"custom": {
|
|
"drawStyle": "line",
|
|
"lineWidth": 1,
|
|
"fillOpacity": 0,
|
|
"showPoints": "never",
|
|
"spanNulls": false,
|
|
"axisSoftMin": 0
|
|
},
|
|
"noValue": "no series — check whether the forgejo process restarted since [metrics] last changed; an absent series never says why it is absent"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"options": {
|
|
"legend": { "displayMode": "list", "placement": "bottom", "showLegend": true, "calcs": [] },
|
|
"tooltip": { "mode": "multi", "sort": "desc" }
|
|
}
|
|
}
|
|
]
|
|
}
|