-
Notifications
You must be signed in to change notification settings - Fork 7
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
Install Prometheus and Grafana with eoAPI #42
Comments
UpdatesPrometheus:Prometheus is a monitoring tool that helps you keep track of various metrics and statistics for your computer systems, applications, and services. It collects data over time(stores 15days), allowing you to analyze performance, troubleshoot issues. Exporters: https://prometheus.io/docs/instrumenting/exporters/Exporters are programs that collect metrics from a specified source and transform them into a format that can be consumed by Prometheus. The
Installing Prometheus, Grafana and exporters:Clone the repo: https://github.com/Rub21/k8s-monitoring To access the Grafana dashboard, you'll need to set up an environment variable. For example, use the command ./deploy.sh create
# tab1
kubectl port-forward svc/prometheus-operated 9090 --namespace prometheus
# tab2
kubectl port-forward deployment/prometheus-grafana 3000 --namespace prometheus Once the UI dashboards are exported, you can open them. Prometheus dashboardhttp://localhost:9090/targets?search= ![]() Grafana dashboard![]()
![]() The dashboards can be customized for each specific use case. There are still more metrics to explore that could be useful or necessary for the EOAPI scenario. |
@ranchodeluxe , Regarding your statement, are you suggesting that we should export the charts as PNG images? there is this grafana-image-renderer that we may need to install in the cluster to export the images, Alternatively, if you're referring to exporting the chart data, it can be downloaded as a CSV file. |
Nice work @Rub21 🥳 Grafana allows us to export dashboards as JSON so they can be imported by downstream users. I've been building a basic set of eoAPI dashboards that actually helped me last week diagnose that our stac pods were being throttled and killed b/c they were running into CPU limits in the integration test pipeline. So I can handle this second AC item. Let me leave a separate comment below on your AC 1&3 stuff. |
This is a great start @Rub21 💯 A couple comments.
|
Background
To do HPA/VPA properly we need metrics and Prometheus seems to be the best game in town. We also need to visualize metrics to understand whats happening with resourcing in the clstuer. Grafana seems to be the most used open-source project for this.
While these two packages can easily be
helm
installed the main purpose of this ticket is to help users get started quick with docs and other things belowAC:
eoapi-k8s
can install Prometheus and GrafanaThe text was updated successfully, but these errors were encountered: