Skip to content

Commit 7a1f60f

Browse files
committed
Redirect openmetrics.io domain to om dir
Signed-off-by: bwplotka <[email protected]>
1 parent 4a5230e commit 7a1f60f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

public/_redirects

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@
2626
/docs/specs/remote_write_spec /docs/specs/prw/remote_write_spec
2727
/docs/specs/remote_write_spec_2_0 /docs/specs/prw/remote_write_spec_2_0
2828

29-
# Per spec sub dirs should point the currently "latest" version.
30-
# E.g. https://openmetrics.io redirects to https://prometheus.io/docs/specs/om
29+
# Per spec sub dirs should point the currently "latest" version, for convenience.
3130
/docs/specs/om /docs/specs/om/open_metrics_spec
3231
/docs/specs/prw /docs/specs/prw/remote_write_spec_2_0
3332

33+
# Redirect our custom openmetrics domain to openmetrics spec.
34+
https://openmetrics.io/* /docs/specs/om/:splat 301!
35+
3436
# Redirect for HTTP SD docs, which briefly lived in the wrong category / repo.
3537
/docs/instrumenting/http_sd/ /docs/prometheus/latest/http_sd/
3638

0 commit comments

Comments
 (0)