Skip to content

Conversation

yeya24
Copy link
Contributor

@yeya24 yeya24 commented Dec 5, 2021

Signed-off-by: Ben Ye ben.ye@bytedance.com

Support the WAL Replay Status API https://prometheus.io/docs/prometheus/latest/querying/api/#wal-replay-stats.

From the document, there should be another field state:

$ curl http://localhost:9090/api/v1/status/walreplay
{
  "status": "success",
  "data": {
    "min": 2,
    "max": 5,
    "current": 40,
    "state": "in progress"
  }
}

But I cannot find it from the prometheus code https://github.com/prometheus/prometheus/blob/main/web/api/v1/api.go#L1375.

Signed-off-by: Ben Ye <ben.ye@bytedance.com>
@yeya24
Copy link
Contributor Author

yeya24 commented Jan 5, 2022

Anyone could help with reviewing this? @beorn7 @kakkoyun Thank you!

@kakkoyun kakkoyun changed the title support wal replay status api API: support wal replay status api Jan 5, 2022
Copy link
Member

@kakkoyun kakkoyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kakkoyun kakkoyun merged commit e6e54e8 into prometheus:master Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants