Skip to content

Commit d6f2128

Browse files
committed
Add ability to test from gaction
1 parent e3cded8 commit d6f2128

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

.github/workflows/release.yml

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
env:
2121
CONNECT_TELEMETRY_PRIV_KEY: ${{ secrets.TelemetryPrivateKey }}
2222
CONNECT_TELEMETRY_DELAY: 1m
23+
CONNECT_TELEMETRY_PERIOD: 30s
24+
CONNECT_TELEMETRY_HOST: http://localhost:8080
2325

2426
- name: Configure AWS credentials
2527
uses: aws-actions/configure-aws-credentials@v4

.github/workflows/upload_plugin.yml

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ jobs:
4141
with:
4242
go-version: 1.22.x
4343
check-latest: true
44+
- name: Write telemetry private key
45+
run: echo "$CONNECT_TELEMETRY_PRIV_KEY" > ./internal/telemetry/key.pem
4446
- name: Build binaries (dry run / snapshot mode)
4547
if: ${{ env.DRY_RUN != 'false' }}
4648
uses: goreleaser/goreleaser-action@v6

.goreleaser.yml

+2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ builds:
2929
-X main.Version={{.Version}}
3030
-X main.DateBuilt={{.Date}}
3131
-X main.BinaryName=redpanda-connect
32+
-X github.com/redpanda-data/connect/v4/internal/telemetry.ExportHost={{ if index .Env "CONNECT_TELEMETRY_HOST" }}{{ .Env.CONNECT_TELEMETRY_HOST }}{{ else }}{{ end }}
3233
-X github.com/redpanda-data/connect/v4/internal/telemetry.ExportDelay={{ if index .Env "CONNECT_TELEMETRY_DELAY" }}{{ .Env.CONNECT_TELEMETRY_DELAY }}{{ else }}{{ end }}
34+
-X github.com/redpanda-data/connect/v4/internal/telemetry.ExportPeriod={{ if index .Env "CONNECT_TELEMETRY_PERIOD" }}{{ .Env.CONNECT_TELEMETRY_PERIOD }}{{ else }}{{ end }}
3335
3436
- id: connect-cloud
3537
main: cmd/redpanda-connect-cloud/main.go

internal/impl/prometheus/metrics_prometheus.go

+8-8
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,17 @@ If the Push Gateway requires HTTP Basic Authentication it can be configured with
8080
Default(0.0),
8181
).
8282
Description("A list of timing metrics summary buckets (as quantiles). Applicable when `use_histogram_timing` is set to `false`.").
83-
Example([]map[string]float64{
84-
{"quantile": 0.5, "error": 0.05},
85-
{"quantile": 0.9, "error": 0.01},
86-
{"quantile": 0.99, "error": 0.001},
83+
Example([]any{
84+
map[string]any{"quantile": 0.5, "error": 0.05},
85+
map[string]any{"quantile": 0.9, "error": 0.01},
86+
map[string]any{"quantile": 0.99, "error": 0.001},
8787
}).
8888
Advanced().
8989
Version("4.23.0").
90-
Default([]map[string]float64{
91-
{"quantile": 0.5, "error": 0.05},
92-
{"quantile": 0.9, "error": 0.01},
93-
{"quantile": 0.99, "error": 0.001},
90+
Default([]any{
91+
map[string]any{"quantile": 0.5, "error": 0.05},
92+
map[string]any{"quantile": 0.9, "error": 0.01},
93+
map[string]any{"quantile": 0.99, "error": 0.001},
9494
}),
9595
service.NewBoolField(pmFieldAddProcessMetrics).
9696
Description("Whether to export process metrics such as CPU and memory usage in addition to Redpanda Connect metrics.").

0 commit comments

Comments
 (0)