Repository navigation
feat: let the collector write to a Prometheus outside the release - #102
Merged
Merged
Conversation
Add global.telemetry.metrics.remoteWriteURL. When set, Alloy writes there instead of the bundled Prometheus, and the chart renders with prometheus.enabled: false. Default output is unchanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…fix CHANGELOG placement Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ote-write-url Co-authored-by: linear-code[bot] <222613912+linear-code[bot]@users.noreply.github.com>
dannykopping
requested changes
Nov 9, 2026
…ders) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Collaborator
Author
|
@dannykopping this is ready for re-review. |
dannykopping
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
global.telemetry.metrics.remoteWriteURLandglobal.telemetry.metrics.remoteWriteExtraConfig. WhenremoteWriteURLis set, Alloy'sremote_writesends there instead of the bundled Prometheus. When both are empty (the default), nothing changes: the default render is unchanged.Previously the URL was built from the
prometheussubchart's service name, so the chart failed to render withprometheus.enabled: false(no template "prometheus.server.fullname"). The lookup now only happens whenremoteWriteURLis empty. A render withprometheus.enabled: falseandremoteWriteURLset succeeds and writes to the given URL.Use case: workspace clusters run only the collector (Alloy, kube-state-metrics, node-exporter) and remote-write to the Prometheus in the primary cluster. Disabling just the Prometheus server also needs #101, which makes kube-state-metrics and node-exporter independent of the
prometheussubchart. Either PR alone does not give a collector-only install.Endpoint configuration
remoteWriteURLsets the endpoint URL (including any port).remoteWriteExtraConfigis extra Alloy configuration placed inside theendpointblock ofprometheus.remote_write, for authentication, TLS, headers or queue tuning (see the Alloy endpoint block). It is rendered withtpl; read secrets withsys.env("NAME")rather than putting them in values. Do not seturlin it. The chart's ownwrite_relabel_configrules andexternalLabelsstay in place.Custom endpoint with a port:
Custom endpoint with a port and authentication:
Notes
prometheus.enabledis false and no URL is set.--web.enable-remote-write-receiver(and native histograms if enabled). Each cluster needs a distinctexternalLabels.🤖 Generated with Claude Code