We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f18e94d commit 52ca2b6Copy full SHA for 52ca2b6
twingraph/src/main/kotlin/com/cosmotech/twingraph/metrics/TwinGraphMetrics.kt
@@ -12,6 +12,7 @@ import org.springframework.stereotype.Service
12
import redis.clients.jedis.JedisPool
13
14
private const val SERVICE_NAME = "twingraph"
15
+private const val MILLISECONDS_IN_DAY = 86400000
16
17
@Service
18
internal class TwinGraphMetrics(
@@ -41,7 +42,9 @@ internal class TwinGraphMetrics(
41
42
"usage" to "licensing",
43
),
44
type = PersitentMetricType.GAUGE,
- )
45
+ retention =
46
+ csmPlatformProperties.metrics.downSamplingRetentionDays.toLong() *
47
+ MILLISECONDS_IN_DAY)
48
eventPublisher.publishEvent(PersistentMetricEvent(this, metric))
49
}
50
0 commit comments