From 37a02f7730463159bc67acd4162c41349dd8165a Mon Sep 17 00:00:00 2001 From: Adam Boguszewski <108867528+aboguszewski-sumo@users.noreply.github.com> Date: Fri, 18 Nov 2022 18:40:25 +0100 Subject: [PATCH] [receiver/elasticsearch]: add missing datapoints for operation count and operation time metrics (#16170) * feat: add missing operation count datapoints with total aggregation * feat: add missing operation count datapoints with primary shards aggregation * feat: add missing operation time datapoints with total shard aggregation * feat: add missing operation time datapoints with primary shards aggregations --- .chloggen/elastic-missing-operations.yaml | 16 + receiver/elasticsearchreceiver/README.md | 13 + receiver/elasticsearchreceiver/scraper.go | 139 +- .../elasticsearchreceiver/scraper_test.go | 5 +- .../expected_metrics/clusterSkip.json | 1638 ++++++++++++- .../testdata/expected_metrics/full.json | 2094 ++++++++++++++--- .../testdata/expected_metrics/noNodes.json | 1638 ++++++++++++- .../testdata/sample_payloads/indices.json | 64 +- 8 files changed, 5111 insertions(+), 496 deletions(-) create mode 100644 .chloggen/elastic-missing-operations.yaml diff --git a/.chloggen/elastic-missing-operations.yaml b/.chloggen/elastic-missing-operations.yaml new file mode 100644 index 000000000000..9096be2cabe8 --- /dev/null +++ b/.chloggen/elastic-missing-operations.yaml @@ -0,0 +1,16 @@ +# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' +change_type: enhancement + +# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) +component: elasticsearchreceiver + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: add missing data points for operation count and operation time + +# One or more tracking issues related to the change +issues: [14635] + +# (Optional) One or more lines of additional information to render under the primary note. +# These lines will be padded with 2 spaces and then inserted directly into the document. +# Use pipe (|) for multiline entries. +subtext: diff --git a/receiver/elasticsearchreceiver/README.md b/receiver/elasticsearchreceiver/README.md index 7ca81bb58873..574447f66ea0 100644 --- a/receiver/elasticsearchreceiver/README.md +++ b/receiver/elasticsearchreceiver/README.md @@ -71,5 +71,18 @@ This feature gate will eventually be enabled by default, and eventually the old to give users time to migrate to the new implementation. The target release for this featuregate to be enabled by default is 0.68.0. +**ALPHA**: `receiver.elasticsearch.emitAllIndexOperationMetrics` + +The feature gate `receiver.elasticsearch.emitAllIndexOperationMetrics` once enabled starts emitting metrics `elasticsearch.index.operation.count` +and `elasticsearch.index.operation.time` with all possible data points - for every possible operation type and both shard aggregation types. + +Because of the amount of added data points, this change might affect performance for existing users of this receiver. +It is recommended to migrate to the new implementation when possible. +Any new users planning to adopt this receiver should enable this feature gate to avoid risking unexpected slowdowns. + +This feature gate will eventually be enabled by default, and eventually the old implementation will be removed. It aims +to give users time to migrate to the new implementation. The target release for this featuregate to be enabled by default +is 0.68.0. + [beta]:https://github.com/open-telemetry/opentelemetry-collector#beta [contrib]:https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib diff --git a/receiver/elasticsearchreceiver/scraper.go b/receiver/elasticsearchreceiver/scraper.go index 6fcfad6113d3..2ccda724f11c 100644 --- a/receiver/elasticsearchreceiver/scraper.go +++ b/receiver/elasticsearchreceiver/scraper.go @@ -45,6 +45,7 @@ var ( const ( readmeURL = "https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/elasticsearchreceiver/README.md" emitClusterHealthDetailedShardMetricsID = "receiver.elasticsearch.emitClusterHealthDetailedShardMetrics" + emitAllIndexOperationMetricsID = "receiver.elasticsearch.emitAllIndexOperationMetrics" ) func init() { @@ -53,6 +54,11 @@ func init() { featuregate.StageAlpha, featuregate.WithRegisterDescription("When enabled, the elasticsearch.cluster.shards metric will be emitted with two more datapoints."), ) + featuregate.GetRegistry().MustRegisterID( + emitAllIndexOperationMetricsID, + featuregate.StageAlpha, + featuregate.WithRegisterDescription("When enabled, the elasticsearch.index.operation.* metrics will be emitted with all possible datapoints."), + ) } var errUnknownClusterStatus = errors.New("unknown cluster status") @@ -67,6 +73,7 @@ type elasticsearchScraper struct { // Feature gates emitClusterHealthDetailedShardMetrics bool + emitAllIndexOperationMetrics bool } func newElasticSearchScraper( @@ -78,6 +85,7 @@ func newElasticSearchScraper( cfg: cfg, mb: metadata.NewMetricsBuilder(cfg.Metrics, settings.BuildInfo), emitClusterHealthDetailedShardMetrics: featuregate.GetRegistry().IsEnabled(emitClusterHealthDetailedShardMetricsID), + emitAllIndexOperationMetrics: featuregate.GetRegistry().IsEnabled(emitAllIndexOperationMetricsID), } if !e.emitClusterHealthDetailedShardMetrics { @@ -86,6 +94,12 @@ func newElasticSearchScraper( ) } + if !e.emitAllIndexOperationMetrics { + settings.Logger.Warn( + fmt.Sprintf("Feature gate %s is not enabled. Please see the README for more information: %s", emitAllIndexOperationMetricsID, readmeURL), + ) + } + return e } @@ -385,7 +399,7 @@ func (r *elasticsearchScraper) scrapeIndicesMetrics(ctx context.Context, now pco indexStats, err := r.client.IndexStats(ctx, r.cfg.Indices) if err != nil { - errs.AddPartial(24, err) + errs.AddPartial(63, err) return } @@ -415,6 +429,129 @@ func (r *elasticsearchScraper) scrapeOneIndexMetrics(now pcommon.Timestamp, name now, stats.Total.MergeOperations.TotalTimeInMs, metadata.AttributeOperationMerge, metadata.AttributeIndexAggregationTypeTotal, ) + if r.emitAllIndexOperationMetrics { + r.mb.RecordElasticsearchIndexOperationsCompletedDataPoint( + now, stats.Total.IndexingOperations.IndexTotal, metadata.AttributeOperationIndex, metadata.AttributeIndexAggregationTypeTotal, + ) + r.mb.RecordElasticsearchIndexOperationsCompletedDataPoint( + now, stats.Total.IndexingOperations.DeleteTotal, metadata.AttributeOperationDelete, metadata.AttributeIndexAggregationTypeTotal, + ) + r.mb.RecordElasticsearchIndexOperationsCompletedDataPoint( + now, stats.Total.GetOperation.Total, metadata.AttributeOperationGet, metadata.AttributeIndexAggregationTypeTotal, + ) + r.mb.RecordElasticsearchIndexOperationsCompletedDataPoint( + now, stats.Total.SearchOperations.ScrollTotal, metadata.AttributeOperationScroll, metadata.AttributeIndexAggregationTypeTotal, + ) + r.mb.RecordElasticsearchIndexOperationsCompletedDataPoint( + now, stats.Total.SearchOperations.SuggestTotal, metadata.AttributeOperationSuggest, metadata.AttributeIndexAggregationTypeTotal, + ) + r.mb.RecordElasticsearchIndexOperationsCompletedDataPoint( + now, stats.Total.MergeOperations.Total, metadata.AttributeOperationMerge, metadata.AttributeIndexAggregationTypeTotal, + ) + r.mb.RecordElasticsearchIndexOperationsCompletedDataPoint( + now, stats.Total.RefreshOperations.Total, metadata.AttributeOperationRefresh, metadata.AttributeIndexAggregationTypeTotal, + ) + r.mb.RecordElasticsearchIndexOperationsCompletedDataPoint( + now, stats.Total.FlushOperations.Total, metadata.AttributeOperationFlush, metadata.AttributeIndexAggregationTypeTotal, + ) + r.mb.RecordElasticsearchIndexOperationsCompletedDataPoint( + now, stats.Total.WarmerOperations.Total, metadata.AttributeOperationWarmer, metadata.AttributeIndexAggregationTypeTotal, + ) + + r.mb.RecordElasticsearchIndexOperationsCompletedDataPoint( + now, stats.Primaries.SearchOperations.FetchTotal, metadata.AttributeOperationFetch, metadata.AttributeIndexAggregationTypePrimaryShards, + ) + r.mb.RecordElasticsearchIndexOperationsCompletedDataPoint( + now, stats.Primaries.SearchOperations.QueryTotal, metadata.AttributeOperationQuery, metadata.AttributeIndexAggregationTypePrimaryShards, + ) + r.mb.RecordElasticsearchIndexOperationsCompletedDataPoint( + now, stats.Primaries.IndexingOperations.IndexTotal, metadata.AttributeOperationIndex, metadata.AttributeIndexAggregationTypePrimaryShards, + ) + r.mb.RecordElasticsearchIndexOperationsCompletedDataPoint( + now, stats.Primaries.IndexingOperations.DeleteTotal, metadata.AttributeOperationDelete, metadata.AttributeIndexAggregationTypePrimaryShards, + ) + r.mb.RecordElasticsearchIndexOperationsCompletedDataPoint( + now, stats.Primaries.GetOperation.Total, metadata.AttributeOperationGet, metadata.AttributeIndexAggregationTypePrimaryShards, + ) + r.mb.RecordElasticsearchIndexOperationsCompletedDataPoint( + now, stats.Primaries.SearchOperations.ScrollTotal, metadata.AttributeOperationScroll, metadata.AttributeIndexAggregationTypePrimaryShards, + ) + r.mb.RecordElasticsearchIndexOperationsCompletedDataPoint( + now, stats.Primaries.SearchOperations.SuggestTotal, metadata.AttributeOperationSuggest, metadata.AttributeIndexAggregationTypePrimaryShards, + ) + r.mb.RecordElasticsearchIndexOperationsCompletedDataPoint( + now, stats.Primaries.MergeOperations.Total, metadata.AttributeOperationMerge, metadata.AttributeIndexAggregationTypePrimaryShards, + ) + r.mb.RecordElasticsearchIndexOperationsCompletedDataPoint( + now, stats.Primaries.RefreshOperations.Total, metadata.AttributeOperationRefresh, metadata.AttributeIndexAggregationTypePrimaryShards, + ) + r.mb.RecordElasticsearchIndexOperationsCompletedDataPoint( + now, stats.Primaries.FlushOperations.Total, metadata.AttributeOperationFlush, metadata.AttributeIndexAggregationTypePrimaryShards, + ) + r.mb.RecordElasticsearchIndexOperationsCompletedDataPoint( + now, stats.Primaries.WarmerOperations.Total, metadata.AttributeOperationWarmer, metadata.AttributeIndexAggregationTypePrimaryShards, + ) + + r.mb.RecordElasticsearchIndexOperationsTimeDataPoint( + now, stats.Total.IndexingOperations.IndexTimeInMs, metadata.AttributeOperationIndex, metadata.AttributeIndexAggregationTypeTotal, + ) + r.mb.RecordElasticsearchIndexOperationsTimeDataPoint( + now, stats.Total.IndexingOperations.DeleteTimeInMs, metadata.AttributeOperationDelete, metadata.AttributeIndexAggregationTypeTotal, + ) + r.mb.RecordElasticsearchIndexOperationsTimeDataPoint( + now, stats.Total.GetOperation.TotalTimeInMs, metadata.AttributeOperationGet, metadata.AttributeIndexAggregationTypeTotal, + ) + r.mb.RecordElasticsearchIndexOperationsTimeDataPoint( + now, stats.Total.SearchOperations.ScrollTimeInMs, metadata.AttributeOperationScroll, metadata.AttributeIndexAggregationTypeTotal, + ) + r.mb.RecordElasticsearchIndexOperationsTimeDataPoint( + now, stats.Total.SearchOperations.SuggestTimeInMs, metadata.AttributeOperationSuggest, metadata.AttributeIndexAggregationTypeTotal, + ) + r.mb.RecordElasticsearchIndexOperationsTimeDataPoint( + now, stats.Total.RefreshOperations.TotalTimeInMs, metadata.AttributeOperationRefresh, metadata.AttributeIndexAggregationTypeTotal, + ) + r.mb.RecordElasticsearchIndexOperationsTimeDataPoint( + now, stats.Total.FlushOperations.TotalTimeInMs, metadata.AttributeOperationFlush, metadata.AttributeIndexAggregationTypeTotal, + ) + r.mb.RecordElasticsearchIndexOperationsTimeDataPoint( + now, stats.Total.WarmerOperations.TotalTimeInMs, metadata.AttributeOperationWarmer, metadata.AttributeIndexAggregationTypeTotal, + ) + + r.mb.RecordElasticsearchIndexOperationsTimeDataPoint( + now, stats.Primaries.SearchOperations.FetchTimeInMs, metadata.AttributeOperationFetch, metadata.AttributeIndexAggregationTypePrimaryShards, + ) + r.mb.RecordElasticsearchIndexOperationsTimeDataPoint( + now, stats.Primaries.SearchOperations.QueryTimeInMs, metadata.AttributeOperationQuery, metadata.AttributeIndexAggregationTypePrimaryShards, + ) + r.mb.RecordElasticsearchIndexOperationsTimeDataPoint( + now, stats.Primaries.IndexingOperations.IndexTimeInMs, metadata.AttributeOperationIndex, metadata.AttributeIndexAggregationTypePrimaryShards, + ) + r.mb.RecordElasticsearchIndexOperationsTimeDataPoint( + now, stats.Primaries.IndexingOperations.DeleteTimeInMs, metadata.AttributeOperationDelete, metadata.AttributeIndexAggregationTypePrimaryShards, + ) + r.mb.RecordElasticsearchIndexOperationsTimeDataPoint( + now, stats.Primaries.GetOperation.TotalTimeInMs, metadata.AttributeOperationGet, metadata.AttributeIndexAggregationTypePrimaryShards, + ) + r.mb.RecordElasticsearchIndexOperationsTimeDataPoint( + now, stats.Primaries.SearchOperations.ScrollTimeInMs, metadata.AttributeOperationScroll, metadata.AttributeIndexAggregationTypePrimaryShards, + ) + r.mb.RecordElasticsearchIndexOperationsTimeDataPoint( + now, stats.Primaries.SearchOperations.SuggestTimeInMs, metadata.AttributeOperationSuggest, metadata.AttributeIndexAggregationTypePrimaryShards, + ) + r.mb.RecordElasticsearchIndexOperationsTimeDataPoint( + now, stats.Primaries.MergeOperations.TotalTimeInMs, metadata.AttributeOperationMerge, metadata.AttributeIndexAggregationTypePrimaryShards, + ) + r.mb.RecordElasticsearchIndexOperationsTimeDataPoint( + now, stats.Primaries.RefreshOperations.TotalTimeInMs, metadata.AttributeOperationRefresh, metadata.AttributeIndexAggregationTypePrimaryShards, + ) + r.mb.RecordElasticsearchIndexOperationsTimeDataPoint( + now, stats.Primaries.FlushOperations.TotalTimeInMs, metadata.AttributeOperationFlush, metadata.AttributeIndexAggregationTypePrimaryShards, + ) + r.mb.RecordElasticsearchIndexOperationsTimeDataPoint( + now, stats.Primaries.WarmerOperations.TotalTimeInMs, metadata.AttributeOperationWarmer, metadata.AttributeIndexAggregationTypePrimaryShards, + ) + } + r.mb.RecordElasticsearchIndexOperationsMergeSizeDataPoint( now, stats.Total.MergeOperations.TotalSizeInBytes, metadata.AttributeIndexAggregationTypeTotal, ) diff --git a/receiver/elasticsearchreceiver/scraper_test.go b/receiver/elasticsearchreceiver/scraper_test.go index e09f523c13bd..ed9114a66cbc 100644 --- a/receiver/elasticsearchreceiver/scraper_test.go +++ b/receiver/elasticsearchreceiver/scraper_test.go @@ -41,7 +41,10 @@ const noNodesExpectedMetricsPath = "./testdata/expected_metrics/noNodes.json" func TestMain(m *testing.M) { // Enable the feature gates before all tests to avoid flaky tests. - _ = featuregate.GetRegistry().Apply(map[string]bool{emitClusterHealthDetailedShardMetricsID: true}) + _ = featuregate.GetRegistry().Apply(map[string]bool{ + emitClusterHealthDetailedShardMetricsID: true, + emitAllIndexOperationMetricsID: true, + }) code := m.Run() os.Exit(code) } diff --git a/receiver/elasticsearchreceiver/testdata/expected_metrics/clusterSkip.json b/receiver/elasticsearchreceiver/testdata/expected_metrics/clusterSkip.json index 964644fe4311..a45166541a10 100644 --- a/receiver/elasticsearchreceiver/testdata/expected_metrics/clusterSkip.json +++ b/receiver/elasticsearchreceiver/testdata/expected_metrics/clusterSkip.json @@ -2248,6 +2248,1296 @@ ], "startTimeUnixNano": "1661811689941624000", "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "40", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "index" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "12", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "delete" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "13", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "get" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "3", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "scroll" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "5", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "suggest" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "8", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "merge" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "10", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "refresh" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "4", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "flush" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "6", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "warmer" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "43", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "fetch" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "43", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "query" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "40", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "index" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "12", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "delete" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "13", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "get" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "3", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "scroll" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "5", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "suggest" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "8", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "merge" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "10", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "refresh" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "4", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "flush" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "6", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "warmer" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + } + ] + }, + "unit": "{operations}" + }, + { + "description": "Time spent on operations for an index.", + "name": "elasticsearch.index.operations.time", + "sum": { + "aggregationTemporality": 2, + "isMonotonic": true, + "dataPoints": [ + { + "asInt": "82", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "fetch" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "52", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "query" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "12", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "merge" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "938", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "index" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "2", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "delete" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "3", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "get" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "30", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "scroll" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "1", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "suggest" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "169", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "refresh" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "192", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "flush" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "4", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "warmer" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "82", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "fetch" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "52", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "query" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "12", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "merge" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "938", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "index" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "2", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "delete" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "3", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "get" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "30", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "scroll" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "1", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "suggest" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "169", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "refresh" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "192", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "flush" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "4", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "warmer" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + } + ] + }, + "unit": "ms" + }, + { + "description": "The size of the shards assigned to this index.", + "name": "elasticsearch.index.shards.size", + "sum": { + "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE", + "isMonotonic": false, + "dataPoints": [ + { + "asInt": "40230884", + "attributes": [ + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + } + ] + }, + "unit": "By" + } + ], + "scope": { + "name": "otelcol/elasticsearchreceiver", + "version": "latest" + } + } + ] + }, + { + "resource": { + "attributes": [ + { + "key": "elasticsearch.index.name", + "value": { + "stringValue": "_all" + } + }, + { + "key": "elasticsearch.cluster.name", + "value": { + "stringValue": "docker-cluster" + } + } + ] + }, + "scopeMetrics": [ + { + "metrics": [ + { + "description": "The number of operations completed for an index.", + "name": "elasticsearch.index.operations.completed", + "sum": { + "aggregationTemporality": 2, + "isMonotonic": true, + "dataPoints": [ + { + "asInt": "43", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "fetch" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "43", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "query" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "40", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "index" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "12", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "delete" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "13", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "get" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "3", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "scroll" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "5", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "suggest" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "8", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "merge" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "10", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "refresh" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "4", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "flush" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "6", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "warmer" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "43", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "fetch" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "43", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "query" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "40", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "index" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "12", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "delete" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "13", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "get" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "3", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "scroll" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "5", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "suggest" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "8", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "merge" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "10", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "refresh" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "4", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "flush" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "6", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "warmer" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" } ] }, @@ -2261,12 +3551,88 @@ "isMonotonic": true, "dataPoints": [ { - "asInt": "82", + "asInt": "82", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "fetch" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "52", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "query" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "12", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "merge" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "938", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "index" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "2", "attributes": [ { "key": "operation", "value": { - "stringValue": "fetch" + "stringValue": "delete" } }, { @@ -2280,12 +3646,12 @@ "timeUnixNano": "1661811689943245000" }, { - "asInt": "52", + "asInt": "3", "attributes": [ { "key": "operation", "value": { - "stringValue": "query" + "stringValue": "get" } }, { @@ -2299,12 +3665,12 @@ "timeUnixNano": "1661811689943245000" }, { - "asInt": "12", + "asInt": "30", "attributes": [ { "key": "operation", "value": { - "stringValue": "merge" + "stringValue": "scroll" } }, { @@ -2316,21 +3682,16 @@ ], "startTimeUnixNano": "1661811689941624000", "timeUnixNano": "1661811689943245000" - } - ] - }, - "unit": "ms" - }, - { - "description": "The size of the shards assigned to this index.", - "name": "elasticsearch.index.shards.size", - "sum": { - "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE", - "isMonotonic": false, - "dataPoints": [ + }, { - "asInt": "40230884", + "asInt": "1", "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "suggest" + } + }, { "key": "aggregation", "value": { @@ -2340,53 +3701,14 @@ ], "startTimeUnixNano": "1661811689941624000", "timeUnixNano": "1661811689943245000" - } - ] - }, - "unit": "By" - } - ], - "scope": { - "name": "otelcol/elasticsearchreceiver", - "version": "latest" - } - } - ] - }, - { - "resource": { - "attributes": [ - { - "key": "elasticsearch.index.name", - "value": { - "stringValue": "_all" - } - }, - { - "key": "elasticsearch.cluster.name", - "value": { - "stringValue": "docker-cluster" - } - } - ] - }, - "scopeMetrics": [ - { - "metrics": [ - { - "description": "The number of operations completed for an index.", - "name": "elasticsearch.index.operations.completed", - "sum": { - "aggregationTemporality": 2, - "isMonotonic": true, - "dataPoints": [ + }, { - "asInt": "43", + "asInt": "169", "attributes": [ { "key": "operation", "value": { - "stringValue": "fetch" + "stringValue": "refresh" } }, { @@ -2400,12 +3722,12 @@ "timeUnixNano": "1661811689943245000" }, { - "asInt": "43", + "asInt": "192", "attributes": [ { "key": "operation", "value": { - "stringValue": "query" + "stringValue": "flush" } }, { @@ -2417,18 +3739,26 @@ ], "startTimeUnixNano": "1661811689941624000", "timeUnixNano": "1661811689943245000" - } - ] - }, - "unit": "{operations}" - }, - { - "description": "Time spent on operations for an index.", - "name": "elasticsearch.index.operations.time", - "sum": { - "aggregationTemporality": 2, - "isMonotonic": true, - "dataPoints": [ + }, + { + "asInt": "4", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "warmer" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, { "asInt": "82", "attributes": [ @@ -2441,7 +3771,7 @@ { "key": "aggregation", "value": { - "stringValue": "total" + "stringValue": "primary_shards" } } ], @@ -2460,7 +3790,7 @@ { "key": "aggregation", "value": { - "stringValue": "total" + "stringValue": "primary_shards" } } ], @@ -2479,7 +3809,159 @@ { "key": "aggregation", "value": { - "stringValue": "total" + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "938", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "index" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "2", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "delete" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "3", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "get" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "30", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "scroll" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "1", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "suggest" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "169", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "refresh" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "192", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "flush" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "4", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "warmer" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" } } ], diff --git a/receiver/elasticsearchreceiver/testdata/expected_metrics/full.json b/receiver/elasticsearchreceiver/testdata/expected_metrics/full.json index 2af62881cb1e..7cbc04fd8301 100644 --- a/receiver/elasticsearchreceiver/testdata/expected_metrics/full.json +++ b/receiver/elasticsearchreceiver/testdata/expected_metrics/full.json @@ -2618,25 +2618,14 @@ ], "startTimeUnixNano": "1661811689941624000", "timeUnixNano": "1661811689943245000" - } - ] - }, - "unit": "{operations}" - }, - { - "description": "Time spent on operations for an index.", - "name": "elasticsearch.index.operations.time", - "sum": { - "aggregationTemporality": 2, - "isMonotonic": true, - "dataPoints": [ + }, { - "asInt": "82", + "asInt": "40", "attributes": [ { "key": "operation", "value": { - "stringValue": "fetch" + "stringValue": "index" } }, { @@ -2650,12 +2639,12 @@ "timeUnixNano": "1661811689943245000" }, { - "asInt": "52", + "asInt": "12", "attributes": [ { "key": "operation", "value": { - "stringValue": "query" + "stringValue": "delete" } }, { @@ -2669,12 +2658,12 @@ "timeUnixNano": "1661811689943245000" }, { - "asInt": "12", + "asInt": "13", "attributes": [ { "key": "operation", "value": { - "stringValue": "merge" + "stringValue": "get" } }, { @@ -2686,21 +2675,16 @@ ], "startTimeUnixNano": "1661811689941624000", "timeUnixNano": "1661811689943245000" - } - ] - }, - "unit": "ms" - }, - { - "description": "The size of the shards assigned to this index.", - "name": "elasticsearch.index.shards.size", - "sum": { - "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE", - "isMonotonic": false, - "dataPoints": [ + }, { - "asInt": "40230884", + "asInt": "3", "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "scroll" + } + }, { "key": "aggregation", "value": { @@ -2710,21 +2694,16 @@ ], "startTimeUnixNano": "1661811689941624000", "timeUnixNano": "1661811689943245000" - } - ] - }, - "unit": "By" - }, - { - "description": "The total size of merged segments for an index.", - "name": "elasticsearch.index.operations.merge.size", - "sum": { - "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE", - "isMonotonic": true, - "dataPoints": [ + }, { - "asInt": "64", + "asInt": "5", "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "suggest" + } + }, { "key": "aggregation", "value": { @@ -2734,21 +2713,16 @@ ], "startTimeUnixNano": "1661811689941624000", "timeUnixNano": "1661811689943245000" - } - ] - }, - "unit": "By" - }, - { - "description": "The total number of documents in merge operations for an index.", - "name": "elasticsearch.index.operations.merge.docs_count", - "sum": { - "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE", - "isMonotonic": true, - "dataPoints": [ + }, { - "asInt": "5", + "asInt": "8", "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "merge" + } + }, { "key": "aggregation", "value": { @@ -2758,21 +2732,16 @@ ], "startTimeUnixNano": "1661811689941624000", "timeUnixNano": "1661811689943245000" - } - ] - }, - "unit": "{documents}" - }, - { - "description": "Number of segments of an index.", - "name": "elasticsearch.index.segments.count", - "sum": { - "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE", - "isMonotonic": false, - "dataPoints": [ + }, { - "asInt": "5", + "asInt": "10", "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "refresh" + } + }, { "key": "aggregation", "value": { @@ -2784,32 +2753,33 @@ "timeUnixNano": "1661811689943245000" }, { - "asInt": "5", + "asInt": "4", "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "flush" + } + }, { "key": "aggregation", "value": { - "stringValue": "primary_shards" + "stringValue": "total" } } ], "startTimeUnixNano": "1661811689941624000", "timeUnixNano": "1661811689943245000" - } - ] - }, - "unit": "{segments}" - }, - { - "description": "Size of segments of an index.", - "name": "elasticsearch.index.segments.size", - "sum": { - "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE", - "isMonotonic": false, - "dataPoints": [ + }, { - "asInt": "5460", + "asInt": "6", "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "warmer" + } + }, { "key": "aggregation", "value": { @@ -2821,8 +2791,14 @@ "timeUnixNano": "1661811689943245000" }, { - "asInt": "5460", + "asInt": "43", "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "fetch" + } + }, { "key": "aggregation", "value": { @@ -2832,31 +2808,20 @@ ], "startTimeUnixNano": "1661811689941624000", "timeUnixNano": "1661811689943245000" - } - ] - }, - "unit": "By" - }, - { - "description": "Size of memory for segment object of an index.", - "name": "elasticsearch.index.segments.memory", - "sum": { - "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE", - "isMonotonic": false, - "dataPoints": [ + }, { - "asInt": "2560", + "asInt": "43", "attributes": [ { - "key": "aggregation", + "key": "operation", "value": { - "stringValue": "total" + "stringValue": "query" } }, { - "key": "object", + "key": "aggregation", "value": { - "stringValue": "term" + "stringValue": "primary_shards" } } ], @@ -2864,18 +2829,18 @@ "timeUnixNano": "1661811689943245000" }, { - "asInt": "380", + "asInt": "40", "attributes": [ { - "key": "aggregation", + "key": "operation", "value": { - "stringValue": "total" + "stringValue": "index" } }, { - "key": "object", + "key": "aggregation", "value": { - "stringValue": "doc_value" + "stringValue": "primary_shards" } } ], @@ -2883,18 +2848,18 @@ "timeUnixNano": "1661811689943245000" }, { - "asInt": "37", + "asInt": "12", "attributes": [ { - "key": "aggregation", + "key": "operation", "value": { - "stringValue": "total" + "stringValue": "delete" } }, { - "key": "object", + "key": "aggregation", "value": { - "stringValue": "index_writer" + "stringValue": "primary_shards" } } ], @@ -2902,18 +2867,18 @@ "timeUnixNano": "1661811689943245000" }, { - "asInt": "21", + "asInt": "13", "attributes": [ { - "key": "aggregation", + "key": "operation", "value": { - "stringValue": "total" + "stringValue": "get" } }, { - "key": "object", + "key": "aggregation", "value": { - "stringValue": "fixed_bit_set" + "stringValue": "primary_shards" } } ], @@ -2921,18 +2886,18 @@ "timeUnixNano": "1661811689943245000" }, { - "asInt": "2560", + "asInt": "3", "attributes": [ { - "key": "aggregation", + "key": "operation", "value": { - "stringValue": "primary_shards" + "stringValue": "scroll" } }, { - "key": "object", + "key": "aggregation", "value": { - "stringValue": "term" + "stringValue": "primary_shards" } } ], @@ -2940,18 +2905,37 @@ "timeUnixNano": "1661811689943245000" }, { - "asInt": "380", + "asInt": "5", "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "suggest" + } + }, { "key": "aggregation", "value": { "stringValue": "primary_shards" } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "8", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "merge" + } }, { - "key": "object", + "key": "aggregation", "value": { - "stringValue": "doc_value" + "stringValue": "primary_shards" } } ], @@ -2959,18 +2943,1608 @@ "timeUnixNano": "1661811689943245000" }, { - "asInt": "37", + "asInt": "10", "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "refresh" + } + }, { "key": "aggregation", "value": { "stringValue": "primary_shards" } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "4", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "flush" + } }, { - "key": "object", + "key": "aggregation", "value": { - "stringValue": "index_writer" + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "6", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "warmer" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + } + ] + }, + "unit": "{operations}" + }, + { + "description": "Time spent on operations for an index.", + "name": "elasticsearch.index.operations.time", + "sum": { + "aggregationTemporality": 2, + "isMonotonic": true, + "dataPoints": [ + { + "asInt": "82", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "fetch" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "52", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "query" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "12", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "merge" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "938", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "index" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "2", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "delete" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "3", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "get" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "30", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "scroll" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "1", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "suggest" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "169", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "refresh" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "192", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "flush" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "4", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "warmer" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "82", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "fetch" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "52", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "query" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "12", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "merge" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "938", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "index" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "2", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "delete" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "3", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "get" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "30", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "scroll" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "1", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "suggest" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "169", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "refresh" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "192", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "flush" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "4", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "warmer" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + } + ] + }, + "unit": "ms" + }, + { + "description": "The size of the shards assigned to this index.", + "name": "elasticsearch.index.shards.size", + "sum": { + "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE", + "isMonotonic": false, + "dataPoints": [ + { + "asInt": "40230884", + "attributes": [ + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + } + ] + }, + "unit": "By" + }, + { + "description": "The total size of merged segments for an index.", + "name": "elasticsearch.index.operations.merge.size", + "sum": { + "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE", + "isMonotonic": true, + "dataPoints": [ + { + "asInt": "64", + "attributes": [ + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + } + ] + }, + "unit": "By" + }, + { + "description": "The total number of documents in merge operations for an index.", + "name": "elasticsearch.index.operations.merge.docs_count", + "sum": { + "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE", + "isMonotonic": true, + "dataPoints": [ + { + "asInt": "5", + "attributes": [ + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + } + ] + }, + "unit": "{documents}" + }, + { + "description": "Number of segments of an index.", + "name": "elasticsearch.index.segments.count", + "sum": { + "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE", + "isMonotonic": false, + "dataPoints": [ + { + "asInt": "5", + "attributes": [ + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "5", + "attributes": [ + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + } + ] + }, + "unit": "{segments}" + }, + { + "description": "Size of segments of an index.", + "name": "elasticsearch.index.segments.size", + "sum": { + "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE", + "isMonotonic": false, + "dataPoints": [ + { + "asInt": "5460", + "attributes": [ + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "5460", + "attributes": [ + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + } + ] + }, + "unit": "By" + }, + { + "description": "Size of memory for segment object of an index.", + "name": "elasticsearch.index.segments.memory", + "sum": { + "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE", + "isMonotonic": false, + "dataPoints": [ + { + "asInt": "2560", + "attributes": [ + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + }, + { + "key": "object", + "value": { + "stringValue": "term" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "380", + "attributes": [ + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + }, + { + "key": "object", + "value": { + "stringValue": "doc_value" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "37", + "attributes": [ + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + }, + { + "key": "object", + "value": { + "stringValue": "index_writer" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "21", + "attributes": [ + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + }, + { + "key": "object", + "value": { + "stringValue": "fixed_bit_set" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "2560", + "attributes": [ + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + }, + { + "key": "object", + "value": { + "stringValue": "term" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "380", + "attributes": [ + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + }, + { + "key": "object", + "value": { + "stringValue": "doc_value" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "37", + "attributes": [ + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + }, + { + "key": "object", + "value": { + "stringValue": "index_writer" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "21", + "attributes": [ + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + }, + { + "key": "object", + "value": { + "stringValue": "fixed_bit_set" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + } + ] + }, + "unit": "By" + }, + { + "description": "Number of transaction log operations for an index.", + "name": "elasticsearch.index.translog.operations", + "sum": { + "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE", + "isMonotonic": true, + "dataPoints": [ + { + "asInt": "5", + "attributes": [ + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + } + ] + }, + "unit": "{operations}" + }, + { + "description": "Size of the transaction log for an index.", + "name": "elasticsearch.index.translog.size", + "sum": { + "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE", + "isMonotonic": false, + "dataPoints": [ + { + "asInt": "55", + "attributes": [ + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + } + ] + }, + "unit": "By" + }, + { + "description": "The size in bytes of the cache for an index.", + "name": "elasticsearch.index.cache.memory.usage", + "sum": { + "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE", + "isMonotonic": false, + "dataPoints": [ + { + "asInt": "3", + "attributes": [ + { + "key": "cache_name", + "value": { + "stringValue": "fielddata" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "3", + "attributes": [ + { + "key": "cache_name", + "value": { + "stringValue": "fielddata" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "12", + "attributes": [ + { + "key": "cache_name", + "value": { + "stringValue": "query" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "12", + "attributes": [ + { + "key": "cache_name", + "value": { + "stringValue": "query" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + } + ] + }, + "unit": "By" + }, + { + "description": "The number of elements of the query cache for an index.", + "name": "elasticsearch.index.cache.size", + "sum": { + "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE", + "isMonotonic": false, + "dataPoints": [ + { + "asInt": "3", + "attributes": [ + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "3", + "attributes": [ + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + } + ] + }, + "unit": "1" + }, + { + "description": "The number of evictions from the cache for an index.", + "name": "elasticsearch.index.cache.evictions", + "sum": { + "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE", + "isMonotonic": true, + "dataPoints": [ + { + "asInt": "2", + "attributes": [ + { + "key": "cache_name", + "value": { + "stringValue": "query" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "2", + "attributes": [ + { + "key": "cache_name", + "value": { + "stringValue": "query" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + } + ] + }, + "unit": "{evictions}" + }, + { + "description": "The number of documents for an index.", + "name": "elasticsearch.index.documents", + "sum": { + "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE", + "isMonotonic": false, + "dataPoints": [ + { + "asInt": "40", + "attributes": [ + { + "key": "state", + "value": { + "stringValue": "active" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "40", + "attributes": [ + { + "key": "state", + "value": { + "stringValue": "active" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + } + ] + }, + "unit": "{documents}" + } + ], + "scope": { + "name": "otelcol/elasticsearchreceiver", + "version": "latest" + } + } + ] + }, + { + "resource": { + "attributes": [ + { + "key": "elasticsearch.index.name", + "value": { + "stringValue": "_all" + } + }, + { + "key": "elasticsearch.cluster.name", + "value": { + "stringValue": "docker-cluster" + } + } + ] + }, + "scopeMetrics": [ + { + "metrics": [ + { + "description": "The number of operations completed for an index.", + "name": "elasticsearch.index.operations.completed", + "sum": { + "aggregationTemporality": 2, + "isMonotonic": true, + "dataPoints": [ + { + "asInt": "43", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "fetch" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "43", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "query" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "40", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "index" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "12", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "delete" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "13", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "get" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "3", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "scroll" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "5", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "suggest" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "8", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "merge" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "10", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "refresh" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "4", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "flush" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "6", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "warmer" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "43", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "fetch" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "43", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "query" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "40", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "index" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "12", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "delete" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "13", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "get" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "3", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "scroll" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "5", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "suggest" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "8", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "merge" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "10", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "refresh" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "4", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "flush" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "6", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "warmer" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + } + ] + }, + "unit": "{operations}" + }, + { + "description": "Time spent on operations for an index.", + "name": "elasticsearch.index.operations.time", + "sum": { + "aggregationTemporality": 2, + "isMonotonic": true, + "dataPoints": [ + { + "asInt": "82", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "fetch" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "52", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "query" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "12", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "merge" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "938", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "index" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" } } ], @@ -2978,38 +4552,33 @@ "timeUnixNano": "1661811689943245000" }, { - "asInt": "21", + "asInt": "2", "attributes": [ { - "key": "aggregation", + "key": "operation", "value": { - "stringValue": "primary_shards" + "stringValue": "delete" } }, { - "key": "object", + "key": "aggregation", "value": { - "stringValue": "fixed_bit_set" + "stringValue": "total" } } ], "startTimeUnixNano": "1661811689941624000", "timeUnixNano": "1661811689943245000" - } - ] - }, - "unit": "By" - }, - { - "description": "Number of transaction log operations for an index.", - "name": "elasticsearch.index.translog.operations", - "sum": { - "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE", - "isMonotonic": true, - "dataPoints": [ + }, { - "asInt": "5", + "asInt": "3", "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "get" + } + }, { "key": "aggregation", "value": { @@ -3019,21 +4588,16 @@ ], "startTimeUnixNano": "1661811689941624000", "timeUnixNano": "1661811689943245000" - } - ] - }, - "unit": "{operations}" - }, - { - "description": "Size of the transaction log for an index.", - "name": "elasticsearch.index.translog.size", - "sum": { - "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE", - "isMonotonic": false, - "dataPoints": [ + }, { - "asInt": "55", + "asInt": "30", "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "scroll" + } + }, { "key": "aggregation", "value": { @@ -3043,31 +4607,20 @@ ], "startTimeUnixNano": "1661811689941624000", "timeUnixNano": "1661811689943245000" - } - ] - }, - "unit": "By" - }, - { - "description": "The size in bytes of the cache for an index.", - "name": "elasticsearch.index.cache.memory.usage", - "sum": { - "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE", - "isMonotonic": false, - "dataPoints": [ + }, { - "asInt": "3", + "asInt": "1", "attributes": [ { - "key": "cache_name", + "key": "operation", "value": { - "stringValue": "fielddata" + "stringValue": "suggest" } }, { "key": "aggregation", "value": { - "stringValue": "primary_shards" + "stringValue": "total" } } ], @@ -3075,12 +4628,12 @@ "timeUnixNano": "1661811689943245000" }, { - "asInt": "3", + "asInt": "169", "attributes": [ { - "key": "cache_name", + "key": "operation", "value": { - "stringValue": "fielddata" + "stringValue": "refresh" } }, { @@ -3094,18 +4647,18 @@ "timeUnixNano": "1661811689943245000" }, { - "asInt": "12", + "asInt": "192", "attributes": [ { - "key": "cache_name", + "key": "operation", "value": { - "stringValue": "query" + "stringValue": "flush" } }, { "key": "aggregation", "value": { - "stringValue": "primary_shards" + "stringValue": "total" } } ], @@ -3113,12 +4666,12 @@ "timeUnixNano": "1661811689943245000" }, { - "asInt": "12", + "asInt": "4", "attributes": [ { - "key": "cache_name", + "key": "operation", "value": { - "stringValue": "query" + "stringValue": "warmer" } }, { @@ -3130,21 +4683,16 @@ ], "startTimeUnixNano": "1661811689941624000", "timeUnixNano": "1661811689943245000" - } - ] - }, - "unit": "By" - }, - { - "description": "The number of elements of the query cache for an index.", - "name": "elasticsearch.index.cache.size", - "sum": { - "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE", - "isMonotonic": false, - "dataPoints": [ + }, { - "asInt": "3", + "asInt": "82", "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "fetch" + } + }, { "key": "aggregation", "value": { @@ -3156,36 +4704,31 @@ "timeUnixNano": "1661811689943245000" }, { - "asInt": "3", + "asInt": "52", "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "query" + } + }, { "key": "aggregation", "value": { - "stringValue": "total" + "stringValue": "primary_shards" } } ], "startTimeUnixNano": "1661811689941624000", "timeUnixNano": "1661811689943245000" - } - ] - }, - "unit": "1" - }, - { - "description": "The number of evictions from the cache for an index.", - "name": "elasticsearch.index.cache.evictions", - "sum": { - "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE", - "isMonotonic": true, - "dataPoints": [ + }, { - "asInt": "2", + "asInt": "12", "attributes": [ { - "key": "cache_name", + "key": "operation", "value": { - "stringValue": "query" + "stringValue": "merge" } }, { @@ -3199,48 +4742,37 @@ "timeUnixNano": "1661811689943245000" }, { - "asInt": "2", + "asInt": "938", "attributes": [ { - "key": "cache_name", + "key": "operation", "value": { - "stringValue": "query" + "stringValue": "index" } }, { "key": "aggregation", "value": { - "stringValue": "total" + "stringValue": "primary_shards" } } ], "startTimeUnixNano": "1661811689941624000", "timeUnixNano": "1661811689943245000" - } - ] - }, - "unit": "{evictions}" - }, - { - "description": "The number of documents for an index.", - "name": "elasticsearch.index.documents", - "sum": { - "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE", - "isMonotonic": false, - "dataPoints": [ + }, { - "asInt": "40", + "asInt": "2", "attributes": [ { - "key": "state", + "key": "operation", "value": { - "stringValue": "active" + "stringValue": "delete" } }, { "key": "aggregation", "value": { - "stringValue": "total" + "stringValue": "primary_shards" } } ], @@ -3248,12 +4780,12 @@ "timeUnixNano": "1661811689943245000" }, { - "asInt": "40", + "asInt": "3", "attributes": [ { - "key": "state", + "key": "operation", "value": { - "stringValue": "active" + "stringValue": "get" } }, { @@ -3265,59 +4797,20 @@ ], "startTimeUnixNano": "1661811689941624000", "timeUnixNano": "1661811689943245000" - } - ] - }, - "unit": "{documents}" - } - ], - "scope": { - "name": "otelcol/elasticsearchreceiver", - "version": "latest" - } - } - ] - }, - { - "resource": { - "attributes": [ - { - "key": "elasticsearch.index.name", - "value": { - "stringValue": "_all" - } - }, - { - "key": "elasticsearch.cluster.name", - "value": { - "stringValue": "docker-cluster" - } - } - ] - }, - "scopeMetrics": [ - { - "metrics": [ - { - "description": "The number of operations completed for an index.", - "name": "elasticsearch.index.operations.completed", - "sum": { - "aggregationTemporality": 2, - "isMonotonic": true, - "dataPoints": [ + }, { - "asInt": "43", + "asInt": "30", "attributes": [ { "key": "operation", "value": { - "stringValue": "fetch" + "stringValue": "scroll" } }, { "key": "aggregation", "value": { - "stringValue": "total" + "stringValue": "primary_shards" } } ], @@ -3325,48 +4818,37 @@ "timeUnixNano": "1661811689943245000" }, { - "asInt": "43", + "asInt": "1", "attributes": [ { "key": "operation", "value": { - "stringValue": "query" + "stringValue": "suggest" } }, { "key": "aggregation", "value": { - "stringValue": "total" + "stringValue": "primary_shards" } } ], "startTimeUnixNano": "1661811689941624000", "timeUnixNano": "1661811689943245000" - } - ] - }, - "unit": "{operations}" - }, - { - "description": "Time spent on operations for an index.", - "name": "elasticsearch.index.operations.time", - "sum": { - "aggregationTemporality": 2, - "isMonotonic": true, - "dataPoints": [ + }, { - "asInt": "82", + "asInt": "169", "attributes": [ { "key": "operation", "value": { - "stringValue": "fetch" + "stringValue": "refresh" } }, { "key": "aggregation", "value": { - "stringValue": "total" + "stringValue": "primary_shards" } } ], @@ -3374,18 +4856,18 @@ "timeUnixNano": "1661811689943245000" }, { - "asInt": "52", + "asInt": "192", "attributes": [ { "key": "operation", "value": { - "stringValue": "query" + "stringValue": "flush" } }, { "key": "aggregation", "value": { - "stringValue": "total" + "stringValue": "primary_shards" } } ], @@ -3393,18 +4875,18 @@ "timeUnixNano": "1661811689943245000" }, { - "asInt": "12", + "asInt": "4", "attributes": [ { "key": "operation", "value": { - "stringValue": "merge" + "stringValue": "warmer" } }, { "key": "aggregation", "value": { - "stringValue": "total" + "stringValue": "primary_shards" } } ], diff --git a/receiver/elasticsearchreceiver/testdata/expected_metrics/noNodes.json b/receiver/elasticsearchreceiver/testdata/expected_metrics/noNodes.json index c9930d7c4d38..6b11c943b060 100644 --- a/receiver/elasticsearchreceiver/testdata/expected_metrics/noNodes.json +++ b/receiver/elasticsearchreceiver/testdata/expected_metrics/noNodes.json @@ -283,6 +283,1296 @@ ], "startTimeUnixNano": "1661811689941624000", "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "40", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "index" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "12", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "delete" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "13", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "get" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "3", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "scroll" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "5", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "suggest" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "8", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "merge" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "10", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "refresh" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "4", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "flush" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "6", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "warmer" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "43", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "fetch" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "43", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "query" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "40", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "index" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "12", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "delete" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "13", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "get" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "3", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "scroll" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "5", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "suggest" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "8", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "merge" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "10", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "refresh" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "4", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "flush" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "6", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "warmer" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + } + ] + }, + "unit": "{operations}" + }, + { + "description": "Time spent on operations for an index.", + "name": "elasticsearch.index.operations.time", + "sum": { + "aggregationTemporality": 2, + "isMonotonic": true, + "dataPoints": [ + { + "asInt": "82", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "fetch" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "52", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "query" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "12", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "merge" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "938", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "index" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "2", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "delete" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "3", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "get" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "30", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "scroll" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "1", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "suggest" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "169", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "refresh" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "192", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "flush" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "4", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "warmer" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "82", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "fetch" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "52", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "query" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "12", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "merge" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "938", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "index" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "2", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "delete" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "3", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "get" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "30", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "scroll" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "1", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "suggest" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "169", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "refresh" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "192", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "flush" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "4", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "warmer" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + } + ] + }, + "unit": "ms" + }, + { + "description": "The size of the shards assigned to this index.", + "name": "elasticsearch.index.shards.size", + "sum": { + "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE", + "isMonotonic": false, + "dataPoints": [ + { + "asInt": "40230884", + "attributes": [ + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + } + ] + }, + "unit": "By" + } + ], + "scope": { + "name": "otelcol/elasticsearchreceiver", + "version": "latest" + } + } + ] + }, + { + "resource": { + "attributes": [ + { + "key": "elasticsearch.index.name", + "value": { + "stringValue": "_all" + } + }, + { + "key": "elasticsearch.cluster.name", + "value": { + "stringValue": "docker-cluster" + } + } + ] + }, + "scopeMetrics": [ + { + "metrics": [ + { + "description": "The number of operations completed for an index.", + "name": "elasticsearch.index.operations.completed", + "sum": { + "aggregationTemporality": 2, + "isMonotonic": true, + "dataPoints": [ + { + "asInt": "43", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "fetch" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "43", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "query" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "40", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "index" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "12", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "delete" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "13", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "get" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "3", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "scroll" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "5", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "suggest" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "8", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "merge" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "10", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "refresh" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "4", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "flush" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "6", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "warmer" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "43", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "fetch" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "43", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "query" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "40", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "index" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "12", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "delete" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "13", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "get" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "3", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "scroll" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "5", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "suggest" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "8", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "merge" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "10", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "refresh" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "4", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "flush" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "6", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "warmer" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" } ] }, @@ -296,12 +1586,69 @@ "isMonotonic": true, "dataPoints": [ { - "asInt": "82", + "asInt": "82", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "fetch" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "52", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "query" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "12", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "merge" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "938", "attributes": [ { "key": "operation", "value": { - "stringValue": "fetch" + "stringValue": "index" } }, { @@ -315,12 +1662,12 @@ "timeUnixNano": "1661811689943245000" }, { - "asInt": "52", + "asInt": "2", "attributes": [ { "key": "operation", "value": { - "stringValue": "query" + "stringValue": "delete" } }, { @@ -334,12 +1681,12 @@ "timeUnixNano": "1661811689943245000" }, { - "asInt": "12", + "asInt": "3", "attributes": [ { "key": "operation", "value": { - "stringValue": "merge" + "stringValue": "get" } }, { @@ -351,21 +1698,16 @@ ], "startTimeUnixNano": "1661811689941624000", "timeUnixNano": "1661811689943245000" - } - ] - }, - "unit": "ms" - }, - { - "description": "The size of the shards assigned to this index.", - "name": "elasticsearch.index.shards.size", - "sum": { - "aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE", - "isMonotonic": false, - "dataPoints": [ + }, { - "asInt": "40230884", + "asInt": "30", "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "scroll" + } + }, { "key": "aggregation", "value": { @@ -375,53 +1717,14 @@ ], "startTimeUnixNano": "1661811689941624000", "timeUnixNano": "1661811689943245000" - } - ] - }, - "unit": "By" - } - ], - "scope": { - "name": "otelcol/elasticsearchreceiver", - "version": "latest" - } - } - ] - }, - { - "resource": { - "attributes": [ - { - "key": "elasticsearch.index.name", - "value": { - "stringValue": "_all" - } - }, - { - "key": "elasticsearch.cluster.name", - "value": { - "stringValue": "docker-cluster" - } - } - ] - }, - "scopeMetrics": [ - { - "metrics": [ - { - "description": "The number of operations completed for an index.", - "name": "elasticsearch.index.operations.completed", - "sum": { - "aggregationTemporality": 2, - "isMonotonic": true, - "dataPoints": [ + }, { - "asInt": "43", + "asInt": "1", "attributes": [ { "key": "operation", "value": { - "stringValue": "fetch" + "stringValue": "suggest" } }, { @@ -435,12 +1738,12 @@ "timeUnixNano": "1661811689943245000" }, { - "asInt": "43", + "asInt": "169", "attributes": [ { "key": "operation", "value": { - "stringValue": "query" + "stringValue": "refresh" } }, { @@ -452,18 +1755,45 @@ ], "startTimeUnixNano": "1661811689941624000", "timeUnixNano": "1661811689943245000" - } - ] - }, - "unit": "{operations}" - }, - { - "description": "Time spent on operations for an index.", - "name": "elasticsearch.index.operations.time", - "sum": { - "aggregationTemporality": 2, - "isMonotonic": true, - "dataPoints": [ + }, + { + "asInt": "192", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "flush" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "4", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "warmer" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "total" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, { "asInt": "82", "attributes": [ @@ -476,7 +1806,7 @@ { "key": "aggregation", "value": { - "stringValue": "total" + "stringValue": "primary_shards" } } ], @@ -495,7 +1825,7 @@ { "key": "aggregation", "value": { - "stringValue": "total" + "stringValue": "primary_shards" } } ], @@ -514,7 +1844,159 @@ { "key": "aggregation", "value": { - "stringValue": "total" + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "938", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "index" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "2", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "delete" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "3", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "get" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "30", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "scroll" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "1", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "suggest" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "169", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "refresh" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "192", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "flush" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" + } + } + ], + "startTimeUnixNano": "1661811689941624000", + "timeUnixNano": "1661811689943245000" + }, + { + "asInt": "4", + "attributes": [ + { + "key": "operation", + "value": { + "stringValue": "warmer" + } + }, + { + "key": "aggregation", + "value": { + "stringValue": "primary_shards" } } ], diff --git a/receiver/elasticsearchreceiver/testdata/sample_payloads/indices.json b/receiver/elasticsearchreceiver/testdata/sample_payloads/indices.json index e6500f344f98..9d0bf0fc44d1 100644 --- a/receiver/elasticsearchreceiver/testdata/sample_payloads/indices.json +++ b/receiver/elasticsearchreceiver/testdata/sample_payloads/indices.json @@ -23,16 +23,16 @@ "index_time_in_millis" : 938, "index_current" : 0, "index_failed" : 0, - "delete_total" : 0, - "delete_time_in_millis" : 0, + "delete_total" : 12, + "delete_time_in_millis" : 2, "delete_current" : 0, "noop_update_total" : 0, "is_throttled" : false, "throttle_time_in_millis" : 0 }, "get" : { - "total" : 0, - "time_in_millis" : 0, + "total" : 13, + "time_in_millis" : 3, "exists_total" : 0, "exists_time_in_millis" : 0, "missing_total" : 0, @@ -50,15 +50,15 @@ "scroll_total" : 3, "scroll_time_in_millis" : 30, "scroll_current" : 0, - "suggest_total" : 0, - "suggest_time_in_millis" : 0, + "suggest_total" : 5, + "suggest_time_in_millis" : 1, "suggest_current" : 0 }, "merges" : { "current" : 0, "current_docs" : 0, "current_size_in_bytes" : 0, - "total" : 0, + "total" : 8, "total_time_in_millis" : 12, "total_docs" : 5, "total_size_in_bytes" : 64, @@ -81,7 +81,7 @@ "warmer" : { "current" : 0, "total" : 6, - "total_time_in_millis" : 0 + "total_time_in_millis" : 4 }, "query_cache" : { "memory_size_in_bytes" : 12, @@ -151,16 +151,16 @@ "index_time_in_millis" : 938, "index_current" : 0, "index_failed" : 0, - "delete_total" : 0, - "delete_time_in_millis" : 0, + "delete_total" : 12, + "delete_time_in_millis" : 2, "delete_current" : 0, "noop_update_total" : 0, "is_throttled" : false, "throttle_time_in_millis" : 0 }, "get" : { - "total" : 0, - "time_in_millis" : 0, + "total" : 13, + "time_in_millis" : 3, "exists_total" : 0, "exists_time_in_millis" : 0, "missing_total" : 0, @@ -178,15 +178,15 @@ "scroll_total" : 3, "scroll_time_in_millis" : 30, "scroll_current" : 0, - "suggest_total" : 0, - "suggest_time_in_millis" : 0, + "suggest_total" : 5, + "suggest_time_in_millis" : 1, "suggest_current" : 0 }, "merges" : { "current" : 0, "current_docs" : 0, "current_size_in_bytes" : 0, - "total" : 0, + "total" : 8, "total_time_in_millis" : 12, "total_docs" : 5, "total_size_in_bytes" : 64, @@ -209,7 +209,7 @@ "warmer" : { "current" : 0, "total" : 6, - "total_time_in_millis" : 0 + "total_time_in_millis" : 4 }, "query_cache" : { "memory_size_in_bytes" : 12, @@ -283,16 +283,16 @@ "index_time_in_millis" : 938, "index_current" : 0, "index_failed" : 0, - "delete_total" : 0, - "delete_time_in_millis" : 0, + "delete_total" : 12, + "delete_time_in_millis" : 2, "delete_current" : 0, "noop_update_total" : 0, "is_throttled" : false, "throttle_time_in_millis" : 0 }, "get" : { - "total" : 0, - "time_in_millis" : 0, + "total" : 13, + "time_in_millis" : 3, "exists_total" : 0, "exists_time_in_millis" : 0, "missing_total" : 0, @@ -310,15 +310,15 @@ "scroll_total" : 3, "scroll_time_in_millis" : 30, "scroll_current" : 0, - "suggest_total" : 0, - "suggest_time_in_millis" : 0, + "suggest_total" : 5, + "suggest_time_in_millis" : 1, "suggest_current" : 0 }, "merges" : { "current" : 0, "current_docs" : 0, "current_size_in_bytes" : 0, - "total" : 0, + "total" : 8, "total_time_in_millis" : 12, "total_docs" : 5, "total_size_in_bytes" : 64, @@ -341,7 +341,7 @@ "warmer" : { "current" : 0, "total" : 6, - "total_time_in_millis" : 0 + "total_time_in_millis" : 4 }, "query_cache" : { "memory_size_in_bytes" : 12, @@ -411,16 +411,16 @@ "index_time_in_millis" : 938, "index_current" : 0, "index_failed" : 0, - "delete_total" : 0, - "delete_time_in_millis" : 0, + "delete_total" : 12, + "delete_time_in_millis" : 2, "delete_current" : 0, "noop_update_total" : 0, "is_throttled" : false, "throttle_time_in_millis" : 0 }, "get" : { - "total" : 0, - "time_in_millis" : 0, + "total" : 13, + "time_in_millis" : 3, "exists_total" : 0, "exists_time_in_millis" : 0, "missing_total" : 0, @@ -438,15 +438,15 @@ "scroll_total" : 3, "scroll_time_in_millis" : 30, "scroll_current" : 0, - "suggest_total" : 0, - "suggest_time_in_millis" : 0, + "suggest_total" : 5, + "suggest_time_in_millis" : 1, "suggest_current" : 0 }, "merges" : { "current" : 0, "current_docs" : 0, "current_size_in_bytes" : 0, - "total" : 0, + "total" : 8, "total_time_in_millis" : 12, "total_docs" : 5, "total_size_in_bytes" : 64, @@ -469,7 +469,7 @@ "warmer" : { "current" : 0, "total" : 6, - "total_time_in_millis" : 0 + "total_time_in_millis" : 4 }, "query_cache" : { "memory_size_in_bytes" : 12,