Details
-
Type:
Improvement
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: squash
-
Labels:None
-
Story Points:1.4
-
Epic Link:
-
Team:SQuaRE
Description
Currently we map the full qualified metric name <verification_package>.<metric_name> to InfluxDB fields and the <verification_package> name to InfluxDB measurements.
We noticed that Chronograf always prepends the measurement name to the field names when displaying them in the interface (e.g. graph labels, table headers), and queries also look a bit redundant:
SELECT "validate_drp.AM1" AS "AM1" FROM "squash-prod"."autogen"."validate_drp"
|
We can improve this by mapping only the <metric_name> to InfluxDB field names, without the <verification_package> prefix.
That's possible because metrics belonging to a given verification package are grouped by InlfuxDB measurements anyways.
With this change we expect to avoid labels like:
validate_drp.validate_drp.AM1
and we can write queries like:
SELECT "AM1" FROM "squash-prod"."autogen"."validate_drp"
|
instead of
SELECT "validate_drp.AM1" AS "AM1" FROM "squash-prod"."autogen"."validate_drp"
|
The plan to validate this implementation is to update the notebook that implements the mapping from lsst.verify concepts to InfluxDB and recreate the squash-demo database.
Once the squash-demo database is created we can clone the existing dashboards and rewrite the queries.