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

Expose admin ports for agent, collector, and query Deployments via the equivalent Service #2204

Closed
wants to merge 0 commits into from

Conversation

thomaspaulin
Copy link
Contributor

Which problem is this PR solving?

Resolves #2203

Short description of the changes

  • Expose the admin port listed in the agent, collector, and query Deployments via the equivalent Service. This allows Prometheus to scrape the /metrics endpoint on that port and therefore monitoring of Jaeger itself.

@codecov
Copy link

codecov bot commented Apr 4, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.09 ⚠️

Comparison is base (cbd285d) 87.63% compared to head (3093d80) 87.54%.

❗ Current head 3093d80 differs from pull request most recent head 6dd2c19. Consider uploading reports for the commit 6dd2c19 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2204      +/-   ##
==========================================
- Coverage   87.63%   87.54%   -0.09%     
==========================================
  Files         100      100              
  Lines        6956     6930      -26     
==========================================
- Hits         6096     6067      -29     
- Misses        656      658       +2     
- Partials      204      205       +1     
Impacted Files Coverage Δ
pkg/service/agent.go 100.00% <100.00%> (ø)
pkg/service/collector.go 98.97% <100.00%> (+0.05%) ⬆️
pkg/service/query.go 100.00% <100.00%> (ø)

... and 13 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@frzifus
Copy link
Member

frzifus commented Jun 26, 2023

oh it seems some basic tests are still failing

@iblancasa
Copy link
Collaborator

@thomaspaulin could you take a look to the failing tests?

@thomaspaulin
Copy link
Contributor Author

@iblancasa Sure thing, I'll take a look at the tests.

@iblancasa iblancasa enabled auto-merge (squash) June 27, 2023 15:50
@frzifus frzifus disabled auto-merge June 28, 2023 21:31
@frzifus frzifus enabled auto-merge (squash) July 12, 2023 14:28
@frzifus
Copy link
Member

frzifus commented Jul 12, 2023

assert.Equal(t, int32(32767), svc.Spec.Ports[0].NodePort) // make sure we get the same NodePort as set above
assert.Equal(t, intstr.FromInt(16686), svc.Spec.Ports[0].TargetPort)
assert.Equal(t, intstr.FromInt(16687), svc.Spec.Ports[1].TargetPort)
assert.Equal(t, intstr.FromInt(16687), svc.Spec.Ports[2].TargetPort)
Copy link
Member

Choose a reason for hiding this comment

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

Ahh here, its both 16687

@frzifus frzifus closed this Jul 12, 2023
auto-merge was automatically disabled July 12, 2023 14:39

Pull request was closed

@openshift-ci
Copy link

openshift-ci bot commented Jul 12, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: frzifus, thomaspaulin

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

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

@frzifus
Copy link
Member

frzifus commented Jul 12, 2023

mh... @thomaspaulin I pushed to your branch and now then it was closed?

And i also can not see the changes on your main branch https://github.com/thomaspaulin/jaeger-operator/tree/main - that's weird

@thomaspaulin
Copy link
Contributor Author

@frzifus how odd, thanks for creating a new PR with the fixes!

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.

[Bug]: Admin ports of the agent, collector, and query deployments are not exposed.
3 participants