Skip to content

Return WordPress version as _info metric #15

Closed
@C-Duv

Description

@C-Duv

Hello,

Could the plugin return the WordPress version as a metric?

This is something various exporters do via an _info metric:

The Prometheus Proxmox VE Exporter:

pve_version_info{instance="pve.example.com:9221",job="pve",release="7.3",repoid="d69b70d4",version="7.3-4"} 1

The Node exporter:

go_info{instance="foo.example.com:9100",job="node",version="go1.11.6"} 1

I've also done it on self-made applications:

mycompany_app_info{instance="app.example.com:443",job="app",version="42",build="ab2d3ef2ad62"} 1

The wp_info could be used:

wp_info{host="https://wp.example.com",version="6.1.1"} 1

If it's OK with you I can open a PR for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions