Skip to content

fix: use otlp exporter type instead of otlp_grpc#194

Merged
florentianayuwono merged 31 commits intomainfrom
fix/otlp-exporter-name-isd-5146
Apr 30, 2026
Merged

fix: use otlp exporter type instead of otlp_grpc#194
florentianayuwono merged 31 commits intomainfrom
fix/otlp-exporter-name-isd-5146

Conversation

@florentianayuwono
Copy link
Copy Markdown
Collaborator

Problem

The enable-log-forwarding action was generating a collector config fragment using otlp_grpc as the exporter name/type. The opentelemetry-collector snap does not register a component type named otlp_grpc, causing the collector to fail to start immediately after the config was written:

'exporters' unknown type: "otlp_grpc" for id: "otlp_grpc"
(valid values: [nop otlp kafka prometheus zipkin debug otlphttp file prometheusremotewrite])

Fix

Change EXPORTER_NAME from "otlp_grpc" to "otlp/github_runner_optin". The otlp type uses gRPC by default — the /github_runner_optin suffix is just a distinguishing name. This matches the convention already used by the runner-injected github.yaml config (otlp/mimir).

Smoke test improvements

  • Remove hardcoded otlp-endpoint: 127.0.0.1:4317 so the smoke test uses the real runner-injected endpoint and logs actually reach Loki
  • Write test log entries after forwarding is configured so there is real data to verify in Loki

florentianayuwono and others added 27 commits April 22, 2026 22:53
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…v v8 (#182)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* fix(dashboard): remove dead override hiding job queue time series

The "Job queue time" panel had a leftover hideSeriesFrom override that
excluded every series except one specific named expression. Combined
with the panel's current query (which already aggregates with sum by
(le)), the override hid all data, leaving an empty chart.

The override is obsolete now that the query collapses every label
except le into a single combined histogram, so removing it restores
visualisation without any other change.

* ci: pin astral-sh/setup-uv to v8.1.0

The astral-sh/setup-uv repository does not publish a floating v8 major
tag (only v8.0.0 and v8.1.0 specific tags exist), so referencing @v8
fails to resolve and breaks the workflow on every PR.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Christopher Bartz <christopher.bartz@canonical.com>
* chore(docs): update contributing guidelines (charmkeeper)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix(docs): build errors

* chore: clarify PR checklist and remove unnecessary item

* chore(docs): revert changes in CONTRIBUTING.md

* fix(docs): whoops we're ignoring the changelog

* fix: update pr checklist to incorporate previous items, remove duplicate items

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Erin Conley <erin.conley@canonical.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Erin Conley <erin.conley@canonical.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Erin Conley <erin.conley@canonical.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
The opentelemetry-collector snap does not register an 'otlp_grpc'
exporter type. The correct type is 'otlp', which uses gRPC by default.
'otlp_grpc' caused the collector to fail to start after the config
fragment was written.

Also update the self-hosted smoke test to use the runner-injected
OTLP endpoint (removing the hardcoded localhost) and write real log
entries after forwarding is configured, so logs reach Loki.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@florentianayuwono florentianayuwono marked this pull request as draft April 30, 2026 06:32
florentianayuwono and others added 4 commits April 30, 2026 13:34
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The OTLP endpoint otlp.actions.self-hosted-runners.internal:4317 uses
a self-signed certificate that does not match its hostname. The existing
github.yaml config already sets tls.insecure: true for the same endpoint.
Add the same setting to the generated exporter fragment to prevent the
TLS handshake failure.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@florentianayuwono florentianayuwono marked this pull request as ready for review April 30, 2026 12:23
@florentianayuwono
Copy link
Copy Markdown
Collaborator Author

@florentianayuwono florentianayuwono merged commit 4e4df51 into main Apr 30, 2026
40 checks passed
@florentianayuwono florentianayuwono deleted the fix/otlp-exporter-name-isd-5146 branch April 30, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants