Skip to content

Conversation

@Kim-Yukyung
Copy link

PR Description

This PR fixes an issue in the prometheus.exporter.gcp component where colon (:) characters inside extra_filters values were being removed due to the previous parsing logic. By switching to strings.SplitN(filter, ":", 2), colons inside filter expressions (e.g., project_id:database_name) are now preserved correctly.

Which issue(s) this PR fixes

Fixes #4186

Notes to the Reviewer

The previous implementation relied on utils.SplitExtraFilter, which incorrectly removed colon characters from filter expressions. The updated logic only splits on the first colon, ensuring that metric prefix extraction remains correct while preserving all remaining colons in the filter query. No behavior changes outside of extra_filters parsing.

PR Checklist

  • CHANGELOG.md updated
  • Tests updated

@Kim-Yukyung Kim-Yukyung requested a review from a team as a code owner December 5, 2025 16:52
@CLAassistant
Copy link

CLAassistant commented Dec 5, 2025

CLA assistant check
All committers have signed the CLA.

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.

Colon symbol gets removed from the filter query

2 participants