Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add /services endpoint #863

Merged
merged 2 commits into from
Aug 11, 2021
Merged

Add /services endpoint #863

merged 2 commits into from
Aug 11, 2021

Conversation

yvrhdn
Copy link
Member

@yvrhdn yvrhdn commented Aug 11, 2021

What this PR does:
Add /services which prints a plaintext list of all the services in the service map with their status and optional failure case.

$ curl  localhost:3201/services
memberlist-kv: Running
querier: Running
ring: Running
server: Running
store: Running

Cortex has a similar endpoint which returns HTML, but I decided to keep this simple and plaintext.
https://github.com/cortexproject/cortex/blob/master/pkg/cortex/status.go

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Copy link
Member

@joe-elliott joe-elliott left a comment

Choose a reason for hiding this comment

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

nice!

i was wanting this yesterday when the compactors were failing to start for some reason.

@joe-elliott joe-elliott merged commit 651276e into grafana:main Aug 11, 2021
@yvrhdn yvrhdn deleted the services-endpoint branch August 11, 2021 12:16
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