ContainerSolutions / ContainerSolutions/locust_exporter

On locust stop data available before stopping keeps on getting scrape with same last available data

Open
#25 5 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue help wanted
Dominant language
Go
Stars
115
Forks
39
PR merge metrics
No merged PRs in 30d

Description

# HELP locust_up The current health status of the server (1 = UP, 0 = DOWN).
# TYPE locust_up gauge
locust_up 0

level=error msg="Can't scrape Pack: Get \"http://localhost:8089/stats/requests\": dial tcp localhost:8089: connect: connection refused" source="main.go:333"

Eg : locust_requests_min_response_time{method="GET",name="SomeRequestName"} 2

This should not be coming in /metrics response.

Contributor guide

Open the contributing guide

Research direction

Start at main.go:333, where the failed scrape is logged, and trace how the /metrics response handles the last successful Pack data after Locust stops. Verify that old locust_requests metrics are no longer exposed after the connection is refused while locust_up remains 0.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.