Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help request: apisix开启prometheus插件不生效 #11712

Open
shihuncl opened this issue Nov 5, 2024 · 1 comment
Open

help request: apisix开启prometheus插件不生效 #11712

shihuncl opened this issue Nov 5, 2024 · 1 comment
Labels
bug Something isn't working plugin

Comments

@shihuncl
Copy link

shihuncl commented Nov 5, 2024

Description

1.配置文件:
plugins:

  • prometheus

plugin_attr:
prometheus:
export_uri: /apisix/prometheus/metrics
enable_export_server: true
export_addr:
ip: 0.0.0.0
port: 9091

2.验证:curl -i http://localhost: 9091/apisix/prometheus/metrics
服务不可用

3.prometheus服务状态:
image

4.手动添加了Prometheus插件
image

Environment

  • APISIX版本:3.9.1

dashboard_version:3.0.1

@github-project-automation github-project-automation bot moved this to 📋 Backlog in Apache APISIX backlog Nov 5, 2024
@dosubot dosubot bot added bug Something isn't working plugin labels Nov 5, 2024
@shihuncl
Copy link
Author

shihuncl commented Nov 6, 2024

docker重新打包,然后重启就生效了
docker build -t apisix-gt:3.9.9 .

docker配置文件:
services:
apisix:
image: apisix-gt:3.9.9
container_name: apisix
restart: always

volumes:
  - ./config.yaml:/usr/local/apisix/conf/config.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working plugin
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant