Skip to content

Commit 749b643

Browse files
committed
feat: receiver/prometheusremotewrite - Content-Type negotiation
Signed-off-by: Arthur Silva Sens <[email protected]>
1 parent cc95389 commit 749b643

File tree

5 files changed

+832
-7
lines changed

5 files changed

+832
-7
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: enhancement
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
7+
component: receiver/prometheusremotewrite
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Implement Content-Type negotiation for Prometheus Remote Write requests
11+
12+
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
13+
issues: [35565]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
subtext: Warning - The HTTP Server still doesn't do anything. It's just a placeholder for now.
19+
20+
# If your change doesn't affect end users or the exported elements of any package,
21+
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
22+
# Optional: The change log or logs in which this entry should be included.
23+
# e.g. '[user]' or '[user, api]'
24+
# Include 'user' if the change is relevant to end users.
25+
# Include 'api' if there is a change to a library API.
26+
# Default: '[user]'
27+
change_logs: [api, user]

receiver/prometheusremotewritereceiver/go.mod

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module github.com/open-telemetry/opentelemetry-collector-contrib/receiver/promet
33
go 1.22.0
44

55
require (
6+
github.com/prometheus/prometheus v0.54.1
67
github.com/stretchr/testify v1.9.0
78
go.opentelemetry.io/collector/component v0.111.1-0.20241008154146-ea48c09c31ae
89
go.opentelemetry.io/collector/component/componentstatus v0.111.1-0.20241008154146-ea48c09c31ae
@@ -12,28 +13,52 @@ require (
1213
go.opentelemetry.io/collector/consumer/consumertest v0.111.1-0.20241008154146-ea48c09c31ae
1314
go.opentelemetry.io/collector/receiver v0.111.1-0.20241008154146-ea48c09c31ae
1415
go.uber.org/goleak v1.3.0
16+
go.uber.org/zap v1.27.0
1517
)
1618

1719
require (
18-
github.com/davecgh/go-spew v1.1.1 // indirect
20+
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.13.0 // indirect
21+
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0 // indirect
22+
github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 // indirect
23+
github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 // indirect
24+
github.com/alecthomas/units v0.0.0-20240626203959-61d1e3462e30 // indirect
25+
github.com/aws/aws-sdk-go v1.54.19 // indirect
26+
github.com/beorn7/perks v1.0.1 // indirect
27+
github.com/cespare/xxhash/v2 v2.3.0 // indirect
28+
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
1929
github.com/felixge/httpsnoop v1.0.4 // indirect
2030
github.com/fsnotify/fsnotify v1.7.0 // indirect
31+
github.com/go-kit/log v0.2.1 // indirect
32+
github.com/go-logfmt/logfmt v0.6.0 // indirect
2133
github.com/go-logr/logr v1.4.2 // indirect
2234
github.com/go-logr/stdr v1.2.2 // indirect
2335
github.com/go-viper/mapstructure/v2 v2.1.0 // indirect
2436
github.com/gogo/protobuf v1.3.2 // indirect
37+
github.com/golang-jwt/jwt/v5 v5.2.1 // indirect
2538
github.com/golang/snappy v0.0.4 // indirect
2639
github.com/google/uuid v1.6.0 // indirect
40+
github.com/grafana/regexp v0.0.0-20240518133315-a468a5bfb3bc // indirect
41+
github.com/jmespath/go-jmespath v0.4.0 // indirect
42+
github.com/jpillora/backoff v1.0.0 // indirect
2743
github.com/json-iterator/go v1.1.12 // indirect
2844
github.com/klauspost/compress v1.17.10 // indirect
2945
github.com/knadh/koanf/maps v0.1.1 // indirect
3046
github.com/knadh/koanf/providers/confmap v0.1.0 // indirect
3147
github.com/knadh/koanf/v2 v2.1.1 // indirect
48+
github.com/kylelemons/godebug v1.1.0 // indirect
3249
github.com/mitchellh/copystructure v1.2.0 // indirect
3350
github.com/mitchellh/reflectwalk v1.0.2 // indirect
3451
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
3552
github.com/modern-go/reflect2 v1.0.2 // indirect
36-
github.com/pmezard/go-difflib v1.0.0 // indirect
53+
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
54+
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f // indirect
55+
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect
56+
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
57+
github.com/prometheus/client_golang v1.19.1 // indirect
58+
github.com/prometheus/client_model v0.6.1 // indirect
59+
github.com/prometheus/common v0.55.0 // indirect
60+
github.com/prometheus/common/sigv4 v0.1.0 // indirect
61+
github.com/prometheus/procfs v0.15.1 // indirect
3762
github.com/rs/cors v1.11.1 // indirect
3863
go.opentelemetry.io/collector/client v1.17.1-0.20241008154146-ea48c09c31ae // indirect
3964
go.opentelemetry.io/collector/config/configauth v0.111.1-0.20241008154146-ea48c09c31ae // indirect
@@ -57,12 +82,20 @@ require (
5782
go.opentelemetry.io/otel/sdk/metric v1.30.0 // indirect
5883
go.opentelemetry.io/otel/trace v1.30.0 // indirect
5984
go.uber.org/multierr v1.11.0 // indirect
60-
go.uber.org/zap v1.27.0 // indirect
85+
golang.org/x/crypto v0.28.0 // indirect
6186
golang.org/x/net v0.30.0 // indirect
87+
golang.org/x/oauth2 v0.22.0 // indirect
6288
golang.org/x/sys v0.26.0 // indirect
6389
golang.org/x/text v0.19.0 // indirect
90+
golang.org/x/time v0.5.0 // indirect
91+
google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 // indirect
6492
google.golang.org/genproto/googleapis/rpc v0.0.0-20240822170219-fc7c04adadcd // indirect
6593
google.golang.org/grpc v1.67.1 // indirect
6694
google.golang.org/protobuf v1.35.1 // indirect
95+
gopkg.in/yaml.v2 v2.4.0 // indirect
6796
gopkg.in/yaml.v3 v3.0.1 // indirect
97+
k8s.io/apimachinery v0.29.3 // indirect
98+
k8s.io/client-go v0.29.3 // indirect
99+
k8s.io/klog/v2 v2.130.1 // indirect
100+
k8s.io/utils v0.0.0-20230726121419-3b25d923346b // indirect
68101
)

0 commit comments

Comments
 (0)