Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support additional pgbouncer configuration #500

Open
pindge opened this issue Jan 11, 2022 · 2 comments
Open

support additional pgbouncer configuration #500

pindge opened this issue Jan 11, 2022 · 2 comments
Labels
kind/enhancement kind - new features or changes

Comments

@pindge
Copy link

pindge commented Jan 11, 2022

What is your feature request?

I would like the chart to support additional configuration for pgbouncer service https://www.pgbouncer.org/config.html#example

useful custom config include:

Attempted solution

extraContainers:
        - name: pgbouncer-exporter
          image: prometheuscommunity/pgbouncer-exporter:v0.4.0
          imagePullPolicy: IfNotPresent
          args:
            - --web.listen-address=9127
            - --web.telemetry-path=/metrics
            - --log.level=info
            - --log.format=logfmt
            - --pgBouncer.connectionString=postgres://airflow:$(db_password)@airflow-pgbouncer:6432/pgbouncer?sslmode=disable&connect_timeout=10
          ports:
            - name: exporter
              containerPort: 9127
              protocol: TCP
          resources:
            requests:
                cpu: 10m
                memory: 128Mi
          env:
            - name: db_password
              valueFrom:
                secretKeyRef:
                  name: airflow-db
                  key: postgres-password

And this was the error

+ kubectl logs airflow-web-78c7cf4f4-mzgfl -n processing -c pgbouncer-exporter
level=error ts=2022-01-11T00:38:28.718Z caller=collector.go:129 msg="error setting up DB connection" err="error pinging pgbouncer: \"pq: not allowed\""

What alternatives have you considered?

Alternatively the chart could...

@pindge pindge added the kind/enhancement kind - new features or changes label Jan 11, 2022
@pindge pindge changed the title pgbouncer-exporter unable to connect to pgbouncer service support additional pgbouncer configuration Jan 11, 2022
@stale
Copy link

stale bot commented Mar 12, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the lifecycle/stale lifecycle - this is stale label Mar 12, 2022
@stale stale bot closed this as completed Mar 19, 2022
@thesuperzapper
Copy link
Member

@pindge can you clarify why you want to set admin_users and ignore_startup_parameters to something custom?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement kind - new features or changes
Projects
None yet
Development

No branches or pull requests

2 participants