Prometheus /metrics

Is prometheus metrics https://caddyserver.com/docs/prometheus access url hardcoded to /metrics or can we customise where to look instead of /metrics use /ourcustompath ?

the doc example doesn’t make it clear ?

i tried

 prometheus localhost:2828

and get

curl -Ik https://localhost:2828/metrics  
curl: (35) SSL received a record that exceeded the maximum permissible length.

plugins

caddy -plugins
Server types:
  http

Caddyfile loaders:
  short
  flag
  default

Other plugins:
  http.basicauth
  http.bind
  http.browse
  http.errors
  http.expvar
  http.ext
  http.fastcgi
  http.filemanager
  http.git
  http.gzip
  http.header
  http.hugo
  http.internal
  http.ipfilter
  http.locale
  http.log
  http.mailout
  http.markdown
  http.mime
  http.minify
  http.pprof
  http.prometheus
  http.proxy
  http.ratelimit
  http.realip
  http.redir
  http.rewrite
  http.root
  http.search
  http.templates
  http.websocket
  shutdown
  startup
  tls
  tls.dns.cloudflare
  tls.dns.digitalocean
  tls.dns.googlecloud
  tls.dns.namecheap
  tls.dns.route53
  tls.dns.vultr

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.