Skip to content

[receiver/postgresql] clarify postgresql.backends metric semantics #35818

[receiver/postgresql] clarify postgresql.backends metric semantics

[receiver/postgresql] clarify postgresql.backends metric semantics #35818

name: codeowners
on:
push:
branches: [main]
paths:
- ".github/CODEOWNERS"
- "**/metadata.yaml"
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
pull_request_target:
paths:
- ".github/CODEOWNERS"
- "**/metadata.yaml"
types:
- opened
- synchronize
- edited
- reopened
env:
# Make sure to exit early if cache segment download times out after 2 minutes.
# We limit cache download as a whole to 5 minutes.
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
# Do not cancel this workflow on main. See https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/16616
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions: read-all
jobs:
check-codeowners:
timeout-minutes: 30
runs-on: ubuntu-24.04
if: ${{ github.actor != 'dependabot[bot]' && github.repository == 'open-telemetry/opentelemetry-collector-contrib' }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- run: ./.github/workflows/scripts/free-disk-space.sh
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7
id: go-setup
with:
go-version: oldstable
cache: false
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
path: pr
allow-unsafe-pr-checkout: true
- uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
id: otelbot-token
with:
client-id: ${{ vars.OTELBOT_CLIENT_ID }}
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
permission-members: read
# githubgen enforces that every code owner is an organization member and,
# via -github-team, that they are a member of the collector-contrib-contributors
# team, which grants the repository access required to be requested as a reviewer.
- name: Gen CODEOWNERS
run: |
if ! GITHUB_TOKEN=${{ steps.otelbot-token.outputs.token }} GITHUBGEN_ARGS="-folder=pr -github-team=collector-contrib-contributors" make codeowners; then echo 'Failed to generate CODEOWNERS. If you added a new code owner, ensure they are a member of the open-telemetry organization and the open-telemetry/collector-contrib-contributors team (https://github.com/orgs/open-telemetry/teams/collector-contrib-contributors).' && exit 1; fi
if ! git -C pr diff -s --exit-code; then echo 'Generated code is out of date, please run "make update-codeowners" and commit the changes in this PR. If you added a new code owner, also ensure they are a member of the open-telemetry/collector-contrib-contributors team.' && git -C pr diff && exit 1; fi
- run: ./.github/workflows/scripts/check-disk-space.sh