Skip to content

Commit

Permalink
maint: cherry pick v2.8.4 commits into main. (#1383)
Browse files Browse the repository at this point in the history
## Which problem is this PR solving?

- gets the changes from 2.8.4 into main

## Short description of the changes

- update `collector_collect_loop_duration_ms` type
- run `make all`
- get 2.8.4 changelog and release notes.
  • Loading branch information
TylerHelmuth authored Oct 11, 2024
1 parent 4b93287 commit 71a2179
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 12 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Refinery Changelog

## 2.8.4 2024-10-11

### Fixes

- fix: Switch `collector_collect_loop_duration_ms` metric to be a histogram (#1381) | [Tyler Helmuth](https://github.com/TylerHelmuth)

## 2.8.3 2024-10-08

### Changes
Expand Down
5 changes: 5 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

While [CHANGELOG.md](./CHANGELOG.md) contains detailed documentation and links to all the source code changes in a given release, this document is intended to be aimed at a more comprehensible version of the contents of the release from the point of view of users of Refinery.

## Version 2.8.4

This is a bug fix release and includes the follow change:
* Changes the new `collector_collect_loop_duration_ms` metric introduced in `v2.8.3` to be a histogram instead of a gauge. This ensures the minimum and maximum values from each interval is recorded.

## Version 2.8.3

This is a bug fix release and includes the follow changes+~+:
Expand Down
4 changes: 2 additions & 2 deletions collect/collect.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ var inMemCollectorMetrics = []metrics.Metadata{
{Name: "trace_kept_sample_rate", Type: metrics.Histogram, Unit: metrics.Dimensionless, Description: "sample rate of kept traces"},
{Name: "trace_aggregate_sample_rate", Type: metrics.Histogram, Unit: metrics.Dimensionless, Description: "aggregate sample rate of both kept and dropped traces"},
{Name: "collector_redistribute_traces_duration_ms", Type: metrics.Histogram, Unit: metrics.Milliseconds, Description: "duration of redistributing traces to peers"},
{Name: "collector_collect_loop_duration_ms", Type: metrics.Gauge, Unit: metrics.Milliseconds, Description: "duration of the collect loop, the primary event processing goroutine"},
{Name: "collector_collect_loop_duration_ms", Type: metrics.Histogram, Unit: metrics.Milliseconds, Description: "duration of the collect loop, the primary event processing goroutine"},
}

func (i *InMemCollector) Start() error {
Expand Down Expand Up @@ -399,7 +399,7 @@ func (i *InMemCollector) collect() {
}
}

i.Metrics.Gauge("collector_collect_loop_duration_ms", float64(time.Now().Sub(startTime).Milliseconds()))
i.Metrics.Histogram("collector_collect_loop_duration_ms", float64(time.Now().Sub(startTime).Milliseconds()))
}
}

Expand Down
2 changes: 1 addition & 1 deletion config.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Honeycomb Refinery Configuration Documentation

This is the documentation for the configuration file for Honeycomb's Refinery.
It was automatically generated on 2024-10-10 at 17:01:39 UTC.
It was automatically generated on 2024-10-11 at 16:33:01 UTC.

## The Config file

Expand Down
4 changes: 2 additions & 2 deletions config_complete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Honeycomb Refinery Configuration ##
######################################
#
# created on 2024-10-10 at 17:01:39 UTC from ../../config.yaml using a template generated on 2024-10-10 at 17:01:33 UTC
# created on 2024-10-11 at 16:33:00 UTC from ../../config.yaml using a template generated on 2024-10-11 at 16:32:50 UTC

# This file contains a configuration for the Honeycomb Refinery. It is in YAML
# format, organized into named groups, each of which contains a set of
Expand Down Expand Up @@ -1135,8 +1135,8 @@ Specialized:
##
## Eligible for live reload.
# AdditionalAttributes:
# environment: production
# ClusterName: MyCluster
# environment: production

###############
## ID Fields ##
Expand Down
4 changes: 2 additions & 2 deletions metrics.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Honeycomb Refinery Metrics Documentation

This document contains the description of various metrics used in Refinery.
It was automatically generated on 2024-10-10 at 17:01:38 UTC.
It was automatically generated on 2024-10-11 at 16:33:00 UTC.

Note: This document does not include metrics defined in the dynsampler-go dependency, as those metrics are generated dynamically at runtime. As a result, certain metrics may be missing or incomplete in this document, but they will still be available during execution with their full names.

Expand Down Expand Up @@ -59,7 +59,7 @@ This table includes metrics with fully defined names.
| trace_kept_sample_rate | Histogram | Dimensionless | sample rate of kept traces |
| trace_aggregate_sample_rate | Histogram | Dimensionless | aggregate sample rate of both kept and dropped traces |
| collector_redistribute_traces_duration_ms | Histogram | Milliseconds | duration of redistributing traces to peers |
| collector_collect_loop_duration_ms | Gauge | Milliseconds | duration of the collect loop, the primary event processing goroutine |
| collector_collect_loop_duration_ms | Histogram | Milliseconds | duration of the collect loop, the primary event processing goroutine |
| cluster_stress_level | Gauge | Dimensionless | The overall stress level of the cluster |
| individual_stress_level | Gauge | Dimensionless | The stress level of the individual node |
| stress_level | Gauge | Dimensionless | The stress level that's being used to determine whether to activate stress relief |
Expand Down
2 changes: 1 addition & 1 deletion rules.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Honeycomb Refinery Rules Documentation

This is the documentation for the rules configuration for Honeycomb's Refinery.
It was automatically generated on 2024-10-10 at 17:01:40 UTC.
It was automatically generated on 2024-10-11 at 16:33:02 UTC.

## The Rules file

Expand Down
2 changes: 1 addition & 1 deletion tools/convert/configDataNames.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Names of groups and fields in the new config file format.
# Automatically generated on 2024-10-10 at 17:01:34 UTC.
# Automatically generated on 2024-10-11 at 16:32:56 UTC.

General:
- ConfigurationVersion
Expand Down
2 changes: 1 addition & 1 deletion tools/convert/metricsMeta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ complete:
unit: Milliseconds
description: duration of redistributing traces to peers
- name: collector_collect_loop_duration_ms
type: Gauge
type: Histogram
unit: Milliseconds
description: duration of the collect loop, the primary event processing goroutine
- name: cluster_stress_level
Expand Down
2 changes: 1 addition & 1 deletion tools/convert/minimal_config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# sample uncommented config file containing all possible fields
# automatically generated on 2024-10-10 at 17:01:35 UTC
# automatically generated on 2024-10-11 at 16:32:57 UTC
General:
ConfigurationVersion: 2
MinRefineryVersion: "v2.0"
Expand Down
2 changes: 1 addition & 1 deletion tools/convert/templates/configV2.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Honeycomb Refinery Configuration ##
######################################
#
# created {{ now }} from {{ .Input }} using a template generated on 2024-10-10 at 17:01:33 UTC
# created {{ now }} from {{ .Input }} using a template generated on 2024-10-11 at 16:32:50 UTC

# This file contains a configuration for the Honeycomb Refinery. It is in YAML
# format, organized into named groups, each of which contains a set of
Expand Down

0 comments on commit 71a2179

Please sign in to comment.