Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
@@ -1,10 +1,12 @@
|
||||
# Prometheus — HiveGrid
|
||||
|
||||
Scrapes `/metrics` from the three HiveGrid apps every 15s.
|
||||
Scrapes the HiveGrid runtime metrics every 15s. The web core/admin process and
|
||||
the separately deployed portal process each have their own process-local
|
||||
registry and therefore their own scrape target.
|
||||
|
||||
## Files
|
||||
|
||||
- `prometheus.yml` — scrape jobs (api / worker / web)
|
||||
- `prometheus.yml` — scrape jobs (api / worker / web-core / web-portal)
|
||||
- `docker-compose.yml` — Coolify-friendly compose stack
|
||||
- `secrets/metrics_token` — bearer token (chmod 600, do NOT commit)
|
||||
|
||||
@@ -23,19 +25,27 @@ docker network create hivegrid-observability
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
Then expose `prometheus.saas-ctrl.com` via Coolify's proxy with
|
||||
**basic-auth or Cloudflare-Access** in front — Prometheus has no
|
||||
built-in auth and ships internal state.
|
||||
Prometheus is deliberately reachable only as `prometheus:9090` on the
|
||||
`hivegrid-observability` Docker network. It has no host-port binding and no
|
||||
lifecycle HTTP endpoint. Use Grafana for dashboards; temporary operator access
|
||||
must use an authenticated tunnel rather than public ingress.
|
||||
|
||||
## Verifying scrape targets
|
||||
|
||||
```sh
|
||||
curl -s -H "Authorization: Bearer $(cat secrets/metrics_token)" \
|
||||
https://api.hivegrid.de/metrics | head -20
|
||||
|
||||
curl -s -H "Authorization: Bearer $(cat secrets/metrics_token)" \
|
||||
https://app.hivegrid.de/api/metrics | head -20
|
||||
|
||||
curl -s -H "Authorization: Bearer $(cat secrets/metrics_token)" \
|
||||
https://portal.hivegrid.de/api/metrics | head -20
|
||||
```
|
||||
|
||||
The Prometheus UI at `https://prometheus.saas-ctrl.com/targets`
|
||||
should list all three jobs as **UP**.
|
||||
Through an authenticated operator tunnel, the Prometheus `/targets` view should
|
||||
list all four jobs as **UP**. Do not also scrape `admin.hivegrid.de`: admin and
|
||||
core share the same process-local registry, so doing so would double-count.
|
||||
|
||||
## Cardinality budget
|
||||
|
||||
|
||||
Reference in new issue
Block a user