docs: How Alloy processes telemetry #8642
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
| name: Build | |
| on: | |
| pull_request: | |
| concurrency: | |
| # Cancel any running workflow for the same branch when new commits are pushed. | |
| # We group both by ref_name (available when CI is triggered by a push to a branch/tag) | |
| # and head_ref (available when CI is triggered by a PR). | |
| group: "${{ github.ref_name }}-${{ github.head_ref }}" | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| build_linux: | |
| name: Build on Linux | |
| runs-on: github-hosted-ubuntu-x64-large | |
| container: grafana/alloy-build-image:v0.1.26@sha256:54ef2371fc6b049d932c58d4622c88b573b45c393b7622fe6cca492ac4525dbe | |
| strategy: | |
| matrix: | |
| os: [linux] | |
| arch: [amd64, arm64, ppc64le, s390x] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set ownership | |
| # https://github.com/actions/runner/issues/2033#issuecomment-1204205989 | |
| run: | | |
| # this is to fix GIT not liking owner of the checkout dir | |
| chown -R $(id -u):$(id -g) $PWD | |
| - name: Set up Go | |
| uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0 | |
| with: | |
| go-version-file: go.mod | |
| # TODO: Try enabling caching later. It might use up too much disk space on runners so needs extra testing. | |
| cache: false | |
| - run: GO_TAGS="embedalloyui promtail_journal_enabled" GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} GOARM= make alloy | |
| build_linux_boringcrypto: | |
| name: Build on Linux (boringcrypto) | |
| runs-on: github-hosted-ubuntu-x64-large | |
| container: grafana/alloy-build-image:v0.1.26-boringcrypto@sha256:1727887982c65a40e489b41ec1c793e97bdf04f5774dba329cd8ee54bd7cae86 | |
| strategy: | |
| matrix: | |
| os: [linux] | |
| arch: [amd64, arm64] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set ownership | |
| # https://github.com/actions/runner/issues/2033#issuecomment-1204205989 | |
| run: | | |
| # this is to fix GIT not liking owner of the checkout dir | |
| chown -R $(id -u):$(id -g) $PWD | |
| - name: Set up Go | |
| uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0 | |
| with: | |
| go-version-file: go.mod | |
| # TODO: Try enabling caching later. It might use up too much disk space on runners so needs extra testing. | |
| cache: false | |
| - run: GO_TAGS="embedalloyui promtail_journal_enabled" GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} GOARM= GOEXPERIMENT=boringcrypto make alloy | |
| build_mac_intel: | |
| name: Build on MacOS (Intel) | |
| runs-on: macos-14-large | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Go | |
| uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0 | |
| with: | |
| go-version-file: go.mod | |
| # TODO: Try enabling caching later. It might use up too much disk space on runners so needs extra testing. | |
| cache: false | |
| - run: GO_TAGS="embedalloyui" GOOS=darwin GOARCH=amd64 GOARM= make alloy | |
| build_mac_arm: | |
| name: Build on MacOS (ARM) | |
| runs-on: macos-14-xlarge | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Go | |
| uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0 | |
| with: | |
| go-version-file: go.mod | |
| # TODO: Try enabling caching later. It might use up too much disk space on runners so needs extra testing. | |
| cache: false | |
| - run: CGO_LDFLAGS="-ld_classic $CGO_LDFLAGS" GO_TAGS="embedalloyui" GOOS=darwin GOARCH=arm64 GOARM= make alloy | |
| build_windows: | |
| name: Build on Windows (AMD64) | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Go | |
| uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0 | |
| with: | |
| go-version-file: go.mod | |
| # TODO: Try enabling caching later. It might use up too much disk space on runners so needs extra testing. | |
| cache: false | |
| - run: echo "GO_TAGS=embedalloyui" | Out-File -FilePath $env:GITHUB_ENV -Append | |
| - run: echo "GOOS=windows" | Out-File -FilePath $env:GITHUB_ENV -Append | |
| - run: echo "GOARCH=amd64" | Out-File -FilePath $env:GITHUB_ENV -Append | |
| - run: make alloy | |
| build_freebsd: | |
| name: Build on FreeBSD (AMD64) | |
| runs-on: github-hosted-ubuntu-x64-large | |
| container: grafana/alloy-build-image:v0.1.26@sha256:54ef2371fc6b049d932c58d4622c88b573b45c393b7622fe6cca492ac4525dbe | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set ownership | |
| # https://github.com/actions/runner/issues/2033#issuecomment-1204205989 | |
| run: | | |
| # this is to fix GIT not liking owner of the checkout dir | |
| chown -R $(id -u):$(id -g) $PWD | |
| - name: Set up Go | |
| uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0 | |
| with: | |
| go-version-file: go.mod | |
| # TODO: Try enabling caching later. It might use up too much disk space on runners so needs extra testing. | |
| cache: false | |
| - run: GO_TAGS="embedalloyui" GOOS=freebsd GOARCH=amd64 GOARM= make alloy |