syncthing / syncthing/syncthing

cmd/strelaysrv: Export Prometheus metrics

Open
#5,116 15 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
88.8k
Forks
5.5k
Avg merge
2d 10h
Merged PRs (30d)
5

Description

Implement the metrics for the relay service, like it is in the discovery server.

Version Information

Syncthing Version: v0.14.49
OS Version: Ubuntu 18.04 LTS
Browser Version: not applicable

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in cmd/strelaysrv and compare the relay service with the discovery server's existing Prometheus metrics implementation. Identify the metrics exposed by the discovery server that apply to the relay service, then verify that the relay endpoint exports them and add or update relevant tests if the existing implementation provides them.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, prometheus
Domain
backend, observability
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.