ワンクリックで
observability-metrics
Operate and validate mjr.wtf observability endpoints (/health, /metrics) and logging-related behavior. Use when adding metrics, changing auth around metrics, or debugging production-like issues.
メニュー
Operate and validate mjr.wtf observability endpoints (/health, /metrics) and logging-related behavior. Use when adding metrics, changing auth around metrics, or debugging production-like issues.
Run mjr.wtf locally using Docker Compose (SQLite), including migrations, logs, and teardown.
Apply project-specific security and privacy guardrails (auth, headers, rate limiting, logging). Use when touching authentication, request handling, metrics exposure, or anything that could leak sensitive data.
Run, debug, and structure tests for this Go project (unit + integration), including generation prerequisites. Use when changing domain logic, repositories, HTTP handlers, or migrations.
Run and extend the end-to-end HTTP integration tests (SQLite in-memory) for mjr.wtf, covering auth, create/list/delete, redirects, and analytics. Use when changing handlers, middleware, or API contracts.
Run and troubleshoot project code generation (sqlc + templ).
Configure mjr.wtf safely via environment variables and .env files.
| name | observability-metrics |
| description | Operate and validate mjr.wtf observability endpoints (/health, /metrics) and logging-related behavior. Use when adding metrics, changing auth around metrics, or debugging production-like issues. |
| license | MIT |
| compatibility | Requires bash and curl; server must be running. |
| metadata | {"repo":"mjrwtf","runner":"github-copilot-cli","version":1.2} |
| allowed-tools | Bash(git:*) Bash(curl:*) Bash(make:*) Bash(go:*) Read |
make targets when available; fall back to direct CLI commands when needed.GET /health (public): readiness/liveness check.GET /metrics (Prometheus): may be optionally protected.curl -i http://localhost:8080/health
curl -i http://localhost:8080/metrics
If metrics auth is enabled:
# Use any token from AUTH_TOKENS
curl -i -H "Authorization: Bearer $YOUR_TOKEN" http://localhost:8080/metrics
Treat /metrics as potentially sensitive (rates, error counts, operational info). Enable protection in production with METRICS_AUTH_ENABLED=true or restrict via reverse proxy.