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

add setup-prometheus-adapter #1012

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

qindotguan
Copy link
Collaborator

To scale up/down the Vertica DB subcluster size based on prometheus metrics, we need to install the prometheus adapter. This PR provided a way to deploy the promutheus adapter in our e2e test environment.

make setup-prometheus-adapter

Makefile Outdated
setup-prometheus-adapter: ## Setup prometheus adapter for VerticaAutoscaler
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
helm install prometheus-adapter prometheus-community/prometheus-adapter --namespace monitoring --create-namespace
Copy link
Collaborator

Choose a reason for hiding this comment

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

Make the release name and namespace a parameter. Default release name and namespace can be prometheus-adapter.

  • There must be an undeploy command too
  • The user must be able to set the prometheus url, prometheus port , the number of replicas.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

  • add PROMETHEUS_ADAPTER_NAME and PROMETHEUS_ADAPTER_NAMESPACE
  • added undeploy-prometheus-adapter
  • added example values with --set prometheus.url, --set prometheus.port, and --set replicas. I will make them configurable later

Copy link
Collaborator

@roypaulin roypaulin left a comment

Choose a reason for hiding this comment

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

Look at Hao's PR. I think his PR needs to go in before yours, because I would like you to test the dapter when prometheus is running.

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.

2 participants