Skip to content

Commit

Permalink
Merge pull request #822 from asutalo/pgwreporter_accumulator_sync_to_…
Browse files Browse the repository at this point in the history
…promreporter

Matching the Stale Period of PrometheusPushgatewayReporter accumulator to the one of PrometheusReporter accumulator
  • Loading branch information
SimunKaracic authored Mar 23, 2021
2 parents 2d4e282 + b3c7f14 commit 2616f0b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class PrometheusPushgatewayReporter(
) extends MetricReporter {

private val _logger = LoggerFactory.getLogger(classOf[PrometheusPushgatewayReporter])
private val _snapshotAccumulator = PeriodSnapshot.accumulator(Duration.ofDays(365 * 5), Duration.ZERO)
private val _snapshotAccumulator = PeriodSnapshot.accumulator(Duration.ofDays(365 * 5), Duration.ZERO, Duration.ofDays(365 * 5))

@volatile private var httpClient: HttpClient = _
@volatile private var settings: PrometheusSettings.Generic = _
Expand Down

0 comments on commit 2616f0b

Please sign in to comment.