Skip to content

feat(prometheus): support collect metrics works in the priviledged agent#8434

Merged
spacewander merged 20 commits into
apache:masterfrom
tzssangglass:prip
Dec 6, 2022
Merged

feat(prometheus): support collect metrics works in the priviledged agent#8434
spacewander merged 20 commits into
apache:masterfrom
tzssangglass:prip

Conversation

@tzssangglass

Copy link
Copy Markdown
Member

Description

Fixes # (issue)

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

@tzssangglass
tzssangglass marked this pull request as ready for review December 1, 2022 12:21
Comment thread docs/en/latest/plugins/prometheus.md Outdated
Comment thread apisix/plugins/prometheus/exporter.lua Outdated
membphis
membphis previously approved these changes Dec 2, 2022
membphis
membphis previously approved these changes Dec 4, 2022
Comment thread docs/en/latest/plugins/prometheus.md Outdated
Comment thread example/apisix/plugins/prometheus/exporter.lua
Comment thread apisix/cli/ngx_tpl.lua Outdated

init_by_lua_block {
require "resty.core"
apisix = require("apisix")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I double-checked this line and it seems the apisix is not used?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove it, and this helped me to solve the problem of repeatedly requiring apisix, thanks.

@spacewander
spacewander merged commit edb8edf into apache:master Dec 6, 2022
@jagerzhang

Copy link
Copy Markdown
Contributor

Can you fix this problem in version 2.15? The main reason is that we have been using the official Docker image deployment. It seems that we cannot directly repair it by copying files, but we need to compile the underlying modules.

@nanamikon

Copy link
Copy Markdown
Contributor

Can you fix this problem in version 2.15? The main reason is that we have been using the official Docker image deployment. It seems that we cannot directly repair it by copying files, but we need to compile the underlying modules.

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants