watchdog/testdata/config.valid.yaml
NotAShelf 0691e5ee34
internal: implement path normalization w/ configurable rules
Strips query strings and URL fragmenets, prevents unbounded Prometheus
metrics by normalizing paths like:

- `/users/12345/profile -> /users/:id/profile`
- `/page?utm_source=twitter -> /page`
- `/a/../b -> /b`

etc.

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I72f2fa2452f4666567143d052b5716476a6a6964
2026-03-02 22:37:50 +03:00

26 lines
473 B
YAML

site:
domain: example.com
salt_rotation: daily
collect:
pageviews: true
country: true
device: true
referrer: classify
custom_events:
- signup
- purchase
path:
strip_query: true
strip_fragment: true
collapse_numeric_segments: true
max_segments: 5
normalize_trailing_slash: true
limits:
max_paths: 1000
max_events_per_minute: 10000
server:
listen_addr: :8080
metrics_path: /metrics
ingestion_path: /api/event