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

feat(metrics): building blocks for postgres exporter #53

Merged
merged 39 commits into from
Jul 30, 2024
Merged

Conversation

rwh85
Copy link
Contributor

@rwh85 rwh85 commented Jul 17, 2024

Description

This PR enhances the package by introducing a metrics endpoint to the PostgreSQL cluster pods. The implementation involves adding a sidecar to the pods, which exposes a port for Prometheus to scrape using a configured PodMonitor.

The changes avoid using the package CR to expose the metrics endpoint due to its complexity, particularly the need to exempt from uds/skip-mutate: "true" and to configure the PeerAuthentication CR to carve out a permissive mTLS port for the PodMonitor.

Monitoring can be enabled, but defaults to false.

Related Issue

Relates to #51

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist before merging

@rwh85 rwh85 changed the title feat:building blocks for postgres exporter feat(metrics):building blocks for postgres exporter Jul 17, 2024
@rwh85 rwh85 changed the title feat(metrics):building blocks for postgres exporter feat(metrics): building blocks for postgres exporter Jul 17, 2024
@rwh85 rwh85 marked this pull request as ready for review July 18, 2024 18:59
@rwh85 rwh85 requested a review from a team as a code owner July 18, 2024 18:59
values/registry1-values.yaml Outdated Show resolved Hide resolved
chart/templates/peerauthentication/postgres-pa.yaml Outdated Show resolved Hide resolved
chart/templates/postgres-monitor.yaml Outdated Show resolved Hide resolved
values/registry1-values.yaml Outdated Show resolved Hide resolved
zarf.yaml Show resolved Hide resolved
@rwh85
Copy link
Contributor Author

rwh85 commented Jul 24, 2024

@Racer159 @zachariahmiller - Thanks for the support on this. I think I've got us to a better place with all initial issues resolved. Noting that the sidecar config is now in the more specific values files as it seems helm isn't able to merge the values in that array so I'm only getting the content of the values file with most precedence. Please let me know if there is anything else you'd like to see here.

values/registry1-values.yaml Outdated Show resolved Hide resolved
zarf.yaml Outdated Show resolved Hide resolved
.github/workflows/test.yaml Outdated Show resolved Hide resolved
rwh85 and others added 2 commits July 30, 2024 15:02
Co-authored-by: Wayne Starr <[email protected]>
@Racer159 Racer159 merged commit c2a47bc into main Jul 30, 2024
10 checks passed
Racer159 added a commit that referenced this pull request Jul 31, 2024
## Description

This adds the Made for UDS badge now that monitoring is in as of #53 

## Related Issue

Fixes #52 

## Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [X] Other (security config, docs update, etc)

## Checklist before merging

- [X] Test, docs, adr added or updated as needed
- [X] [Contributor Guide
Steps](https://github.com/defenseunicorns/uds-package-postgres-operator/blob/main/CONTRIBUTING.md#developer-workflow)
followed
Racer159 pushed a commit that referenced this pull request Jul 31, 2024
🤖 I have created a release *beep* *boop*
---


##
[1.12.2-uds.2](v1.12.2-uds.1...v1.12.2-uds.2)
(2024-07-31)


### Features

* **metrics:** building blocks for postgres exporter
([#53](#53))
([c2a47bc](c2a47bc))


### Miscellaneous

* add `Made for UDS` badge
([#57](#57))
([2aa0328](2aa0328))
* **deps:** update postgres support dependencies
([#50](#50))
([18c6c03](18c6c03))
* **deps:** update postgres support dependencies
([#56](#56))
([a79c9c6](a79c9c6))
* **deps:** update support-deps to v3.25.15
([#55](#55))
([84d4c33](84d4c33))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants