Skip to content

[receiver/chrony] Enable re-aggregation feature#1

Closed
lazureykis wants to merge 1 commit into
mainfrom
chrony-enable-reaggregation
Closed

[receiver/chrony] Enable re-aggregation feature#1
lazureykis wants to merge 1 commit into
mainfrom
chrony-enable-reaggregation

Conversation

@lazureykis

@lazureykis lazureykis commented Apr 9, 2026

Copy link
Copy Markdown
Owner

Description

Enables dynamic metric reaggregation in the Chrony receiver. Collector configuration files can now define a set of attributes per metric to aggregate data by. This can be done for any metric attribute at a requirement level of recommended or below.

For more information about how reaggregation works, see open-telemetry/opentelemetry-collector#14281.

Changes:

  • Set reaggregation_enabled: true in metadata.yaml
  • Set leap.status attribute to requirement_level: recommended
  • Ran go generate ./... to regenerate all derived files

Link to tracking issue

Fixes open-telemetry#46350
Part of open-telemetry#45396

Testing

  • go test -race ./... in receiver/chronyreceiver/ — all 27 tests pass (including reaggregate_set)
  • go vet ./... — clean
  • make chlog-validate — valid

Documentation

No documentation changes needed. The generated documentation.md is updated automatically by go generate.

@lazureykis lazureykis force-pushed the chrony-enable-reaggregation branch from 8cdd259 to fc5f371 Compare April 9, 2026 16:16
Set reaggregation_enabled: true and requirement_level: recommended
for the leap.status attribute, allowing users to reduce metric
cardinality by dropping the attribute and aggregating datapoints.

Fixes open-telemetry#46350

Assisted-by: Claude Opus 4.6
@lazureykis lazureykis force-pushed the chrony-enable-reaggregation branch from fc5f371 to 7bd5d64 Compare April 10, 2026 13:43
@lazureykis lazureykis closed this Apr 10, 2026
lazureykis pushed a commit that referenced this pull request Apr 15, 2026
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Add support timeout setting for telemetrygen 


<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes open-telemetry#47203

#### Testing

Sending traces to a collector that has an artificial delay of `10s`
before answering
```
❯ go run . traces --traces 1 --timeout 5s --otlp-insecure
2026-04-01T17:29:31.673+0300	INFO	channelz/trace.go:200	[core] [Channel #1] Channel Connectivity change to READY	{"grpc_log": true}
2026/04/01 17:29:34 traces export: context deadline exceeded: rpc error: code = DeadlineExceeded desc = context deadline exceeded
2026-04-01T17:29:34.980+0300	INFO	channelz/trace.go:200	[core] [Channel #1] Channel Connectivity change to SHUTDOWN	{"grpc_log": true}
```

```
❯ go run . traces --traces 1 --timeout 15s --otlp-insecure
2026-04-01T17:30:42.046+0300	INFO	channelz/trace.go:200	[core] [Channel #1] Channel Connectivity change to READY	{"grpc_log": true}
2026-04-01T17:30:52.052+0300	INFO	channelz/trace.go:200	[core] [Channel #1] Channel Connectivity change to SHUTDOWN	{"grpc_log": true}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[receiver/chrony] Enable re-aggregation feature

1 participant