Elevator Pitch
Producing a simplified dashboard that shows a plot of the historic CPU load of the VM with Hasura and GraphQL.
Description
We will try a simple program with the following:
- Use Hasura GUI to create a table in the linked postgres database which will be used to store the CPU measurements and to expose that table as GraphQL endpoint.
- Measure the CPU load of the VM and insert your measurement into the postgres database on the VM.
- Query the data via GraphQL and plot it in a frontend.
Everything will be on docker. We will end up with a system that looks roughly like this:
[ Python backend ] -- insert --> [ Postgres | Hasura ] -- GraphQL --> [ React Frontend ]Notes
We will try a simple program with the following:
- Use Hasura GUI to create a table in the linked postgres database which will be used to store the CPU measurements and to expose that table as GraphQL endpoint.
- Measure the CPU load of the VM and insert your measurement into the postgres database on the VM.
- Query the data via GraphQL and plot it in a frontend.
Everything will be on docker. We will end up with a system that looks roughly like this:
[ Python backend ] -- insert --> [ Postgres | Hasura ] -- GraphQL --> [ React Frontend ]