Skip to content

Include the device name as a label on the syncthing_connections_active #10509

Closed as not planned

Description

@michaelbeaumont

Feature description

Include the name of the device as a label on syncthing_connections_active, empty if the device is "this device".

Problem or use case

I'd like to write an alert to tell me if a device hasn't connected in a long time but it's somewhat annoying to have to filter out the syncthing_connections_active series for "this device", there's really no option except including !=<my device id> everywhere in the label selector (I think).

Alternatives or workarounds

Including a !=<my device id> in every use of syncthing_connections_active

Activity

  1. added
    enhancement
    needs-triage
    on Dec 28, 2025
  2. calmh commented on Dec 29, 2025

    @calmh
    Member

    You already have this. Assuming you want to filter out the device named rpi5,

    syncthing_connections_active * on (device) group_left (name) syncthing_config_device_info{name!="rpi5"}
    
  3. michaelbeaumont commented on Dec 29, 2025

    @michaelbeaumont
    Author

    Ah nice, thanks! I didn't realize we had syncthing_config_device_info, the metrics docs are definitely out of date

  4. AVGoodNight commented on Jun 1, 2026

    @AVGoodNight

    I want to filter out the current device. I don't want to set the device name in an alert. The alert must be a general alert for all my devices. I think we need to exclude the current device from the list in syncthing_connections_active metrics

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementneeds-triage

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions