Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: squash
-
Labels:None
-
Story Points:1.4
-
Epic Link:
-
Team:SQuaRE
Description
There are at least three options of timestamps that we can use to map the lsst.verify run time to InfluxDB.
- CI pipeline run time
- Verification Job time
- InfluxDB creation time
We are currently using the "Verification Job time" which turns not to be the right choice because we are running a different verification job for each dataID. As consequence, results that should have the same timestamp get inserted in InfluxDB at different times. A better choice for the InfluxDB timestamp seems to be the CI pipeline run time.
In the PR https://github.com/lsst-sqre/squash-restful-api/pull/45 we updated the influxdb_data_model.ipynb notebook to use the CI pipeline runtime as the InfluxDB timestamp.
The squash-demo database was re-created and we showed that aggregation of metric values across multiple data ids work just fine, using mean() and GROUP BY time() InfluxQL functions.