feat(mixin): provide rendered mixin outputs#5118
Merged
Conversation
20011dd to
429c098
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds pre-rendered outputs from the Alloy jsonnet mixin, making it easier for users to import Grafana dashboards and Prometheus alert rules without needing to render them from source. The PR includes infrastructure for automatically generating and validating these rendered outputs.
Key changes:
- Adds 8 Grafana dashboard JSON files and 3 Prometheus alert YAML files under
operations/alloy-mixin/rendered/ - Implements a new
make generate-rendered-mixintarget for regenerating outputs - Adds a GitHub workflow to ensure rendered outputs stay in sync with source files
- Updates dependencies (grafonnet library) and example versions (Grafana, Alloy)
Reviewed changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| operations/alloy-mixin/README.md | New documentation explaining how to use and regenerate the mixin outputs |
| operations/alloy-mixin/rendered/dashboards/*.json | Pre-rendered Grafana dashboard definitions (8 dashboards for resources, Prometheus, OpenTelemetry, Loki, logs, controller, and cluster monitoring) |
| operations/alloy-mixin/rendered/alerts/*.yaml | Pre-rendered Prometheus alert rule definitions (3 alert groups for OTel, controller, and clustering) |
| Makefile | Adds generate-rendered-mixin target with proper jsonnet/jb tooling setup |
| .github/workflows/check-alloy-mixin-rendered.yml | CI workflow to verify rendered outputs are up-to-date with source |
| operations/alloy-mixin/jsonnetfile.json | Updates grafonnet dependency from v10.0.0 to latest |
| operations/alloy-mixin/jsonnetfile.lock.json | Lock file reflecting updated dependencies including grafonnet v11.0.0 and v11.4.0 |
| operations/alloy-mixin/dashboards/alloy-logs.libsonnet | Updates import path to use grafonnet-latest |
| example/docker-compose/grafana.yaml | Updates Grafana version from 11.5.1 to 12.3.0 |
| example/docker-compose/compose.yaml | Updates Alloy version from v1.5.1 to latest |
operations/alloy-mixin/rendered/dashboards/alloy-cluster-overview.json
Outdated
Show resolved
Hide resolved
operations/alloy-mixin/rendered/dashboards/alloy-cluster-overview.json
Outdated
Show resolved
Hide resolved
This was referenced Dec 16, 2025
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
PR Description
Which issue(s) this PR fixes
Related: #5074
Notes to the Reviewer
I've tested this locally with example/docker-compose. Was able to import dashboards and Prometheus alerting rules following the instructions in README.md.
PR Checklist
BEGIN_COMMIT_OVERRIDE
feat(mixin): Provide rendered mixin outputs (#5118)
END_COMMIT_OVERRIDE