Hi,
I´ve created an http include a module to support /monitoring/metrics endpoint that shows base /metris endpoint infromation
location /monitoring/metrics {
default_type text/plain;
content_by_lua_block {
local promethus = require “kong.plugins.prometheus.exporter”
promethus:collect()
}
}
but i have this error:
/current/conf/html/nginx_status" failed (2: No such file or directory), client: 127.0.0.1, server: kong_prometheus_exporter, request: “GET /monitoring/metrics HTTP/1.1”, subrequest: “/nginx_status”, host: “localhost:9103”