Skip to content

Commit 0a1af3e

Browse files
authored
Update README.md
1 parent 8989e1f commit 0a1af3e

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

examples/AWS/AWS-EKS/README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ This process can also be done using the AWS Command Line Interface (CLI) or the
104104
`helm repo add prometheus-community https://prometheus-community.github.io/helm-charts`
105105
2. Execute the command:
106106

107-
helm install my-prometheus --repo https://prometheus-community.github.io/helm-charts prometheus \
108-
--namespace prometheus --create-namespace \
109-
--set pushgateway.enabled=false \
110-
--set alertmanager.enabled=false \
111-
-f https://raw.githubusercontent.com/opencost/opencost/develop/kubernetes/prometheus/extraScrapeConfigs.yaml
107+
helm install my-prometheus --repo https://prometheus-community.github.io/helm-charts prometheus \
108+
--namespace prometheus --create-namespace \
109+
--set pushgateway.enabled=false \
110+
--set alertmanager.enabled=false \
111+
-f https://raw.githubusercontent.com/opencost/opencost/develop/kubernetes/prometheus/extraScrapeConfigs.yaml
112112

113113
## Deploying OpenCost
114114
1. Execute the command:
@@ -121,19 +121,19 @@ This process can also be done using the AWS Command Line Interface (CLI) or the
121121
`helm repo add grafana https://grafana.github.io/helm-charts`
122122
2. Execute the command:
123123

124-
helm install grafana grafana/grafana \
125-
--namespace grafana \
126-
--set persistence.storageClassName="gp2" \
127-
--set persistence.enabled=true \
128-
--set adminPassword='EKS!sAWSome' \
129-
--values ${HOME}/environment/grafana/grafana.yaml \
130-
--set service.type=LoadBalancer
124+
helm install grafana grafana/grafana \
125+
--namespace grafana \
126+
--set persistence.storageClassName="gp2" \
127+
--set persistence.enabled=true \
128+
--set adminPassword='EKS!sAWSome' \
129+
--values ${HOME}/environment/grafana/grafana.yaml \
130+
--set service.type=LoadBalancer
131131

132132
3. Execute these commands to get the URL. Login in with the username admin and the password EKS!sAWsome
133133

134-
export ELB=$(kubectl get svc -n grafana grafana -o jsonpath='{.status.loadBalancer.ingress[0].hostname}')
135-
echo "http://$ELB"
136-
```
134+
export ELB=$(kubectl get svc -n grafana grafana -o jsonpath='{.status.loadBalancer.ingress[0].hostname}')
135+
echo "http://$ELB"
136+
137137
4. To create the dashboard for monitoring Prometheus metrics, go to the sidebar, click on the four square icon, and click '+Import.' For the ID, type in 3119. For tracking, select Prometheus. Hit Create.
138138
5. For the Opencost dashbaord, go to the sidebar, click on the four square icon, and click '+Import.' Upload the opencostGrafana.json file, select Prometheus under tracking, and then create.
139139
6. You need to edit the Grafana ini file to make Grafana publicly accessible. In order to do so, go to your terminal and run:

0 commit comments

Comments
 (0)