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

/metrics endpoint #152

Open
brujoand opened this issue Dec 3, 2019 · 1 comment
Open

/metrics endpoint #152

brujoand opened this issue Dec 3, 2019 · 1 comment

Comments

@brujoand
Copy link
Contributor

brujoand commented Dec 3, 2019

Is your feature request related to a problem? Please describe.
I would like to persist data in prometheus. For that to work I would need a /metrics endpoint.

Describe the solution you'd like
Allow dashboards to be text only

Describe alternatives you've considered
Persisting to a database and scraping that with prometheus, manually scarping the dashboard html with regexes and extending smashing to push data to a prometheus sidecar.

Notes

Basically, I want to be able to create a dasboard which only outputs text based on the events generated by smashing.

@Kohlrabbit
Copy link

Hello,

Sounds like the /events route: https://github.com/Smashing/smashing/blob/master/lib/dashing/app.rb#L76, this solution should be enough.
(usable through : http://your_dashboard:3030/events

Does it seem correct to you ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants