Skip to content
This repository was archived by the owner on Jan 29, 2024. It is now read-only.
This repository was archived by the owner on Jan 29, 2024. It is now read-only.

Include peer configured names in metric label values #17

@crockk

Description

@crockk

Hi, I noticed my configured names aren't appearing in any metric except wireguard_peer_info. The name label does not appear in any of the other metrics (keys redacted):

# TYPE wireguard_peer_info gauge
wireguard_peer_info{device="wg0",endpoint="",name="ethan-phone",public_key="a"} 1
wireguard_peer_info{device="wg0",endpoint="",name="nolan-desktop",public_key="b"} 1
wireguard_peer_info{device="wg0",endpoint="",name="nolan-laptop",public_key="c"} 1
wireguard_peer_info{device="wg0",endpoint="xx",name="carolyn-iphone",public_key="d="} 1
wireguard_peer_info{device="wg0",endpoint="xx",name="nolan-iphone",public_key="e"} 1
# HELP wireguard_peer_last_handshake_seconds UNIX timestamp for the last handshake with a given peer.
# TYPE wireguard_peer_last_handshake_seconds gauge
wireguard_peer_last_handshake_seconds{device="wg0",public_key="a"} 0
wireguard_peer_last_handshake_seconds{device="wg0",public_key="b"} 0
wireguard_peer_last_handshake_seconds{device="wg0",public_key="c"} 1.621761377e+09
wireguard_peer_last_handshake_seconds{device="wg0",public_key="d"} 1.621805472e+09
wireguard_peer_last_handshake_seconds{device="wg0",public_key="e"} 0

Is this a problem on my end or is it just not implemented? Could we include these labels in the other metrics?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions