internal/beater/config/aggregation.go (19 lines of code) (raw):

// Licensed to Elasticsearch B.V. under one or more contributor // license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright // ownership. Elasticsearch B.V. licenses this file to you under // the Apache License, Version 2.0 (the "License"); you may // not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. package config // AggregationConfig holds configuration related to various metrics aggregations. type AggregationConfig struct { MaxServices int `config:"max_services"` // if <= 0 then will be set based on memory limits Transactions TransactionAggregationConfig `config:"transactions"` ServiceDestinations ServiceDestinationAggregationConfig `config:"service_destinations"` ServiceTransactions ServiceTransactionAggregationConfig `config:"service_transactions"` } // TransactionAggregationConfig holds configuration related to transaction metrics aggregation. type TransactionAggregationConfig struct { MaxGroups int `config:"max_groups"` // if <= 0 then will be set based on memory limits } // ServiceDestinationAggregationConfig holds configuration related to span metrics aggregation for service maps. type ServiceDestinationAggregationConfig struct { MaxGroups int `config:"max_groups"` // if <= 0 then will be set based on memory limits } // ServiceTransactionAggregationConfig holds configuration related to service transaction metrics aggregation. type ServiceTransactionAggregationConfig struct { MaxGroups int `config:"max_groups"` // if <= 0 then will be set based on memory limits } func defaultAggregationConfig() AggregationConfig { return AggregationConfig{} }