Skip to content

Conversation

@THardy98
Copy link
Contributor

@THardy98 THardy98 commented Dec 5, 2025

What was changed

Upload nightly prometheus worker metrics to S3 for querying in Omni

Why?

observability

@THardy98 THardy98 requested a review from a team as a code owner December 5, 2025 00:51
DATE=$(date +%Y-%m-%d)
# Use test/ prefix on non-main branches
PREFIX="language=python/date=$DATE"
if [[ "${{ github.ref }}" != "refs/heads/main" ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think github.ref might be safe in this context, but IMO we should be in the habit of piping any interpolation through env vars to avoid any potential injection

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to env var


- name: Install Prometheus
run: |
PROM_VERSION="3.8.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd consider moving this up to the env block (either for this step or even the workflow) rather than defining it inline here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also moved to env var

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.

3 participants