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

boskos: merge Prometheus resource metrics into boskos core #16001

Closed
ixdy opened this issue Jan 23, 2020 · 6 comments
Closed

boskos: merge Prometheus resource metrics into boskos core #16001

ixdy opened this issue Jan 23, 2020 · 6 comments
Labels
area/boskos Issues or PRs related to code in /boskos kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@ixdy
Copy link
Member

ixdy commented Jan 23, 2020

What should be cleaned up or changed:
On k8s prow, the Boskos service runs inside the Prow builds cluster.
Back in 2017, we wanted to collect metrics on Boskos resources to show in Velodrome, so it was necessary to expose these metrics on an external IP, since the Velodrome collectors did not run inside the builds cluster.

To accomplish this, #3971 added the boskos-metrics component, which both proxied the /metric API on /, as well as exposing Prometheus-style metrics on /prometheus.

Since then, we've switched to serving Prometheus-style metrics on port 9090, and since #15356 have not even exposed the /metric proxy, but nobody has seemed to complain (so maybe it's not used?). We're now collecting metrics using the Prow monitoring stack, but since that runs in a separate cluster, we still need to expose the metrics via a public IP.

At the same time, the main Boskos deployment is also serving its own Prometheus metrics on port 9090. In #15990, I'm adding a new Service that exposes these metrics. Rather than running a separate boskos-metrics component, we could just move these resource metrics into the Prometheus metrics in boskos core, simplifying deployments slightly.

(I also intend to serve metrics on janitors. We might want to configure some sort of cluster-local aggregator for these, since they'll also be private to the cluster.)

/area boskos

cc @stevekuznetsov @krzyzacy is there something obvious I'm missing here?

@ixdy ixdy added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Jan 23, 2020
@k8s-ci-robot k8s-ci-robot added the area/boskos Issues or PRs related to code in /boskos label Jan 23, 2020
@ixdy
Copy link
Member Author

ixdy commented Jan 27, 2020

regarding metric "aggregation" - maybe federation is relevant?

@stevekuznetsov
Copy link
Contributor

You could do that, yes, or configure for Prometheus in the build cluster to scrape everything there and remote_write to push out to something public./

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 26, 2020
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels May 26, 2020
@ixdy
Copy link
Member Author

ixdy commented May 29, 2020

I think this is actually done, though I haven't added metrics to the janitors yet.

/close

@k8s-ci-robot
Copy link
Contributor

@ixdy: Closing this issue.

In response to this:

I think this is actually done, though I haven't added metrics to the janitors yet.

/close

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/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/boskos Issues or PRs related to code in /boskos kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

4 participants