Skip to content

Commit

Permalink
SOLR-17276: Prometheus Exporter: scrape metrics at fixed rate (#2442)
Browse files Browse the repository at this point in the history
(cherry picked from commit 759b94f)
  • Loading branch information
rafalh authored and dsmiley committed Aug 3, 2024
1 parent aff0d4d commit 5fc16da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions solr/CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ New Features

* SOLR-10255: Add support for docValues to solr.BinaryField. (Alexey Serba via Mikhail Khludnev, David Smiley)

* SOLR-17276: Prometheus Exporter: now scrapes metrics at a fixed rate instead of delay. (Rafał Harabień)

Improvements
---------------------
* SOLR-10808, SOLR-12963: The Solr schema version has been increased to 1.7.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public SchedulerMetricsCollector(
}

public void start() {
scheduler.scheduleWithFixedDelay(this::collectMetrics, 0, duration, timeUnit);
scheduler.scheduleAtFixedRate(this::collectMetrics, 0, duration, timeUnit);
}

@SuppressWarnings("try")
Expand Down

0 comments on commit 5fc16da

Please sign in to comment.