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

wip: introduce k8s service testing #114

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Todai88
Copy link
Contributor

@Todai88 Todai88 commented Jan 5, 2022

Please be mindful that this very much is a PoC / WIP.

Instead of depending on a config file, we can use Kubernetes' go-library to
loop over services and identify viable services by label (registry-web for now).

Added a few TODOs too that should be addressed.

@Todai88 Todai88 self-assigned this Jan 5, 2022
Copy link
Contributor

@cmars cmars left a comment

Choose a reason for hiding this comment

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

First and foremost: This is fricken awesome!

A thought: I'm wondering if we should separate concerns here a bit:

  • Keep the scraper as a thing that scrapes lists of services
  • Introduce a service discovery interface w/k8s implementation, as a thing which configures a Scraper interface with a list of discovered services.

That keeps options open if one wants to add extra services. Thinking of how prometheus is configured -- you can specify scrape targets directly by host:port/path, and also set up SD to import additional scrape targets from k8s and other sources automatically.

Instead of depending on a config file, we can use Kubernetes' go-library to
loop over services and identify viable services by label (`registry-web` for now).

Added a few TODOs too that should be addressed.

ALSO:
- update docker image to 1.17
@Todai88 Todai88 force-pushed the wip/introduce-k8s-service-testing branch from 58b28de to a68482f Compare January 5, 2022 21:58
@genslein
Copy link
Contributor

genslein commented Jan 5, 2022

I love this! I like the idea of allowing static vs. dynamic discovery here as a separate setting in VU. A great jumping off point to be sure though!

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.

None yet

3 participants