smashing icon indicating copy to clipboard operation
smashing copied to clipboard

/metrics endpoint

Open brujoand opened this issue 5 years ago • 1 comments

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.

brujoand avatar Dec 03 '19 09:12 brujoand

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 ?

Kohlrabbit avatar Mar 12 '20 12:03 Kohlrabbit