[Hawkular-dev] Understanding data retention
Gareth Healy
garethahealy at gmail.com
Thu Sep 22 12:54:56 EDT 2016
A metric supports data retention (TTL); the swagger docs say this is number
of days.
-
https://github.com/hawkular/hawkular-metrics/blob/5eb13c6dbddafdcc0fcd5eb7fc3dacd9858e18c8/core/metrics-model/src/main/java/org/hawkular/metrics/model/Metric.java#L167
- http://www.hawkular.org/docs/rest/rest-metrics.html#Metric
There is also a default TTL which is in days but converted internally into
seconds:
-
https://github.com/hawkular/hawkular-metrics/blob/39389e4bf5a988ef01cbad83b488cadd47c93066/core/metrics-core-service/src/main/java/org/hawkular/metrics/core/service/MetricsServiceImpl.java#L180
Looking at when metrics are created, i can't see any conversion from days
to seconds for metrics; so any data i create with a Metric DataRetention of
30 "days" gets removed straight away.
So my question is:
- Are the swagger docs wrong?
or
- Should the model convert to seconds?
Or...have i missed something... ?
Cheers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hawkular-dev/attachments/20160922/7f111d30/attachment.html
More information about the hawkular-dev
mailing list