mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-04 07:18:50 +00:00
Asked with Accept: text/plain or ?format=prometheus; every other request keeps the JSON. Latency histograms, a Grafana dashboard and scrape configs under docs/monitoring. Only the Prometheus part of #793; the pipelined-window slot allocator needs a 2-GPU check and is left out.
22 lines
578 B
YAML
22 lines
578 B
YAML
# Kubernetes (Prometheus Operator): Strata behind a Service whose port is named "http".
|
|
# The API key lives in a Secret (key "key"), sent as a bearer token.
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
name: strata
|
|
labels:
|
|
release: kube-prometheus-stack # whatever your Prometheus selects ServiceMonitors by
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: strata
|
|
endpoints:
|
|
- port: http
|
|
path: /metrics
|
|
interval: 15s
|
|
authorization:
|
|
type: Bearer
|
|
credentials:
|
|
name: strata-api-key
|
|
key: key
|