Metrics
GET
/metrics
curl http://localhost:9027/metricsconst response = await fetch('http://localhost:9027/metrics');if (!response.ok) throw new Error(await response.text());console.log(await response.text());import requests
response = requests.get("http://localhost:9027/metrics")response.raise_for_status()print(response.text)package main
import ( "io" "log" "net/http" "os")
func main() { response, err := http.Get("http://localhost:9027/metrics") if err != nil { log.Fatal(err) } defer response.Body.Close() if response.StatusCode >= 300 { message, _ := io.ReadAll(response.Body) log.Fatalf("%s: %s", response.Status, message) } if _, err := io.Copy(os.Stdout, response.Body); err != nil { log.Fatal(err) }}Prometheus text format. With credentials configured it needs them too, unless
RUSTICDOC_METRICS_PUBLIC is set.
Responses
Section titled “Responses”Prometheus text format
Media typetext/plain