forked from praxis-proxy/praxis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin-interface.yaml
More file actions
42 lines (38 loc) · 1.11 KB
/
admin-interface.yaml
File metadata and controls
42 lines (38 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Admin Interface
#
# Exposes an admin endpoint for operational health checks,
# readiness probes, and Prometheus metrics. The admin listener
# is separate from data-plane traffic and serves:
#
# GET /healthy liveness probe (always 200)
# GET /ready readiness probe (checks upstream clusters)
# GET /metrics Prometheus text exposition format
#
# With `verbose: true`, the /ready response includes
# per-cluster health detail in the body.
#
# Usage:
# cargo run -p praxis -- -c examples/configs/operations/admin-interface.yaml
# curl http://localhost:9901/healthy # liveness
# curl http://localhost:9901/ready # readiness (verbose)
# curl http://localhost:9901/metrics # prometheus scrape
admin:
address: "127.0.0.1:9901"
verbose: true
listeners:
- name: default
address: "127.0.0.1:8080"
filter_chains:
- main
filter_chains:
- name: main
filters:
- filter: router
routes:
- path_prefix: "/"
cluster: backend
- filter: load_balancer
clusters:
- name: backend
endpoints:
- "127.0.0.1:3000"