Skip to content

feat: prometheus plugin expose apisix version in node_info metric #12362

Description

@flearc

Description

Enhance the promethus node_info metric to also include the APISIX version. This can useful in scenarios where multiple apisix versions are deployed within the same cluster.

Now node_info only contains hostname.
https://github.com/apache/apisix/blob/release/3.12/apisix/plugins/prometheus/exporter.lua#L487

The version can be accessed here.
https://github.com/apache/apisix/blob/release/3.12/apisix/core/version.lua#L22-L24

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status
    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions