Skip to content

Commit

Permalink
[exporter/datadog[ Rectify the histogram configuration parameter docu…
Browse files Browse the repository at this point in the history
…mentation (#21163)
  • Loading branch information
datsabk authored Apr 25, 2023
1 parent 4161191 commit 5f992df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion exporter/datadogexporter/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ type HistogramConfig struct {

// SendCountSum states if the export should send .sum and .count metrics for histograms.
// The default is false.
// Deprecated: [v0.75.0] Use `send_aggregations` (HistogramConfig.SendAggregations) instead.
// Deprecated: [v0.75.0] Use `send_aggregation_metrics` (HistogramConfig.SendAggregations) instead.
SendCountSum bool `mapstructure:"send_count_sum_metrics"`

// SendAggregations states if the exporter should send .sum, .count, .min and .max metrics for histograms.
Expand Down
5 changes: 3 additions & 2 deletions exporter/datadogexporter/examples/collector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ exporters:

## @param histograms - custom object - optional
## Histograms specific configuration.
# histogram:
## @param mode - string - optional - default: distributions
## How to report histograms. Valid values are:
##
Expand All @@ -184,10 +185,10 @@ exporters:
#
# send_count_sum_metrics: false

## @param send_aggreggations - boolean - optional - default: false
## @param send_aggregation_metrics - boolean - optional - default: false
## Whether to report sum, count, min and max as separate histogram metrics.
#
# send_aggreggations: false
# send_aggregation_metrics: false


## @param sums - custom object - optional
Expand Down

0 comments on commit 5f992df

Please sign in to comment.