- expfmt: add ABNF parser for OpenMetrics 2.0 by @bwplotka in #1016
- build(deps): bump ossf/scorecard-action from 2.4.4 to 2.5.0 by @dependabot[bot] in #1032
- build(deps): bump actions/upload-artifact from 7.0.1 to 7.0.2 by @dependabot[bot] in #1033
- build(deps): bump golang.org/x/net from 0.61.0 to 0.62.0 in the golang-org-x group across 1 directory by @dependabot[bot] in #1030
- expfmt: bump go-abnf to v0.5.5 by @PerryLink in #1029
- config: move Secret into its own package by @mrueg in #1024
- build(deps): bump the codeql group with 4 updates by @dependabot[bot] in #1031
- version: fix Slog godoc example to compile by @sueun-dev in #935
- build(deps): bump go.yaml.in/yaml/v2 from 2.4.4 to 2.4.5 by @dependabot[bot] in #1043
- build(deps): bump golang.org/x/oauth2 from 0.37.0 to 0.38.0 in the golang-org-x group across 1 directory by @dependabot[bot] in #1042
- expfmt: support Prometheus text format 1.0.0 by @ArthurSens in #1035
Full Changelog: https://github.com/prometheus/common/compare/v0.73.1...v0.74.0
- build(deps): bump github.com/pandatix/go-abnf from 0.5.1 to 0.5.3 by @bwplotka in #1027
Full Changelog: https://github.com/prometheus/common/compare/v0.73.0...v0.73.1
- expfmt: default to allow-utf-8 escaping for OpenMetrics 2.0 by @KR-Ravindra in #1008
- expfmt: add FmtOpenMetrics_2_0_0_rc format constant by @bwplotka in #1020
- expfmt: add ABNF-based OpenMetrics 1.0 parser by @bwplotka in #1015
- @KR-Ravindra made their first contribution in #1008
Full Changelog: https://github.com/prometheus/common/compare/v0.72.1...v0.73.0
- fix(config): deep copy the header in cloneRequest #982
- Fix MAINTAINERS.md link text typo in RELEASE.md #1009
- Synchronize common files from prometheus/prometheus #1010
- build(deps): bump the codeql group with 4 updates #1007
Full Changelog: https://github.com/prometheus/common/compare/v0.72.0...v0.72.1
- This release bumps go.mod to 1.26 -- mostly due to /x Go packages requiring 1.26 as well.
- This is the first release with the experimental support of OpenMetrics 2 encoding.
- feat: implement histogram and gauge histogram support for OpenMetrics 2.0 #964
- expfmt: reject nameless samples after metric metadata #988
- feat: implement summary support for OpenMetrics 2.0 #983
- docs(expfmt): update OpenMetrics 2.0 supported metric types comments #989
- optimize sample unmarshaling for json/v2 #991
- expfmt: simplify format constants and provide default negotiation slices #992
- expfmt: reject invalid UTF-8 and a trailing CR in OpenMetrics 2.0 metadata #998
- expfmt: stop a test leaving the shared parser on legacy validation #996
- Update supported Go versions #1004
- chore: Update linting #1002
- chore: Update gofumpt config and apply new formatting #987
- Synchronize common files from prometheus/prometheus #1003
- build(deps): bump the codeql group with 4 updates #980
- build(deps): bump the golang-org-x group across 1 directory with 2 updates #1000
- build(deps): bump github.com/prometheus/client_model from 0.6.2 to 0.6.3 in the prometheus group across 1 directory #1001
Full Changelog: https://github.com/prometheus/common/compare/v0.71.0...v0.72.0
- fix: use slog.DiscardHandler in promslog.NopLogger #960
- feat: implement gauge and counter support for OpenMetrics 2.0 #894
- fix: support exemplars with empty label sets in OpenMetrics 2.0 #965
- model: sort label names without boxing them into sort.Interface #963
- expfmt: fix wildcard content negotiation regression for Negotiate and NegotiateIncludingOpenMetrics #966
- expfmt: precompute parsed goautoneg.Accept for well-known Format constants #967
- expfmt: format OpenMetrics 2.0 float values and validate units #969
- fix: drop invalid OpenMetrics 2.0 exemplars instead of failing exposition #970
- model: add Duration unit constants and conversion methods #952
- expfmt: prevent st@ leaking to Gauge and Untyped samples in OpenMetrics 2.0 #971
- expfmt: fix OpenMetrics 2.0 decoder error, format docs, and encoder version dispatch #968
- Synchronize common files from prometheus/prometheus #957 #958 #959 #961
- build(deps): bump the codeql group across 1 directory with 4 updates #955
- build(deps): bump ossf/scorecard-action from 2.4.3 to 2.4.4 #956
- build(deps): bump github.com/stretchr/testify from 1.11.1 to 1.12.1 #977
- build(deps): bump google.golang.org/protobuf from 1.36.11 to 1.36.12 #976
- build(deps): bump golang.org/x/net from 0.57.0 to 0.58.0 in the golang-org-x group across 1 directory #975
- Update dependabot config #978
- build(deps): bump github.com/stretchr/testify from 1.11.1 to 1.12.1 in /assets #979
Full Changelog: https://github.com/prometheus/common/compare/v0.70.0...v0.71.0
- route: add support for the QUERY HTTP method. #932
- config: fix
TLSVersion.String()printing a pointer address instead of the numeric version for unknown TLS versions. #929
- expfmt: add
BenchmarkConvertMetricFamilycomparing the Prometheus text and OpenMetrics 1.0 encoders. #943 - Update Go dependencies. #933 #934
- Synchronize common files from prometheus/prometheus. #923 #927 #930 #937
- Update GitHub Actions. #938 #939 #940 #941 #942
Full Changelog: https://github.com/prometheus/common/compare/v0.69.0...v0.70.0
- config: credentials are no longer forwarded across cross-host redirects. When
FollowRedirectsis enabled, the HTTP client now stripsAuthorization,Cookie,Proxy-Authorizationand other sensitive headers, and skips basic-auth, bearer-token and OAuth2 credentials, when a redirect points to a different host. This aligns with Go'snet/httpbehavior. Callers that relied on credentials being sent to a redirect target on another host will need to target that host directly. #901 #920 #921 - config:
LoadHTTPConfigFilenow resolves relative file paths (e.g.*_filecredentials,http_headersfiles) against the config file's own directory instead of its parent directory. Configs that worked around the old behavior by prefixing paths with the config's directory name must drop that prefix. #925
- expfmt: fix nil pointer panic when parsing empty braces
{}. #922 - model: fix
Time.UnmarshalJSONfor larger negative numbers. #918
- model: reduce allocations in
Time.UnmarshalJSON. #918
- Synchronize common files from prometheus/prometheus. #917
- Modernize Go. #919
Full Changelog: https://github.com/prometheus/common/compare/v0.68.1...v0.69.0
- config: Fix panic in
tlsRoundTripperwhen CA file is absent by @ndk in #792 - Cleanup linting issues by @SuperQ in #860
- @ndk made their first contribution in #792
Full Changelog: https://github.com/prometheus/common/compare/v0.67.1...v0.67.2
- Remove VERSION file to avoid Go conflict error in #853
Full Changelog: https://github.com/prometheus/common/compare/v0.67.0...v0.67.1
- Create CHANGELOG.md for easier communication of library changes, especially possible breaking changes. by @ywwg in #833
- model: New test for validation with dots by @m1k1o in #759
- expfmt: document NewTextParser as required by @burgerdev in #842
- expfmt: Add support for float histograms and gauge histograms by @beorn7 in #843
- Updated minimum Go version to 1.24.0, updated Go dependecies by @SuperQ in #849
Full Changelog: https://github.com/prometheus/common/compare/v0.66.1...v0.67.0
This release has no functional changes, it just drops the dependencies github.com/grafana/regexp and go.uber.org/atomic and replaces gopkg.in/yaml.v2 with go.yaml.in/yaml/v2 (a drop-in replacement).
- Revert "Use github.com/grafana/regexp instead of regexp" by @aknuds1 in #835
- Move to supported version of yaml parser by @dims in #834
- Revert "Use go.uber.org/atomic instead of sync/atomic (#825)" by @aknuds1 in #838
Full Changelog: https://github.com/prometheus/common/compare/v1.20.99...v0.66.1
- A default-constructed TextParser will be invalid. It must have a valid
schemeset, so users should use the NewTextParser function to create a valid TextParser. Otherwise parsing will panic with "Invalid name validation scheme requested: unset".
-
model: add constants for type and unit labels. by @bwplotka in #801
-
model.ValidationScheme: Support encoding as YAML by @aknuds1 in #799
-
fix(promslog): always print time.Duration values as go duration strings by @tjhop in #798
-
Add
ValidationSchememethodsIsValidMetricNameandIsValidLabelNameby @aknuds1 in #806 -
Fix delimited proto not escaped correctly by @thampiotr in #809
-
Decoder: Remove use of global name validation and add validation by @ywwg in #808
-
ValidationScheme implements pflag.Value and json.Marshaler/Unmarshaler interfaces by @juliusmh in #807
-
expfmt: Add NewTextParser function by @aknuds1 in #816
-
Enable the godot linter by @aknuds1 in #821
-
Enable usestdlibvars linter by @aknuds1 in #820
-
Enable unconvert linter by @aknuds1 in #819
-
Enable the fatcontext linter by @aknuds1 in #822
-
Enable gocritic linter by @aknuds1 in #818
-
Use go.uber.org/atomic instead of sync/atomic by @aknuds1 in #825
-
Enable revive rule unused-parameter by @aknuds1 in #824
-
Enable revive rules by @aknuds1 in #823
-
Synchronize common files from prometheus/prometheus by @prombot in #802
-
Synchronize common files from prometheus/prometheus by @prombot in #803
-
Sync .golangci.yml with prometheus/prometheus by @aknuds1 in #817
-
ci: update upload-actions by @ywwg in #814
-
docs: fix typo in expfmt.Negotiate by @wmcram in #813
-
build(deps): bump golang.org/x/net from 0.40.0 to 0.41.0 by @dependabot[bot] in #800
-
build(deps): bump golang.org/x/net from 0.41.0 to 0.42.0 by @dependabot[bot] in #810
-
build(deps): bump github.com/stretchr/testify from 1.10.0 to 1.11.1 in /assets by @dependabot[bot] in #826
-
build(deps): bump google.golang.org/protobuf from 1.36.6 to 1.36.8 by @dependabot[bot] in #830
-
build(deps): bump golang.org/x/net from 0.42.0 to 0.43.0 by @dependabot[bot] in #829
-
build(deps): bump github.com/stretchr/testify from 1.10.0 to 1.11.1 by @dependabot[bot] in #827