Replace deprecated Promtail with Grafana Alloy#30
Open
ZPascal wants to merge 2 commits into
Open
Conversation
Promtail is deprecated and no longer shipped by Grafana. This commit replaces the promtail job and package with Grafana Alloy, which provides the same syslog ingestion functionality via its native loki.source.syslog and loki.write components. Changes: - Add jobs/alloy: monit, spec, control script and Alloy HCL config template with syslog receiver (TCP/UDP) and loki.write pipeline - Add packages/alloy: packaging script and spec - Remove jobs/promtail and packages/promtail entirely - Update manifests/loki.yml to use the alloy job; fix idle_timeout to use duration string (300s) instead of bare integer - Update .final_builds indexes for job and package (promtail -> alloy) - Update config/blobs.yml to reference the Alloy binary blob - Update scripts/update-the-blobs.sh to download Alloy releases from GitHub (grafana/alloy) instead of Promtail - Update scripts/ssl/ cert configs and create-tls-certs.sh for Alloy - Update .github/workflows/version_bump_and_new_release.yml for Alloy - Update README.md to reflect Alloy instead of Promtail
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.
Summary
Promtail is deprecated and no longer shipped by Grafana. This PR replaces the
promtailBOSH job and package with Grafana Alloy, preserving the same syslog ingestion functionality.Changes
New:
jobs/alloyconfig.alloy.erb) with:loki.source.syslogcomponent (TCP + UDP receiver, replaces Promtail'ssyslogscrape config)loki.writecomponent pointing at the Loki HTTP push APIalloy_ctl) and Monit configRemoved:
jobs/promtail+packages/promtailUpdated
packages/alloy/manifests/loki.ymlalloyjob;idle_timeoutfixed to duration string (300s)config/blobs.ymlscripts/update-the-blobs.shgrafana/alloyGitHub releasesscripts/ssl/create-tls-certs.shupdated for Alloy.final_builds/promtailtoalloy.github/workflows/README.mdFunctional Equivalence
scrape_configs[].sysloglistenerloki.source.syslogcomponentclients[].url(Loki push)loki.writecomponenthttp { tls { } }block inloki.source.syslogtls_configinloki.writelistenerblocksfix: #29