Skip to content

Commit

Permalink
Changelog and deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
thampiotr committed May 16, 2024
1 parent 6d8dd66 commit 85a3d1f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ Main (unreleased)

- (_Public preview_) Add native histogram support to `otelcol.receiver.prometheus`. (@wildum)

- Added `scrape_protocols` option to `prometheus.scrape`, which allows to
control the preferred order of scrape protocols. (@thampiotr)

### Bugfixes

- Fix panic when component ID contains `/` in `otelcomponent.MustNewType(ID)`.(@qclaogui)
Expand All @@ -37,6 +40,14 @@ Main (unreleased)

- `prometheus.exporter.snmp`: Updating SNMP exporter from v0.24.1 to v0.26.0.

- `prometheus.scrape` component's `enable_protobuf_negotiation` argument is now
deprecated and will be removed in a future major release.
Use `scrape_protocols` instead and refer to `prometheus.scrape` reference
documentation for further details. (@thampiotr)

- Updated Prometheus dependency to [v2.51.2](https://github.com/prometheus/prometheus/releases/tag/v2.51.2) (@thampiotr)


v1.1.0
------

Expand Down
4 changes: 4 additions & 0 deletions internal/component/prometheus/scrape/scrape.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,10 @@ func New(o component.Options, args Arguments) (*Component, error) {
return nil, err
}

if args.EnableProtobufNegotiation {
level.Warn(o.Logger).Log("msg", "enable_protobuf_negotiation is deprecated and will be removed in a future major release, use scrape_protocols instead")
}

return c, nil
}

Expand Down

0 comments on commit 85a3d1f

Please sign in to comment.