Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0fa5f0f

Browse files
authoredMar 18, 2024··
Merge branch 'main' into search-idle-metrics
Signed-off-by: Ruirui Zhang <67210127+ruai0511@users.noreply.github.com>
2 parents b6e9385 + 21b28f2 commit 0fa5f0f

File tree

67 files changed

+4278
-603
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+4278
-603
lines changed
 

‎CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
112112
- [Tiered caching] Make IndicesRequestCache implementation configurable [EXPERIMENTAL] ([#12533](https://github.com/opensearch-project/OpenSearch/pull/12533))
113113
- Add kuromoji_completion analyzer and filter ([#4835](https://github.com/opensearch-project/OpenSearch/issues/4835))
114114
- The org.opensearch.bootstrap.Security should support codebase for JAR files with classifiers ([#12586](https://github.com/opensearch-project/OpenSearch/issues/12586))
115+
- [Metrics Framework] Adds support for asynchronous gauge metric type. ([#12642](https://github.com/opensearch-project/OpenSearch/issues/12642))
115116
- Make search query counters dynamic to support all query types ([#12601](https://github.com/opensearch-project/OpenSearch/pull/12601))
116117
- [Tiered caching] Add policies controlling which values can enter pluggable caches [EXPERIMENTAL] ([#12542](https://github.com/opensearch-project/OpenSearch/pull/12542))
117118
- [Tiered caching] Add Stale keys Management and CacheCleaner to IndicesRequestCache ([#12625](https://github.com/opensearch-project/OpenSearch/pull/12625))
@@ -145,6 +146,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
145146
### Changed
146147
- Allow composite aggregation to run under a parent filter aggregation ([#11499](https://github.com/opensearch-project/OpenSearch/pull/11499))
147148
- Quickly compute terms aggregations when the top-level query is functionally match-all for a segment ([#11643](https://github.com/opensearch-project/OpenSearch/pull/11643))
149+
- Mark fuzzy filter GA and remove experimental setting ([12631](https://github.com/opensearch-project/OpenSearch/pull/12631))
148150

149151
### Deprecated
150152

‎libs/telemetry/src/main/java/org/opensearch/telemetry/metrics/DefaultMetricsRegistry.java

+9
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88

99
package org.opensearch.telemetry.metrics;
1010

11+
import org.opensearch.telemetry.metrics.tags.Tags;
12+
13+
import java.io.Closeable;
1114
import java.io.IOException;
15+
import java.util.function.Supplier;
1216

1317
/**
1418
* Default implementation for {@link MetricsRegistry}
@@ -39,6 +43,11 @@ public Histogram createHistogram(String name, String description, String unit) {
3943
return metricsTelemetry.createHistogram(name, description, unit);
4044
}
4145

46+
@Override
47+
public Closeable createGauge(String name, String description, String unit, Supplier<Double> valueProvider, Tags tags) {
48+
return metricsTelemetry.createGauge(name, description, unit, valueProvider, tags);
49+
}
50+
4251
@Override
4352
public void close() throws IOException {
4453
metricsTelemetry.close();

0 commit comments

Comments
 (0)
Please sign in to comment.