Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
@@ -1,6 +1,6 @@
|
||||
# Prometheus — Boilerplate
|
||||
# Prometheus — HiveGrid
|
||||
|
||||
Scrapes `/metrics` from the three boilerplate apps every 15s.
|
||||
Scrapes `/metrics` from the three HiveGrid apps every 15s.
|
||||
|
||||
## Files
|
||||
|
||||
@@ -17,13 +17,13 @@ openssl rand -hex 32 > secrets/metrics_token
|
||||
chmod 600 secrets/metrics_token
|
||||
|
||||
# 2. Create the shared docker network (also used by Grafana)
|
||||
docker network create boilerplate-observability
|
||||
docker network create hivegrid-observability
|
||||
|
||||
# 3. Start the stack
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
Then expose `prometheus.boiler.saas-ctrl.com` via Coolify's proxy with
|
||||
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.
|
||||
|
||||
@@ -31,10 +31,10 @@ built-in auth and ships internal state.
|
||||
|
||||
```sh
|
||||
curl -s -H "Authorization: Bearer $(cat secrets/metrics_token)" \
|
||||
https://api.boiler.saas-ctrl.com/metrics | head -20
|
||||
https://api.hivegrid.de/metrics | head -20
|
||||
```
|
||||
|
||||
The Prometheus UI at `https://prometheus.boiler.saas-ctrl.com/targets`
|
||||
The Prometheus UI at `https://prometheus.saas-ctrl.com/targets`
|
||||
should list all three jobs as **UP**.
|
||||
|
||||
## Cardinality budget
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Prometheus stack for the boilerplate.
|
||||
# Prometheus stack for HiveGrid.
|
||||
#
|
||||
# Deploy as a Coolify "Docker Compose" service or with vanilla
|
||||
# `docker compose up -d` on the Hetzner observability box. The bind mount
|
||||
@@ -15,7 +15,7 @@
|
||||
services:
|
||||
prometheus:
|
||||
image: prom/prometheus:v3.6.0
|
||||
container_name: boilerplate-prometheus
|
||||
container_name: hivegrid-prometheus
|
||||
restart: unless-stopped
|
||||
user: "65534:65534"
|
||||
command:
|
||||
@@ -25,7 +25,7 @@ services:
|
||||
- --web.console.libraries=/usr/share/prometheus/console_libraries
|
||||
- --web.console.templates=/usr/share/prometheus/consoles
|
||||
- --web.enable-lifecycle
|
||||
- --web.external-url=https://prometheus.boiler.saas-ctrl.com
|
||||
- --web.external-url=https://prometheus.saas-ctrl.com
|
||||
volumes:
|
||||
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
|
||||
- ./secrets:/etc/prometheus/secrets:ro
|
||||
@@ -37,9 +37,9 @@ services:
|
||||
|
||||
networks:
|
||||
observability:
|
||||
name: boilerplate-observability
|
||||
name: hivegrid-observability
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
prometheus-data:
|
||||
name: boilerplate-prometheus-data
|
||||
name: hivegrid-prometheus-data
|
||||
@@ -1,4 +1,4 @@
|
||||
# Prometheus scrape configuration for the boilerplate.
|
||||
# Prometheus scrape configuration for HiveGrid.
|
||||
#
|
||||
# Scrapes the three application processes' /metrics endpoints with
|
||||
# bearer-token authentication. METRICS_TOKEN is injected via the
|
||||
@@ -17,22 +17,22 @@ global:
|
||||
scrape_timeout: 10s
|
||||
evaluation_interval: 15s
|
||||
external_labels:
|
||||
cluster: boilerplate
|
||||
cluster: hivegrid
|
||||
environment: staging
|
||||
|
||||
scrape_configs:
|
||||
- job_name: boilerplate-api
|
||||
- job_name: hivegrid-api
|
||||
metrics_path: /metrics
|
||||
scheme: https
|
||||
authorization:
|
||||
type: Bearer
|
||||
credentials_file: /etc/prometheus/secrets/metrics_token
|
||||
static_configs:
|
||||
- targets: ["api.boiler.saas-ctrl.com"]
|
||||
- targets: ["api.hivegrid.de"]
|
||||
labels:
|
||||
service: api
|
||||
|
||||
- job_name: boilerplate-worker
|
||||
- job_name: hivegrid-worker
|
||||
metrics_path: /metrics
|
||||
scheme: http
|
||||
authorization:
|
||||
@@ -48,7 +48,7 @@ scrape_configs:
|
||||
# and use the worker container's stable alias (in Coolify v4
|
||||
# the UUID-based generated name changes on every redeploy
|
||||
# so you must either add a docker-compose override that
|
||||
# sets `networks.<net>.aliases: [boilerplate-worker]` or
|
||||
# sets `networks.<net>.aliases: [hivegrid-worker]` or
|
||||
# use Coolify's "Internal-only" service feature).
|
||||
# (b) Expose the worker admin server through Traefik on a
|
||||
# dedicated hostname (e.g. worker-admin.<domain>) with a
|
||||
@@ -58,11 +58,11 @@ scrape_configs:
|
||||
# Until (a) or (b) is wired the worker job stays DOWN; api+web
|
||||
# cover the HTTP-side metrics, the per-queue queue_jobs_*
|
||||
# counters from the worker registry are not yet visible.
|
||||
- targets: ["worker.boilerplate.internal:9101"]
|
||||
- targets: ["worker.hivegrid.internal:9101"]
|
||||
labels:
|
||||
service: worker
|
||||
|
||||
- job_name: boilerplate-web
|
||||
- job_name: hivegrid-web
|
||||
metrics_path: /api/metrics
|
||||
scheme: https
|
||||
authorization:
|
||||
@@ -73,7 +73,7 @@ scrape_configs:
|
||||
# the admin host. Scraping the tenant-facing host returns 404 by
|
||||
# design. Use admin.<domain> for staging; in prod set to
|
||||
# admin.<prod-domain>.
|
||||
- targets: ["admin.boiler.saas-ctrl.com"]
|
||||
- targets: ["admin.hivegrid.de"]
|
||||
labels:
|
||||
service: web
|
||||
|
||||
|
||||
Reference in new issue
Block a user