12urenloop / Telraam

New and hopefully improved application to count laps of the 12urenloop event
MIT License
6 stars 2 forks source link

Nested or Dynamic API endpoints #56

Open mcbloch opened 2 years ago

mcbloch commented 2 years ago

Grafana is very handy to use with a json api. The problem now is that our data is flat and there are no nested objects. So laps have the team-id and no name. Grafana as far as I know cannot do recursive requests which makes visualisations very hard to read.

There are a few solutions here.

The graphql seems the most sensible and powerful. Can also be used by other clients without the pollution of the basic rest api. I'm going to start there, but suggestions, counter arguments and other options are welcome.

Robbe7730 commented 2 years ago

Coming back to this, I think something like graphql would make the most sense

NuttyShrimp commented 1 year ago

I think we should move all our little scripts to transform our data from telraam to grafana into telraam itself and exposes this data via an /metrics endpoint