Skip to content

Global labels #411

Description

@SudoerWithAnOpinion

For some installations, it's useful to apply the same label to all metrics returned using a value from the JSON in question (a network speed test's local IP or interface name the test was performed on).

Is there a way to achieve this?

What I am trying to do is take this JSON...

{
  "timestamp_utc": "2025-12-31T21:27:11.388300419Z",
  "download": {
    "bytes": 92134863,
    "duration_ms": 7710,
    "mbps": 95.59929344302526
  },
  "upload": {
    "bytes": 107667712,
    "duration_ms": 7739,
    "mbps": 111.28898921384754
  },
  "interface_name": "eth0",
}

And spit out

speedtest_download_bytes{interface="eth0"} 9.4373833e+07

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