Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sergioarmgpl/kcdlima-2024-kepler
https://github.com/sergioarmgpl/kcdlima-2024-kepler
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sergioarmgpl/kcdlima-2024-kepler
- Owner: sergioarmgpl
- Created: 2024-07-12T06:01:27.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-29T22:11:13.000Z (5 months ago)
- Last Synced: 2024-07-30T03:53:34.717Z (5 months ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# KCDLima-2024-kepler
# Installing Prometheus
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo updatehelm install prometheus prometheus-community/kube-prometheus-stack \
--namespace monitoring \
--create-namespace \
--wait# Installing Kepler
helm repo add kepler https://sustainable-computing-io.github.io/kepler-helm-chart
helm repo updatehelm install kepler kepler/kepler \
--namespace kepler \
--create-namespace \
--set serviceMonitor.enabled=true \
--set serviceMonitor.labels.release=prometheus \
--set canMount.usrSrc=falsePost Install
KPLR_POD=$(
kubectl get pod \
-l app.kubernetes.io/name=kepler \
-o jsonpath="{.items[0].metadata.name}" \
-n kepler
)
kubectl wait --for=condition=Ready pod $KPLR_POD --timeout=-1s -n keplerwget https://raw.githubusercontent.com/sustainable-computing-io/kepler/main/grafana-dashboards/Kepler-Exporter.json
GF_POD=$(
kubectl get pod \
-n monitoring \
-l app.kubernetes.io/name=grafana \
-o jsonpath="{.items[0].metadata.name}"
)
kubectl cp Kepler-Exporter.json monitoring/$GF_POD:/tmp/dashboards/kepler_dashboard.jsonport-forward access the panel
kubectl port-forward svc/prometheus-grafana -n monitoring 8001:80 --address 0.0.0.0Get user and password to login
kubectl get secret prometheus-grafana -n monitoring -o jsonpath='{.data.admin-password}' | base64 --decode
kubectl get secret prometheus-grafana -n monitoring -o jsonpath='{.data.admin-user}' | base64 --decode