Skip to content

Commit d4212ff

Browse files
authored
Update dependency to the official prometheus library (#481)
Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
1 parent 18907db commit d4212ff

6 files changed

Lines changed: 8 additions & 7 deletions

File tree

otelcollector/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"net/http"
1919
"time"
2020

21-
prombridge "github.com/ArthurSens/prometheus-collector-bridge"
21+
prombridge "github.com/prometheus/opentelemetry-collector-bridge"
2222
)
2323

2424
// Config maps stackdriver_exporter runtime settings into exporter_config.

otelcollector/factory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ package otelcollector
1616
import (
1717
"log/slog"
1818

19-
prombridge "github.com/ArthurSens/prometheus-collector-bridge"
19+
prombridge "github.com/prometheus/opentelemetry-collector-bridge"
2020
"go.opentelemetry.io/collector/component"
2121
"go.opentelemetry.io/collector/receiver"
2222
)

otelcollector/factory_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"context"
1818
"testing"
1919

20-
prombridge "github.com/ArthurSens/prometheus-collector-bridge"
20+
prombridge "github.com/prometheus/opentelemetry-collector-bridge"
2121
"go.opentelemetry.io/collector/consumer/consumertest"
2222
"go.opentelemetry.io/collector/receiver/receivertest"
2323
)

otelcollector/go.mod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ module github.com/prometheus-community/stackdriver_exporter/otelcollector
33
go 1.25.0
44

55
require (
6-
github.com/ArthurSens/prometheus-collector-bridge v0.0.0-20260227220117-1744a07e66f4
76
github.com/PuerkitoBio/rehttp v1.4.0
87
github.com/prometheus-community/stackdriver_exporter v0.0.0
98
github.com/prometheus/client_golang v1.23.2
9+
github.com/prometheus/opentelemetry-collector-bridge v0.0.0-20260317204527-5fc426455618
1010
go.opentelemetry.io/collector/component v1.54.0
1111
go.opentelemetry.io/collector/consumer/consumertest v0.148.0
1212
go.opentelemetry.io/collector/receiver v1.54.0
@@ -66,6 +66,7 @@ require (
6666
golang.org/x/net v0.51.0 // indirect
6767
golang.org/x/sys v0.41.0 // indirect
6868
golang.org/x/text v0.34.0 // indirect
69+
google.golang.org/genproto/googleapis/api v0.0.0-20260128011058-8636f8732409 // indirect
6970
google.golang.org/genproto/googleapis/rpc v0.0.0-20260128011058-8636f8732409 // indirect
7071
google.golang.org/grpc v1.79.2 // indirect
7172
google.golang.org/protobuf v1.36.11 // indirect

otelcollector/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ cloud.google.com/go/auth/oauth2adapt v0.2.8 h1:keo8NaayQZ6wimpNSmW5OPc283g65QNIi
44
cloud.google.com/go/auth/oauth2adapt v0.2.8/go.mod h1:XQ9y31RkqZCcwJWNSx2Xvric3RrU88hAYYbjDWYDL+c=
55
cloud.google.com/go/compute/metadata v0.9.0 h1:pDUj4QMoPejqq20dK0Pg2N4yG9zIkYGdBtwLoEkH9Zs=
66
cloud.google.com/go/compute/metadata v0.9.0/go.mod h1:E0bWwX5wTnLPedCKqk3pJmVgCBSM6qQI1yTBdEb3C10=
7-
github.com/ArthurSens/prometheus-collector-bridge v0.0.0-20260227220117-1744a07e66f4 h1:Cxm7zt1opKBW2EVoQi4D6THdQofmgcUsFNGy+HaZwmA=
8-
github.com/ArthurSens/prometheus-collector-bridge v0.0.0-20260227220117-1744a07e66f4/go.mod h1:542FBzGmxriMHXZj6/PLgg1OXJW93TOIitB43+8sq/Y=
97
github.com/PuerkitoBio/rehttp v1.4.0 h1:rIN7A2s+O9fmHUM1vUcInvlHj9Ysql4hE+Y0wcl/xk8=
108
github.com/PuerkitoBio/rehttp v1.4.0/go.mod h1:LUwKPoDbDIA2RL5wYZCNsQ90cx4OJ4AWBmq6KzWZL1s=
119
github.com/aybabtme/iocontrol v0.0.0-20150809002002-ad15bcfc95a0 h1:0NmehRCgyk5rljDQLKUO+cRJCnduDyn11+zGZIc9Z48=
@@ -76,6 +74,8 @@ github.com/prometheus/client_model v0.6.2 h1:oBsgwpGs7iVziMvrGhE53c/GrLUsZdHnqNw
7674
github.com/prometheus/client_model v0.6.2/go.mod h1:y3m2F6Gdpfy6Ut/GBsUqTWZqCUvMVzSfMLjcu6wAwpE=
7775
github.com/prometheus/common v0.67.5 h1:pIgK94WWlQt1WLwAC5j2ynLaBRDiinoAb86HZHTUGI4=
7876
github.com/prometheus/common v0.67.5/go.mod h1:SjE/0MzDEEAyrdr5Gqc6G+sXI67maCxzaT3A2+HqjUw=
77+
github.com/prometheus/opentelemetry-collector-bridge v0.0.0-20260317204527-5fc426455618 h1:avrl4ZBB6yhuq4v44d9vEBiOsdvCbfRQ4JArrAibjhY=
78+
github.com/prometheus/opentelemetry-collector-bridge v0.0.0-20260317204527-5fc426455618/go.mod h1:w/7D5Cq1Hu2qYrKyWP/qf9H7Chlr91Ia8zqKBfqGx00=
7979
github.com/prometheus/procfs v0.20.1 h1:XwbrGOIplXW/AU3YhIhLODXMJYyC1isLFfYCsTEycfc=
8080
github.com/prometheus/procfs v0.20.1/go.mod h1:o9EMBZGRyvDrSPH1RqdxhojkuXstoe4UlK79eF5TGGo=
8181
github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ=

otelcollector/lifecycle.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ import (
2020
"slices"
2121
"time"
2222

23-
prombridge "github.com/ArthurSens/prometheus-collector-bridge"
2423
"github.com/PuerkitoBio/rehttp"
2524
"github.com/prometheus-community/stackdriver_exporter/collectors"
2625
"github.com/prometheus-community/stackdriver_exporter/delta"
2726
"github.com/prometheus-community/stackdriver_exporter/utils"
2827
"github.com/prometheus/client_golang/prometheus"
28+
prombridge "github.com/prometheus/opentelemetry-collector-bridge"
2929
"golang.org/x/oauth2/google"
3030
"google.golang.org/api/compute/v1"
3131
"google.golang.org/api/monitoring/v3"

0 commit comments

Comments
 (0)