couchbaselabs / couchbaselabs/spectroperf

Support scraping metrics from multiple instances

Open
#69 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
3
Forks
2
Avg merge
24m
Merged PRs (30d)
5

Description

When running multiple spectroperf instances on the same machine the second will fail with:

```
2025/08/05 09:32:26 listen tcp :2112: bind: address already in use
```

This is the port that we are trying to use to expose the prometheus metrics. We should make the selection of the port being used resilient to this error and update the prometheus config file to scrape all the possible endpoints

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the code that starts the Prometheus metrics listener on :2112 and the Prometheus configuration that defines scrape endpoints. Reproduce the conflict with two spectroperf instances, then verify that a second port is selected and all instance endpoints appear in the generated configuration.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.