From eb5102e0969be7b89226f56835c44303d03924c9 Mon Sep 17 00:00:00 2001 From: Dakota Paasman <122491662+dpaasman00@users.noreply.github.com> Date: Tue, 3 Sep 2024 11:32:41 -0400 Subject: [PATCH] rework repo --- .github/CODEOWNERS | 2 - .github/dependabot.yml | 322 ------------------------------ .github/workflows/checks.yml | 167 ---------------- .github/workflows/codeql.yml | 76 ------- .github/workflows/multi_build.yml | 111 ---------- .github/workflows/release.yml | 25 +-- .github/workflows/tests.yml | 27 --- .goreleaser.yml | 270 +++---------------------- README.md | 145 +------------- 9 files changed, 38 insertions(+), 1107 deletions(-) delete mode 100644 .github/CODEOWNERS delete mode 100644 .github/dependabot.yml delete mode 100644 .github/workflows/checks.yml delete mode 100644 .github/workflows/codeql.yml delete mode 100644 .github/workflows/multi_build.yml delete mode 100644 .github/workflows/tests.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index 5c9bff0ab..000000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1,2 +0,0 @@ -# @dpaasman00 and @BinaryFissionGames are the main codeowners of this repository but anyone from @observIQ/platform can approve PRs. -* @dpaasman00 @BinaryFissionGames @observIQ/platform diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 010e4eb69..000000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,322 +0,0 @@ -version: 2 -updates: - - package-ecosystem: "gomod" - directory: "/" - schedule: - interval: "weekly" - ignore: - # Opentelemetry updates will be done manually - - dependency-name: "github.com/open-telemetry/opentelemetry-collector*" - - dependency-name: "go.opentelemetry.io/*" - - dependency-name: "github.com/open-telemetry/opamp-go" - commit-message: - prefix: "deps" - include: "scope" - - package-ecosystem: "gomod" - directory: "/internal/tools" - schedule: - interval: "weekly" - ignore: - # Opentelemetry updates will be done manually - - dependency-name: "github.com/open-telemetry/opentelemetry-collector*" - - dependency-name: "go.opentelemetry.io/*" - # keep gosec at v2.18.2 - - dependency-name: "github.com/securego/gosec/v2" - # ignore patch updates - - dependency-name: "*" - update-types: ["version-update:semver-patch"] - commit-message: - prefix: "deps" - include: "scope" - - package-ecosystem: "gomod" - directory: "/processor/resourceattributetransposerprocessor" - schedule: - interval: "weekly" - ignore: - # Opentelemetry updates will be done manually - - dependency-name: "github.com/open-telemetry/opentelemetry-collector*" - - dependency-name: "go.opentelemetry.io/*" - - package-ecosystem: "gomod" - directory: "/processor/throughputmeasurementprocessor/" - schedule: - interval: "weekly" - ignore: - # Opentelemetry updates will be done manually - - dependency-name: "github.com/open-telemetry/opentelemetry-collector*" - - dependency-name: "go.opentelemetry.io/*" - commit-message: - prefix: "deps" - include: "scope" - - package-ecosystem: "gomod" - directory: "/processor/samplingprocessor/" - schedule: - interval: "weekly" - ignore: - # Opentelemetry updates will be done manually - - dependency-name: "github.com/open-telemetry/opentelemetry-collector*" - - dependency-name: "go.opentelemetry.io/*" - commit-message: - prefix: "deps" - include: "scope" - - package-ecosystem: "gomod" - directory: "/processor/logcountprocessor/" - schedule: - interval: "weekly" - ignore: - # Opentelemetry updates will be done manually - - dependency-name: "github.com/open-telemetry/opentelemetry-collector*" - - dependency-name: "go.opentelemetry.io/*" - commit-message: - prefix: "deps" - include: "scope" - - package-ecosystem: "gomod" - directory: "/processor/logdeduplicationprocessor//" - schedule: - interval: "weekly" - ignore: - # Opentelemetry updates will be done manually - - dependency-name: "github.com/open-telemetry/opentelemetry-collector*" - - dependency-name: "go.opentelemetry.io/*" - commit-message: - prefix: "deps" - include: "scope" - - package-ecosystem: "gomod" - directory: "/processor/maskprocessor/" - schedule: - interval: "weekly" - ignore: - # Opentelemetry updates will be done manually - - dependency-name: "github.com/open-telemetry/opentelemetry-collector*" - - dependency-name: "go.opentelemetry.io/*" - commit-message: - prefix: "deps" - include: "scope" - - package-ecosystem: "gomod" - directory: "/processor/metricextractprocessor/" - schedule: - interval: "weekly" - ignore: - # Opentelemetry updates will be done manually - - dependency-name: "github.com/open-telemetry/opentelemetry-collector*" - - dependency-name: "go.opentelemetry.io/*" - commit-message: - prefix: "deps" - include: "scope" - - package-ecosystem: "gomod" - directory: "/processor/datapointcountprocessor/" - schedule: - interval: "weekly" - ignore: - # Opentelemetry updates will be done manually - - dependency-name: "github.com/open-telemetry/opentelemetry-collector*" - - dependency-name: "go.opentelemetry.io/*" - commit-message: - prefix: "deps" - include: "scope" - - package-ecosystem: "gomod" - directory: "/processor/spancountprocessor/" - schedule: - interval: "weekly" - ignore: - # Opentelemetry updates will be done manually - - dependency-name: "github.com/open-telemetry/opentelemetry-collector*" - - dependency-name: "go.opentelemetry.io/*" - commit-message: - prefix: "deps" - include: "scope" - - package-ecosystem: "gomod" - directory: "/processor/metricstatsprocessor/" - schedule: - interval: "weekly" - ignore: - # Opentelemetry updates will be done manually - - dependency-name: "github.com/open-telemetry/opentelemetry-collector*" - - dependency-name: "go.opentelemetry.io/*" - commit-message: - prefix: "deps" - include: "scope" - - package-ecosystem: "gomod" - directory: "/receiver/sapnetweaverreceiver" - schedule: - interval: "weekly" - ignore: - # Opentelemetry updates will be done manually - - dependency-name: "go.opentelemetry.io/*" - - dependency-name: "github.com/open-telemetry/opentelemetry-collector*" - commit-message: - prefix: "deps" - include: "scope" - - package-ecosystem: "gomod" - directory: "/receiver/azureblobrehydrationreceiver" - schedule: - interval: "weekly" - ignore: - # Opentelemetry updates will be done manually - - dependency-name: "go.opentelemetry.io/*" - - dependency-name: "github.com/open-telemetry/opentelemetry-collector*" - commit-message: - prefix: "deps" - include: "scope" - - package-ecosystem: "gomod" - directory: "/receiver/httpreceiver" - schedule: - interval: "weekly" - ignore: - # Opentelemetry updates will be done manually - - dependency-name: "go.opentelemetry.io/*" - - dependency-name: "github.com/open-telemetry/opentelemetry-collector*" - commit-message: - prefix: "deps" - include: "scope" - - package-ecosystem: "gomod" - directory: "/receiver/m365receiver" - schedule: - interval: "weekly" - ignore: - # Opentelemetry updates will be done manually - - dependency-name: "go.opentelemetry.io/*" - - dependency-name: "github.com/open-telemetry/opentelemetry-collector*" - commit-message: - prefix: "deps" - include: "scope" - - package-ecosystem: "gomod" - directory: "processor/removeemptyvaluesprocessor/" - schedule: - interval: "weekly" - ignore: - # Opentelemetry updates will be done manually - - dependency-name: "github.com/open-telemetry/opentelemetry-collector*" - - dependency-name: "go.opentelemetry.io/*" - commit-message: - prefix: "deps" - include: "scope" - - package-ecosystem: "gomod" - directory: "/receiver/pluginreceiver" - schedule: - interval: "weekly" - ignore: - # Opentelemetry updates will be done manually - - dependency-name: "go.opentelemetry.io/*" - - dependency-name: "github.com/open-telemetry/opentelemetry-collector*" - commit-message: - prefix: "deps" - include: "scope" - - package-ecosystem: "gomod" - directory: "/receiver/routereceiver" - schedule: - interval: "weekly" - ignore: - # Opentelemetry updates will be done manually - - dependency-name: "go.opentelemetry.io/*" - - dependency-name: "github.com/open-telemetry/opentelemetry-collector*" - commit-message: - prefix: "deps" - include: "scope" - - package-ecosystem: "gomod" - directory: "/exporter/googlecloudexporter" - schedule: - interval: "weekly" - ignore: - # Opentelemetry updates will be done manually - - dependency-name: "github.com/open-telemetry/opentelemetry-collector*" - - dependency-name: "go.opentelemetry.io/*" - commit-message: - prefix: "deps" - include: "scope" - - package-ecosystem: "gomod" - directory: "/exporter/chronicleexporter" - schedule: - interval: "weekly" - ignore: - # Opentelemetry updates will be done manually - - dependency-name: "github.com/open-telemetry/opentelemetry-collector*" - - dependency-name: "go.opentelemetry.io/*" - commit-message: - prefix: "deps" - include: "scope" - - package-ecosystem: "gomod" - directory: "/exporter/googlemanagedprometheusexporter" - schedule: - interval: "weekly" - ignore: - # Opentelemetry updates will be done manually - - dependency-name: "github.com/open-telemetry/opentelemetry-collector*" - - dependency-name: "go.opentelemetry.io/*" - commit-message: - prefix: "deps" - include: "scope" - - package-ecosystem: "gomod" - directory: "/exporter/azureblobexporter" - schedule: - interval: "weekly" - ignore: - # Opentelemetry updates will be done manually - - dependency-name: "github.com/open-telemetry/opentelemetry-collector*" - - dependency-name: "go.opentelemetry.io/*" - commit-message: - prefix: "deps" - include: "scope" - - package-ecosystem: "gomod" - directory: "/exporter/snowflakeexporter" - schedule: - interval: "weekly" - ignore: - # Opentelemetry updates will be done manually - - dependency-name: "github.com/open-telemetry/opentelemetry-collector*" - - dependency-name: "go.opentelemetry.io/*" - commit-message: - prefix: "deps" - include: "scope" - - package-ecosystem: "gomod" - directory: "/expr" - schedule: - interval: "weekly" - ignore: - # Opentelemetry updates will be done manually - - dependency-name: "github.com/open-telemetry/opentelemetry-collector*" - - dependency-name: "go.opentelemetry.io/*" - commit-message: - prefix: "deps" - include: "scope" - - package-ecosystem: "gomod" - directory: "/updater" - schedule: - interval: "weekly" - ignore: - # Opentelemetry updates will be done manually - - dependency-name: "github.com/open-telemetry/opamp-go" - commit-message: - prefix: "deps" - include: "scope" - - package-ecosystem: "gomod" - directory: "/packagestate" - schedule: - interval: "weekly" - ignore: - # Opentelemetry updates will be done manually - - dependency-name: "github.com/open-telemetry/opamp-go" - commit-message: - prefix: "deps" - include: "scope" - - package-ecosystem: "gomod" - directory: "/receiver/telemetrygeneratorreceiver" - schedule: - interval: "weekly" - ignore: - # Opentelemetry updates will be done manually - - dependency-name: "go.opentelemetry.io/*" - - dependency-name: "github.com/open-telemetry/opentelemetry-collector*" - commit-message: - prefix: "deps" - include: "scope" - - package-ecosystem: "gomod" - directory: "/extension/bindplaneextension" - schedule: - interval: "weekly" - ignore: - # Opentelemetry updates will be done manually - - dependency-name: "go.opentelemetry.io/*" - - dependency-name: "github.com/open-telemetry/opentelemetry-collector*" - commit-message: - prefix: "deps" - include: "scope" diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml deleted file mode 100644 index 31b4c5beb..000000000 --- a/.github/workflows/checks.yml +++ /dev/null @@ -1,167 +0,0 @@ -name: pr_checks -on: - pull_request: - -jobs: - setup-tools: - runs-on: "ubuntu-20.04" - steps: - - name: Checkout Sources - uses: actions/checkout@v4 - - name: Setup Go - uses: actions/setup-go@v5 - with: - go-version: "1.21" - check-latest: true - - name: Cache Tools - id: tool-cache - uses: actions/cache@v3 - with: - path: /home/runner/go/bin - key: tooling-${{ runner.os }}-${{ hashFiles('./internal/tools/go.sum') }} - - name: Install Tools - if: steps.tool-cache.outputs.cache-hit != 'true' - run: make install-tools - - check-fmt: - runs-on: "ubuntu-20.04" - needs: - - setup-tools - steps: - - name: Checkout Sources - uses: actions/checkout@v4 - - name: Setup Go - uses: actions/setup-go@v5 - with: - go-version: "1.21" - check-latest: true - - name: Cache Tools - id: tool-cache - uses: actions/cache@v3 - with: - path: /home/runner/go/bin - key: tooling-${{ runner.os }}-${{ hashFiles('./internal/tools/go.sum') }} - - name: Install Tools - if: steps.tool-cache.outputs.cache-hit != 'true' - run: make install-tools - - name: Check Formatting - run: make check-fmt - - check-license: - runs-on: "ubuntu-20.04" - needs: - - setup-tools - steps: - - name: Checkout Sources - uses: actions/checkout@v4 - - name: Setup Go - uses: actions/setup-go@v5 - with: - go-version: "1.21" - check-latest: true - - name: Cache Tools - id: tool-cache - uses: actions/cache@v3 - with: - path: /home/runner/go/bin - key: tooling-${{ runner.os }}-${{ hashFiles('./internal/tools/go.sum') }} - - name: Install Tools - if: steps.tool-cache.outputs.cache-hit != 'true' - run: make install-tools - - name: Check License Headers - run: make check-license - - gosec: - runs-on: ubuntu-20.04 - needs: - - setup-tools - steps: - - name: Checkout Source - uses: actions/checkout@v4 - - name: Setup Go - uses: actions/setup-go@v5 - with: - go-version: "1.21" - check-latest: true - - name: Cache Tools - id: tool-cache - uses: actions/cache@v3 - with: - path: /home/runner/go/bin - key: tooling-${{ runner.os }}-${{ hashFiles('./internal/tools/go.sum') }} - - name: Install Tools - if: steps.tool-cache.outputs.cache-hit != 'true' - run: make install-tools - - name: Run Gosec Security Scanner - run: make gosec - - misspell: - runs-on: "ubuntu-20.04" - needs: - - setup-tools - steps: - - name: Checkout Sources - uses: actions/checkout@v4 - - name: Setup Go - uses: actions/setup-go@v5 - with: - go-version: "1.21" - check-latest: true - - name: Cache Tools - id: tool-cache - uses: actions/cache@v3 - with: - path: /home/runner/go/bin - key: tooling-${{ runner.os }}-${{ hashFiles('./internal/tools/go.sum') }} - - name: Install Tools - if: steps.tool-cache.outputs.cache-hit != 'true' - run: make install-tools - - name: Check for Misspelled Words in Doc Files - run: make misspell - - lint: - runs-on: ubuntu-20.04 - needs: - - setup-tools - steps: - - name: Checkout Sources - uses: actions/checkout@v4 - - name: Setup Go - uses: actions/setup-go@v5 - with: - go-version: "1.21" - check-latest: true - - name: Cache Tools - id: tool-cache - uses: actions/cache@v3 - with: - path: /home/runner/go/bin - key: tooling-${{ runner.os }}-${{ hashFiles('./internal/tools/go.sum') }} - - name: Install Tools - if: steps.tool-cache.outputs.cache-hit != 'true' - run: make install-tools - - name: Run Revive Linter - run: make lint - - # Below checks don't need to run `make install-tools` - check-plugin-docs: - runs-on: "ubuntu-20.04" - steps: - - name: Checkout Sources - uses: actions/checkout@v4 - - name: Setup Go - uses: actions/setup-go@v5 - with: - go-version: "1.21" - check-latest: true - - name: Plugin Doc Generation - run: make create-plugin-docs - - name: Check Changed Plugin Docs - uses: tj-actions/verify-changed-files@v17 - id: verify-changed-files - with: - files: | - docs/plugins - - name: Verify No Plugin Doc Changes - if: steps.verify-changed-files.outputs.files_changed == 'true' - run: exit 1 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml deleted file mode 100644 index 9cc4bf03e..000000000 --- a/.github/workflows/codeql.yml +++ /dev/null @@ -1,76 +0,0 @@ -name: "CodeQL" - -on: - push: - branches: - - main - - release/** - -jobs: - analyze: - name: Analyze - # Runner size impacts CodeQL analysis time. To learn more, please see: - # - https://gh.io/recommended-hardware-resources-for-running-codeql - # - https://gh.io/supported-runners-and-hardware-resources - # - https://gh.io/using-larger-runners - # Consider using larger runners for possible analysis time improvements. - runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} - timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - # We technically have ruby code, but it's only for some manually-run tests, so we won't run CodeQL on that. - language: ["go"] - # CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ] - # Use only 'java-kotlin' to analyze code written in Java, Kotlin or both - # Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both - # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - # Install Go so we don't use an out of date version to auto-build - # https://github.com/github/codeql-action/issues/1842#issuecomment-1704398087 - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: "1.21" - check-latest: true - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - - # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs - # queries: security-extended,security-and-quality - - # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v2 - - # ℹ️ Command-line programs to run using the OS shell. - # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - - # If the Autobuild fails above, remove it and uncomment the following three lines. - # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. - - # - run: | - # echo "Run, Build Application using script" - # ./location_of_script_within_repo/buildscript.sh - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 - with: - category: "/language:${{matrix.language}}" diff --git a/.github/workflows/multi_build.yml b/.github/workflows/multi_build.yml deleted file mode 100644 index c0ab822cb..000000000 --- a/.github/workflows/multi_build.yml +++ /dev/null @@ -1,111 +0,0 @@ -# Build is responsible for testing builds on all supported platforms. -# It is broken up into three separate jobs with targeted builds so that each OS will -# build in parallel and speed up overall CI time. -name: Build -on: - pull_request: - -jobs: - setup-tools: - runs-on: "ubuntu-20.04" - steps: - - name: Checkout Sources - uses: actions/checkout@v4 - - name: Setup Go - uses: actions/setup-go@v5 - with: - go-version: "1.21" - check-latest: true - - name: Cache Tools - id: tool-cache - uses: actions/cache@v3 - with: - path: /home/runner/go/bin - key: tooling-${{ runner.os }}-${{ hashFiles('./internal/tools/go.sum') }} - - name: Install Tools - if: steps.tool-cache.outputs.cache-hit != 'true' - run: make install-tools - - build_linux: - runs-on: ubuntu-latest-4-cores - needs: - - setup-tools - steps: - - name: Checkout Sources - uses: actions/checkout@v4 - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: "1.21" - check-latest: true - - name: Cache Tools - id: tool-cache - uses: actions/cache@v3 - with: - path: /home/runner/go/bin - key: tooling-${{ runner.os }}-${{ hashFiles('./internal/tools/go.sum') }} - - name: Install Tools - if: steps.tool-cache.outputs.cache-hit != 'true' - run: make install-tools - - name: Build - run: make build-linux - - name: Scan Third Party Dependency Licenses - run: | - go install github.com/uw-labs/lichen@v0.1.7 - lichen --config=./license.yaml $(find dist/collector_* dist/updater_*) - - build_darwin: - runs-on: macos-14 - needs: - - setup-tools - steps: - - name: Checkout Sources - uses: actions/checkout@v4 - - name: Setup Go - uses: actions/setup-go@v5 - with: - go-version: "1.21" - check-latest: true - - name: Cache Tools - id: tool-cache - uses: actions/cache@v3 - with: - path: /home/runner/go/bin - key: tooling-${{ runner.os }}-${{ hashFiles('./internal/tools/go.sum') }} - - name: Install Tools - if: steps.tool-cache.outputs.cache-hit != 'true' - run: make install-tools - - name: Build - run: make build-darwin - - name: Scan Third Party Dependency Licenses - run: | - go install github.com/uw-labs/lichen@v0.1.7 - lichen --config=./license.yaml $(find dist/collector_* dist/updater_*) - - build_windows: - runs-on: ubuntu-20.04 - needs: - - setup-tools - steps: - - name: Checkout Sources - uses: actions/checkout@v4 - - name: Setup Go - uses: actions/setup-go@v5 - with: - go-version: "1.21" - check-latest: true - - name: Cache Tools - id: tool-cache - uses: actions/cache@v3 - with: - path: /home/runner/go/bin - key: tooling-${{ runner.os }}-${{ hashFiles('./internal/tools/go.sum') }} - - name: Install Tools - if: steps.tool-cache.outputs.cache-hit != 'true' - run: make install-tools - - name: Build - run: make build-windows - - name: Scan Third Party Dependency Licenses - run: | - go install github.com/uw-labs/lichen@v0.1.7 - lichen --config=./license.yaml dist/collector_windows_amd64.exe dist/updater_windows_amd64.exe diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 28070f66a..dcf6124f6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -79,23 +79,12 @@ jobs: uses: docker/setup-buildx-action@v2 - name: Set up QEMU uses: docker/setup-qemu-action@v2 - - name: Login to DockerHub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Login to Github Container Registry uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.ORG_GORELEASER_GITHUB_TOKEN }} - - name: Login to Google Artifact Repository - uses: docker/login-action@v2 - with: - registry: us-central1-docker.pkg.dev - username: _json_key - password: ${{ secrets.ORG_OBSERVIQ_PUBLIC_GCR_JSON_KEY }} - name: Retrieve Windows 64-bit MSI Installer uses: actions/download-artifact@v4 with: @@ -147,10 +136,10 @@ jobs: files: "observiq-otel-collector-${{ github.ref_name }}-artifacts.tar.gz*" release-tag: ${{ github.ref_name }} # Trigger installation tests in otel-collector-installer-testing - - name: Trigger Installation Testing - uses: peter-evans/repository-dispatch@v2 - with: - token: ${{ secrets.ORG_GORELEASER_GITHUB_TOKEN }} - repository: observIQ/otel-collector-installer-testing - event-type: upstream_prerelease - client-payload: '{ "version": "${{ github.ref_name }}" }' + # - name: Trigger Installation Testing + # uses: peter-evans/repository-dispatch@v2 + # with: + # token: ${{ secrets.ORG_GORELEASER_GITHUB_TOKEN }} + # repository: observIQ/otel-collector-installer-testing + # event-type: upstream_prerelease + # client-payload: '{ "version": "${{ github.ref_name }}" }' diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml deleted file mode 100644 index 38687b78f..000000000 --- a/.github/workflows/tests.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Tests -on: - pull_request: - -jobs: - unit-tests: - strategy: - fail-fast: false - matrix: - os: [ubuntu-20.04, macos-13, windows-2022-8-cores] - runs-on: ${{ matrix.os }} - steps: - - name: Checkout Sources - uses: actions/checkout@v4 - - name: Setup Go - uses: actions/setup-go@v5 - with: - go-version: "1.21" - check-latest: true - - name: Run Tests - run: make test - - name: Run Updater Integration Tests (non-linux) - if: matrix.os != 'ubuntu-20.04' - run: make test-updater-integration - - name: Run Updater Integration Tests (linux) - if: matrix.os == 'ubuntu-20.04' - run: sudo make test-updater-integration diff --git a/.goreleaser.yml b/.goreleaser.yml index 33d7fda7d..f2c08d908 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -238,9 +238,7 @@ dockers: - collector - supervisor image_templates: - - "observiq/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-minimal" - - "ghcr.io/observiq/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-minimal" - - "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-minimal" + - "ghcr.io/dpaasman00/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-minimal" dockerfile: ./docker/Dockerfile.scratch use: buildx build_flag_templates: @@ -260,9 +258,7 @@ dockers: - collector - supervisor image_templates: - - "observiq/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-minimal" - - "ghcr.io/observiq/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-minimal" - - "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-minimal" + - "ghcr.io/dpaasman00/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-minimal" dockerfile: ./docker/Dockerfile.scratch use: buildx build_flag_templates: @@ -282,31 +278,10 @@ dockers: - collector - supervisor image_templates: - - "observiq/observiq-otel-collector-amd64:latest" - - "observiq/observiq-otel-collector-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - - "observiq/observiq-otel-collector-amd64:{{ .Major }}.{{ .Minor }}" - - "observiq/observiq-otel-collector-amd64:{{ .Major }}" - - "ghcr.io/observiq/observiq-otel-collector-amd64:latest" - - "ghcr.io/observiq/observiq-otel-collector-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - - "ghcr.io/observiq/observiq-otel-collector-amd64:{{ .Major }}.{{ .Minor }}" - - "ghcr.io/observiq/observiq-otel-collector-amd64:{{ .Major }}" - - "us-central1-docker.pkg.dev/observiq-containers/collector/observiq-otel-collector-amd64:latest" - - "us-central1-docker.pkg.dev/observiq-containers/collector/observiq-otel-collector-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - - "us-central1-docker.pkg.dev/observiq-containers/collector/observiq-otel-collector-amd64:{{ .Major }}.{{ .Minor }}" - - "us-central1-docker.pkg.dev/observiq-containers/collector/observiq-otel-collector-amd64:{{ .Major }}" - # BindPlane Agent Containers - - "observiq/bindplane-agent-amd64:latest" - - "observiq/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - - "observiq/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}" - - "observiq/bindplane-agent-amd64:{{ .Major }}" - - "ghcr.io/observiq/bindplane-agent-amd64:latest" - - "ghcr.io/observiq/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - - "ghcr.io/observiq/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}" - - "ghcr.io/observiq/bindplane-agent-amd64:{{ .Major }}" - - "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent-amd64:latest" - - "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - - "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}" - - "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent-amd64:{{ .Major }}" + - "ghcr.io/dpaasman00/bindplane-agent-amd64:latest" + - "ghcr.io/dpaasman00/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" + - "ghcr.io/dpaasman00/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}" + - "ghcr.io/dpaasman00/bindplane-agent-amd64:{{ .Major }}" dockerfile: ./docker/Dockerfile.ubuntu use: buildx build_flag_templates: @@ -327,31 +302,10 @@ dockers: - collector - supervisor image_templates: - - "observiq/observiq-otel-collector-arm64:latest" - - "observiq/observiq-otel-collector-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - - "observiq/observiq-otel-collector-arm64:{{ .Major }}.{{ .Minor }}" - - "observiq/observiq-otel-collector-arm64:{{ .Major }}" - - "ghcr.io/observiq/observiq-otel-collector-arm64:latest" - - "ghcr.io/observiq/observiq-otel-collector-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - - "ghcr.io/observiq/observiq-otel-collector-arm64:{{ .Major }}.{{ .Minor }}" - - "ghcr.io/observiq/observiq-otel-collector-arm64:{{ .Major }}" - - "us-central1-docker.pkg.dev/observiq-containers/collector/observiq-otel-collector-arm64:latest" - - "us-central1-docker.pkg.dev/observiq-containers/collector/observiq-otel-collector-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - - "us-central1-docker.pkg.dev/observiq-containers/collector/observiq-otel-collector-arm64:{{ .Major }}.{{ .Minor }}" - - "us-central1-docker.pkg.dev/observiq-containers/collector/observiq-otel-collector-arm64:{{ .Major }}" - # BindPlane Agent Containers - - "observiq/bindplane-agent-arm64:latest" - - "observiq/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - - "observiq/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}" - - "observiq/bindplane-agent-arm64:{{ .Major }}" - - "ghcr.io/observiq/bindplane-agent-arm64:latest" - - "ghcr.io/observiq/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - - "ghcr.io/observiq/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}" - - "ghcr.io/observiq/bindplane-agent-arm64:{{ .Major }}" - - "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent-arm64:latest" - - "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - - "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}" - - "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent-arm64:{{ .Major }}" + - "ghcr.io/dpaasman00/bindplane-agent-arm64:latest" + - "ghcr.io/dpaasman00/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" + - "ghcr.io/dpaasman00/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}" + - "ghcr.io/dpaasman00/bindplane-agent-arm64:{{ .Major }}" dockerfile: ./docker/Dockerfile.ubuntu use: buildx build_flag_templates: @@ -373,13 +327,7 @@ dockers: - collector - supervisor image_templates: - - "observiq/observiq-otel-collector-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" - - "ghcr.io/observiq/observiq-otel-collector-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" - - "us-central1-docker.pkg.dev/observiq-containers/collector/observiq-otel-collector-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" - # BindPlane Agent Containers - - "observiq/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" - - "ghcr.io/observiq/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" - - "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" + - "ghcr.io/dpaasman00/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" dockerfile: ./docker/Dockerfile.ubi8 use: buildx build_flag_templates: @@ -400,13 +348,7 @@ dockers: - collector - supervisor image_templates: - - "observiq/observiq-otel-collector-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" - - "ghcr.io/observiq/observiq-otel-collector-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" - - "us-central1-docker.pkg.dev/observiq-containers/collector/observiq-otel-collector-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" - # BindPlane Agent Containers - - "observiq/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" - - "ghcr.io/observiq/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" - - "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" + - "ghcr.io/dpaasman00/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" dockerfile: ./docker/Dockerfile.ubi8 use: buildx build_flag_templates: @@ -422,171 +364,35 @@ dockers: - release_deps/opentelemetry-java-contrib-jmx-metrics.jar docker_manifests: - - name_template: "observiq/bindplane-agent:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-minimal" + - name_template: "ghcr.io/dpaasman00/bindplane-agent:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-minimal" image_templates: - - "observiq/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-minimal" - - "observiq/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-minimal" + - "ghcr.io/dpaasman00/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-minimal" + - "ghcr.io/dpaasman00/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-minimal" skip_push: false - - name_template: "ghcr.io/observiq/bindplane-agent:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-minimal" + - name_template: "ghcr.io/dpaasman00/bindplane-agent:latest" image_templates: - - "ghcr.io/observiq/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-minimal" - - "ghcr.io/observiq/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-minimal" + - "ghcr.io/dpaasman00/bindplane-agent-amd64:latest" + - "ghcr.io/dpaasman00/bindplane-agent-arm64:latest" skip_push: false - - name_template: "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-minimal" + - name_template: "ghcr.io/dpaasman00/bindplane-agent:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" image_templates: - - "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-minimal" - - "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-minimal" + - "ghcr.io/dpaasman00/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" + - "ghcr.io/dpaasman00/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" skip_push: false - - name_template: "observiq/observiq-otel-collector:latest" + - name_template: "ghcr.io/dpaasman00/bindplane-agent:{{ .Major }}.{{ .Minor }}" image_templates: - - "observiq/observiq-otel-collector-amd64:latest" - - "observiq/observiq-otel-collector-arm64:latest" + - "ghcr.io/dpaasman00/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}" + - "ghcr.io/dpaasman00/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}" skip_push: false - - name_template: "observiq/observiq-otel-collector:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" + - name_template: "ghcr.io/dpaasman00/bindplane-agent:{{ .Major }}" image_templates: - - "observiq/observiq-otel-collector-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - - "observiq/observiq-otel-collector-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" + - "ghcr.io/dpaasman00/bindplane-agent-amd64:{{ .Major }}" + - "ghcr.io/dpaasman00/bindplane-agent-arm64:{{ .Major }}" skip_push: false - - name_template: "observiq/observiq-otel-collector:{{ .Major }}.{{ .Minor }}" + - name_template: "ghcr.io/dpaasman00/bindplane-agent:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" image_templates: - - "observiq/observiq-otel-collector-amd64:{{ .Major }}.{{ .Minor }}" - - "observiq/observiq-otel-collector-arm64:{{ .Major }}.{{ .Minor }}" - skip_push: false - - name_template: "observiq/observiq-otel-collector:{{ .Major }}" - image_templates: - - "observiq/observiq-otel-collector-amd64:{{ .Major }}" - - "observiq/observiq-otel-collector-arm64:{{ .Major }}" - skip_push: false - - name_template: "observiq/observiq-otel-collector:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" - image_templates: - - "observiq/observiq-otel-collector-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" - - "observiq/observiq-otel-collector-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" - skip_push: false - - name_template: "ghcr.io/observiq/observiq-otel-collector:latest" - image_templates: - - "ghcr.io/observiq/observiq-otel-collector-amd64:latest" - - "ghcr.io/observiq/observiq-otel-collector-arm64:latest" - skip_push: false - - name_template: "ghcr.io/observiq/observiq-otel-collector:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - image_templates: - - "ghcr.io/observiq/observiq-otel-collector-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - - "ghcr.io/observiq/observiq-otel-collector-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - skip_push: false - - name_template: "ghcr.io/observiq/observiq-otel-collector:{{ .Major }}.{{ .Minor }}" - image_templates: - - "ghcr.io/observiq/observiq-otel-collector-amd64:{{ .Major }}.{{ .Minor }}" - - "ghcr.io/observiq/observiq-otel-collector-arm64:{{ .Major }}.{{ .Minor }}" - skip_push: false - - name_template: "ghcr.io/observiq/observiq-otel-collector:{{ .Major }}" - image_templates: - - "ghcr.io/observiq/observiq-otel-collector-amd64:{{ .Major }}" - - "ghcr.io/observiq/observiq-otel-collector-arm64:{{ .Major }}" - skip_push: false - - name_template: "ghcr.io/observiq/observiq-otel-collector:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" - image_templates: - - "ghcr.io/observiq/observiq-otel-collector-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" - - "ghcr.io/observiq/observiq-otel-collector-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" - skip_push: false - - name_template: "us-central1-docker.pkg.dev/observiq-containers/collector/observiq-otel-collector:latest" - image_templates: - - "us-central1-docker.pkg.dev/observiq-containers/collector/observiq-otel-collector-amd64:latest" - - "us-central1-docker.pkg.dev/observiq-containers/collector/observiq-otel-collector-arm64:latest" - skip_push: false - - name_template: "us-central1-docker.pkg.dev/observiq-containers/collector/observiq-otel-collector:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - image_templates: - - "us-central1-docker.pkg.dev/observiq-containers/collector/observiq-otel-collector-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - - "us-central1-docker.pkg.dev/observiq-containers/collector/observiq-otel-collector-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - skip_push: false - - name_template: "us-central1-docker.pkg.dev/observiq-containers/collector/observiq-otel-collector:{{ .Major }}.{{ .Minor }}" - image_templates: - - "us-central1-docker.pkg.dev/observiq-containers/collector/observiq-otel-collector-amd64:{{ .Major }}.{{ .Minor }}" - - "us-central1-docker.pkg.dev/observiq-containers/collector/observiq-otel-collector-arm64:{{ .Major }}.{{ .Minor }}" - skip_push: false - - name_template: "us-central1-docker.pkg.dev/observiq-containers/collector/observiq-otel-collector:{{ .Major }}" - image_templates: - - "us-central1-docker.pkg.dev/observiq-containers/collector/observiq-otel-collector-amd64:{{ .Major }}" - - "us-central1-docker.pkg.dev/observiq-containers/collector/observiq-otel-collector-arm64:{{ .Major }}" - skip_push: false - - name_template: "us-central1-docker.pkg.dev/observiq-containers/collector/observiq-otel-collector:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" - image_templates: - - "us-central1-docker.pkg.dev/observiq-containers/collector/observiq-otel-collector-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" - - "us-central1-docker.pkg.dev/observiq-containers/collector/observiq-otel-collector-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" - skip_push: false - # BindPlane Agent Manifests - - name_template: "observiq/bindplane-agent:latest" - image_templates: - - "observiq/bindplane-agent-amd64:latest" - - "observiq/bindplane-agent-arm64:latest" - skip_push: false - - name_template: "observiq/bindplane-agent:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - image_templates: - - "observiq/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - - "observiq/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - skip_push: false - - name_template: "observiq/bindplane-agent:{{ .Major }}.{{ .Minor }}" - image_templates: - - "observiq/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}" - - "observiq/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}" - skip_push: false - - name_template: "observiq/bindplane-agent:{{ .Major }}" - image_templates: - - "observiq/bindplane-agent-amd64:{{ .Major }}" - - "observiq/bindplane-agent-arm64:{{ .Major }}" - skip_push: false - - name_template: "observiq/bindplane-agent:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" - image_templates: - - "observiq/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" - - "observiq/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" - skip_push: false - - name_template: "ghcr.io/observiq/bindplane-agent:latest" - image_templates: - - "ghcr.io/observiq/bindplane-agent-amd64:latest" - - "ghcr.io/observiq/bindplane-agent-arm64:latest" - skip_push: false - - name_template: "ghcr.io/observiq/bindplane-agent:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - image_templates: - - "ghcr.io/observiq/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - - "ghcr.io/observiq/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - skip_push: false - - name_template: "ghcr.io/observiq/bindplane-agent:{{ .Major }}.{{ .Minor }}" - image_templates: - - "ghcr.io/observiq/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}" - - "ghcr.io/observiq/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}" - skip_push: false - - name_template: "ghcr.io/observiq/bindplane-agent:{{ .Major }}" - image_templates: - - "ghcr.io/observiq/bindplane-agent-amd64:{{ .Major }}" - - "ghcr.io/observiq/bindplane-agent-arm64:{{ .Major }}" - skip_push: false - - name_template: "ghcr.io/observiq/bindplane-agent:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" - image_templates: - - "ghcr.io/observiq/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" - - "ghcr.io/observiq/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" - skip_push: false - - name_template: "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent:latest" - image_templates: - - "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent-amd64:latest" - - "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent-arm64:latest" - skip_push: false - - name_template: "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - image_templates: - - "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - - "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" - skip_push: false - - name_template: "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent:{{ .Major }}.{{ .Minor }}" - image_templates: - - "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}" - - "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}" - skip_push: false - - name_template: "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent:{{ .Major }}" - image_templates: - - "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent-amd64:{{ .Major }}" - - "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent-arm64:{{ .Major }}" - skip_push: false - - name_template: "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" - image_templates: - - "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" - - "us-central1-docker.pkg.dev/observiq-containers/agent/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" + - "ghcr.io/dpaasman00/bindplane-agent-amd64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" + - "ghcr.io/dpaasman00/bindplane-agent-arm64:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-ubi8" skip_push: false # https://goreleaser.com/customization/checksum/ @@ -604,22 +410,6 @@ signs: ["sign-blob", "--key=cosign.key", "--output=${signature}", "${artifact}"] artifacts: all -# https://goreleaser.com/customization/docker_sign/ -# Uses Cosign by default, signs images and manifests. -docker_signs: - - artifacts: all - stdin: "{{ .Env.COSIGN_PWD }}" - args: [ - # Default options - "sign", - "--key=cosign.key", - "${artifact}", - "--yes", - # Additional options - "--recursive", - ] - output: true - # https://goreleaser.com/customization/release/ release: draft: false diff --git a/README.md b/README.md index 65c991f58..86076ed48 100644 --- a/README.md +++ b/README.md @@ -1,144 +1 @@ -# BindPlane Agent - -
- -[![Action Status](https://github.com/observIQ/bindplane-agent/workflows/Build/badge.svg)](https://github.com/observIQ/bindplane-agent/actions) -[![Action Test Status](https://github.com/observIQ/bindplane-agent/workflows/Tests/badge.svg)](https://github.com/observIQ/bindplane-agent/actions) -[![Go Report Card](https://goreportcard.com/badge/github.com/observIQ/bindplane-agent)](https://goreportcard.com/report/github.com/observIQ/bindplane-agent) -[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) - -
- -The BindPlane Agent is observIQ’s distribution of the [OpenTelemetry collector](https://github.com/open-telemetry/opentelemetry-collector). It’s the first distribution to implement the [Open Agent Management Protocol](https://opentelemetry.io/docs/specs/opamp/) (OpAMP) and is designed to be fully managed with [BindPlane OP](https://observiq.com/). To get started, follow our [Quickstart Guide](https://observiq.com/docs/getting-started/quickstart-guide). - -## Benefits - -### Focused on usability -Increases the accessibility of OpenTelemetry by providing simplified installation scripts, tested example configurations, and end-to-end documentation making it easy to get started - -### All the best parts of OpenTelemetry and more -Bundled with all core OpenTelemetry receivers, processors, and exporters as well as additional capabilities for monitoring complex or enterprise technologies not yet available in upstream releases - -### Always Production-ready and fully-supported -Tested, verified, and supported by observIQ - -## Quick Start - -### Installation - -#### Linux - -To install using the installation script, you may run: -```sh -sudo sh -c "$(curl -fsSlL https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh)" install_unix.sh -``` - -To install directly with the appropriate package manager, see [installing on Linux](/docs/installation-linux.md). - -#### Windows - -To install the BindPlane Agent on Windows run the Powershell command below to install the MSI with no UI. -```pwsh -msiexec /i "https://github.com/observIQ/bindplane-agent/releases/latest/download/observiq-otel-collector.msi" /quiet -``` - -Alternately, for an interactive installation [download the latest MSI](https://github.com/observIQ/bindplane-agent/releases/latest). - -After downloading the MSI, simply double click it to open the installation wizard. Follow the instructions to configure and install the agent. - -For more installation information see [installing on Windows](/docs/installation-windows.md). - -#### macOS - -To install using the installation script, you may run: - -```sh -sudo sh -c "$(curl -fsSlL https://github.com/observiq/bindplane-agent/releases/latest/download/install_macos.sh)" install_macos.sh -``` - -For more installation information see [installing on macOS](/docs/installation-mac.md). - -### Next Steps - -Now that the agent is installed it is collecting basic metrics about the host machine printing them to the log. If you want to further configure your agent you may do so by editing the config file. To find your config file based on your OS reference the table below: - -| OS | Default Location | -|:--------|:--------------------------------------------------------------| -| Linux | /opt/observiq-otel-collector/config.yaml | -| Windows | C:\Program Files\observIQ OpenTelemetry Collector\config.yaml | -| macOS | /opt/observiq-otel-collector/config.yaml | - -For more information on configuration see the [Configuration section](#configuration). - -## Configuration - -The BindPlane Agent uses OpenTelemetry configuration. - -For sample configs, see the [config](/config/) directory. -For general configuration help, see the [OpenTelemetry docs](https://opentelemetry.io/docs/collector/configuration/). - -For configuration options of a specific component, take a look at the README found in their respective module roots. For a list of currently supported components see [Included Components](#included-components). - -For a list of possible command line arguments to use with the agent, run the agent with the `--help` argument. - -### Included Components - -#### Receivers - -For supported receivers and their documentation see [receivers](/docs/receivers.md). - -#### Processors - -For supported processors and their documentation see [processors](/docs/processors.md). - -#### Exporters - -For supported exporters and their documentation see [exporters](/docs/exporters.md). - -#### Extensions - -For supported extensions and their documentation see [extensions](/docs/extensions.md). - -#### Connectors - -For supported connectors and their documentation see [connectors](/docs/connectors.md). - -## Example - -Here is an example `config.yaml` setup for hostmetrics on Google Cloud. To make sure your environment is set up with required prerequisites, see our [Google Cloud Exporter Prerequisites](/config/google_cloud_exporter/README.md) page. Further details for this GCP example can be found [here](/config/google_cloud_exporter/hostmetrics). - -```yaml -# Receivers collect metrics from a source. The hostmetrics receiver will get -# CPU load metrics about the machine the agent is running on every minute. -receivers: - hostmetrics: - collection_interval: 60s - scrapers: - cpu: - disk: - load: - filesystem: - memory: - network: - paging: - processes: - -# Exporters send the data to a destination, in this case GCP. -exporters: - googlecloud: - -# Service specifies how to construct the data pipelines using the configurations above. -service: - pipelines: - metrics: - receivers: [hostmetrics] - exporters: [googlecloud] -``` - -# Community - -The BindPlane Agent is an open source project. If you'd like to contribute, take a look at our [contribution guidelines](/CONTRIBUTING.md) and [developer guide](/docs/development.md). We look forward to building with you. - -# How can we help? - -If you need any additional help feel free to file a GitHub issue or reach out to us at support@observiq.com. +Repo for testing v2 agent release