Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

fix(pingsource): declare the mt adapter metrics port as 9092 - #9610

Open
RajPrakash681 wants to merge 1 commit into
knative:mainfrom
RajPrakash681:fix/pingsource-metrics-port
Open

RajPrakash681 wants to merge 1 commit into
knative:mainfrom
RajPrakash681:fix/pingsource-metrics-port

Conversation

@RajPrakash681

@RajPrakash681 RajPrakash681 commented Nov 21, 2026 •

Copy link
Copy Markdown

Fixes #9609

Proposed Changes

  • 🐛 The pingsource-mt-adapter Deployment declares its metrics container port as 9092, the port the adapter serves Prometheus metrics on. PodMonitors and the in-repo Prometheus scrape config find this port by its name.
  • Add a unit test that checks the declared metrics port is observability.DefaultMetricsPort.

Pre-review Checklist

  • At least 80% unit test coverage
  • E2E tests for any new behavior
  • Docs PR for any user-facing impact
  • Spec PR for any new API feature
  • Conformance test for any change to the spec

Release Note

The pingsource-mt-adapter Deployment now declares its `metrics` port as 9092, the port the adapter serves metrics on by default. If you set `metrics-endpoint: ":9090"` in `config-observability`, change the Deployment's `metrics` port back to 9090 after upgrading so PodMonitors that use that port keep scraping the adapter.

Docs

None needed.

@knative-prow knative-prow Bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Nov 21, 2026
@knative-prow

knative-prow Bot commented Nov 21, 2026

Copy link
Copy Markdown

Hi @RajPrakash681. Thanks for your PR.

I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@knative-prow
knative-prow Bot requested review from Leo6Leo and matzew November 21, 2026 19:27
@knative-prow

knative-prow Bot commented Nov 21, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: RajPrakash681
Once this PR has been reviewed and has the lgtm label, please assign creydr for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@RajPrakash681
RajPrakash681 force-pushed the fix/pingsource-metrics-port branch from 140401e to 52919eb Compare November 21, 2026 20:27
Signed-off-by: RajPrakash681 <rjnt452@gmail.com>
@RajPrakash681
RajPrakash681 force-pushed the fix/pingsource-metrics-port branch from 52919eb to b56717c Compare November 22, 2026 12:15
@kahirokunn

Copy link
Copy Markdown
Member

/ok-to-test

@knative-prow knative-prow Bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Nov 22, 2026
@codecov

codecov Bot commented Nov 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 51.31%. Comparing base (f819a05) to head (b56717c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9610      +/-   ##
==========================================
- Coverage   51.33%   51.31%   -0.03%     
==========================================
  Files         412      412              
  Lines       22189    22189              
==========================================
- Hits        11391    11386       -5     
- Misses       9917     9922       +5     
  Partials      881      881              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kahirokunn

Copy link
Copy Markdown
Member

Could the release note mention that users who explicitly set metrics-endpoint: ":9090" need to keep the Deployment’s named metrics port at 9090 for existing PodMonitors to continue scraping after the upgrade?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pingsource-mt-adapter declares metrics port 9090 but serves metrics on 9092

2 participants