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

Nested or Dynamic API endpoints #56

Open
mcbloch opened this issue Nov 16, 2021 · 2 comments
Open

Nested or Dynamic API endpoints #56

mcbloch opened this issue Nov 16, 2021 · 2 comments
Labels
api Communication interface for internal and external use discussion Let's talk about this.

Comments

@mcbloch
Copy link
Collaborator

mcbloch commented Nov 16, 2021

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 Robbe7730 assigned Robbe7730 and unassigned Robbe7730 Nov 16, 2021
@Robbe7730 Robbe7730 added api Communication interface for internal and external use discussion Let's talk about this. labels Nov 16, 2021
@Robbe7730
Copy link
Contributor

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

@NuttyShrimp
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Communication interface for internal and external use discussion Let's talk about this.
Projects
None yet
Development

No branches or pull requests

3 participants