observability

command
v1.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

README

Observability: Prometheus + Grafana

Forge serves Prometheus metrics at /_/metrics.

Scrape with Prometheus

Use prometheus.yml (note metrics_path: /_/metrics, not the default /metrics).

Kubernetes (Prometheus Operator)

Apply servicemonitor.yaml (adjust the selector to match your Service labels).

Grafana

Import grafana-dashboard.json and pick your Prometheus data source. It includes HTTP RED panels and Go runtime panels (go_*, process_*).

Metric naming

Forge application metrics (HTTP request counts, latencies, etc.) are emitted under the forge_ namespace prefix — e.g. forge_http_requests_total, forge_http_request_duration_bucket. The namespace is configurable via metrics.collection.namespace in your Forge config.

Go runtime and process metrics (go_goroutines, go_memstats_*, process_cpu_seconds_total, etc.) use their standard unprefixed names; they come from the Go and Process collectors registered directly with the Prometheus registry.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL