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

public-api/viz split 4/8: remove linkerd-controller dependency on Prometheus #5556

Closed
wants to merge 1 commit into from

Conversation

alpeb
Copy link
Member

@alpeb alpeb commented Jan 18, 2021

This is based on the branch alpeb/viz-healthcheck from #5555

Tests are not supposed to pass in this branch. More wiring will come up in the followup PRs.

@alpeb alpeb requested a review from a team as a code owner January 18, 2021 16:10
alpeb added a commit that referenced this pull request Jan 18, 2021
This is based on the branch `alpeb/no-more-controller-prom` from #5556

We continue removing the linkerd-controller dependencies on viz stuff, except for things required for the tap server, which can be tackled separately afterwards.

- Created a new gRPC server under `viz/metrics-api` moving prometheus-dependent functions out of the core gRPC server and into it (same thing for the accompaigning http server).
- Did the same for the `PublicAPIClient` (now called just `Client`) interface. The `VizAPIClient` interface disappears as it's enough to just rely on the viz `ApiClient` protobuf type.
- Moved the other files implementing the rest of the gRPC functions from `controller/api/public` to `viz/metrics-api` (`edge.go`, `stat_summary.go`, etc.).
- Also simplified some type names to avoid stuttering.

Tests are not supposed to pass in this branch.
@alpeb alpeb changed the title Remove linkerd-controller dependency on Prometheus public-api/viz split 4/8: remove linkerd-controller dependency on Prometheus Jan 18, 2021
@alpeb alpeb force-pushed the alpeb/no-more-controller-prom branch from 921527b to 7980741 Compare January 20, 2021 14:37
@alpeb alpeb force-pushed the alpeb/viz-healthcheck branch from 326daa1 to 18abd97 Compare January 20, 2021 15:03
…metheus

This is based on the branch `alpeb/viz-healthcheck` from #5555

- Removed the `global.prometheusUrl` config in the core values.yml.
- Removed `linkerd-controller` dependencies on Prometheus.
- Leave the Heartbeat's  `-prometheus` flag hard-coded temporarily. TO-DO: have it automatically discover viz and pull Prometheus' endpoint (#5352).

Tests are not supposed to pass in this branch. More wiring will come up in the followup PRs.
@alpeb alpeb force-pushed the alpeb/no-more-controller-prom branch from 7980741 to c512846 Compare January 20, 2021 15:18
alpeb added a commit that referenced this pull request Jan 20, 2021
This is based on the branch `alpeb/no-more-controller-prom` from #5556

We continue removing the linkerd-controller dependencies on viz stuff, except for things required for the tap server, which can be tackled separately afterwards.

- Created a new gRPC server under `viz/metrics-api` moving prometheus-dependent functions out of the core gRPC server and into it (same thing for the accompaigning http server).
- Did the same for the `PublicAPIClient` (now called just `Client`) interface. The `VizAPIClient` interface disappears as it's enough to just rely on the viz `ApiClient` protobuf type.
- Moved the other files implementing the rest of the gRPC functions from `controller/api/public` to `viz/metrics-api` (`edge.go`, `stat_summary.go`, etc.).
- Also simplified some type names to avoid stuttering.

Tests are not supposed to pass in this branch.
@alpeb
Copy link
Member Author

alpeb commented Jan 20, 2021

Closing in favor of #5560 which will aggregate all these changes.

@alpeb alpeb closed this Jan 20, 2021
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.

1 participant