You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The hits data sends 2 queries to ElasticSearch (or OpenSearch) and then aggregates by hour, and attempts to fill in the gaps. This is a complex operation, and does not work at scale (I was running it over 449 environments using the Lagoon API). Confusing, when it does not work, the API just returns 0 hits, and no error messages. So the data is wrong, and you have no way of knowing if this is the case.
The API is scoped to platform administrators only, so impact will be limited.
Proposal
Tear out this ElasticSearch querying in an API functionality from Lagoon. I would be a fan of Lagoon storing aggregated data, e.g. hits per day per environment, and a new Lagoon API that could surface that information. But that could come later.
The text was updated successfully, but these errors were encountered:
This appears to be a vestigial from a time when there was a billing system directly integrated into Lagoon.
https://github.com/uselagoon/lagoon/blob/main/services/api/src/models/environment.ts#L180-L543
The hits data sends 2 queries to ElasticSearch (or OpenSearch) and then aggregates by hour, and attempts to fill in the gaps. This is a complex operation, and does not work at scale (I was running it over 449 environments using the Lagoon API). Confusing, when it does not work, the API just returns
0
hits, and no error messages. So the data is wrong, and you have no way of knowing if this is the case.The API is scoped to platform administrators only, so impact will be limited.
Proposal
Tear out this ElasticSearch querying in an API functionality from Lagoon. I would be a fan of Lagoon storing aggregated data, e.g. hits per day per environment, and a new Lagoon API that could surface that information. But that could come later.
The text was updated successfully, but these errors were encountered: