Skip to content

Commit 3b18358

Browse files
authored
Update custom-prom.md (#1164)
1 parent 245ae03 commit 3b18358

File tree

1 file changed

+6
-6
lines changed
  • install-and-configure/advanced-configuration/custom-prom

1 file changed

+6
-6
lines changed

install-and-configure/advanced-configuration/custom-prom/custom-prom.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Evidenced by the following pod error message `No valid prometheus config file at
130130

131131
```
132132
kubectl exec -i -t --namespace kubecost \
133-
deployment/kubecost-cost-analyzer -c cost-analyzer-frontend -- \
133+
deployment/kubecost-cost-analyzer -c cost-model -- \
134134
curl http://<your_prometheus_url>/api/v1/status/config
135135
```
136136
@@ -148,7 +148,7 @@ When successful, this command should return all of the metrics that Kubecost use
148148
149149
```
150150
kubectl exec -i -t --namespace kubecost \
151-
deployment/kubecost-cost-analyzer -c cost-analyzer-frontend -- \
151+
deployment/kubecost-cost-analyzer -c cost-model -- \
152152
curl "http://<your_prometheus_url>/metrics"
153153
```
154154
@@ -178,15 +178,15 @@ Ensure results are not null for both queries below.
178178
179179
```
180180
kubectl exec -i -t --namespace kubecost \
181-
deployment/kubecost-cost-analyzer -c cost-analyzer-frontend -- \
181+
deployment/kubecost-cost-analyzer -c cost-model -- \
182182
curl "http://localhost:9003/prometheusQuery?query=node_total_hourly_cost"
183183
```
184184
185185
2. Ensure kube-state-metrics are available: `kube_node_status_capacity`
186186
187187
```
188188
kubectl exec -i -t --namespace kubecost \
189-
deployment/kubecost-cost-analyzer -c cost-analyzer-frontend -- \
189+
deployment/kubecost-cost-analyzer -c cost-model -- \
190190
curl "http://localhost:9003/prometheusQuery?query=kube_node_status_capacity"
191191
```
192192
@@ -213,7 +213,7 @@ Ensure that all clusters and nodes have values- output should be similar to the
213213
{% code overflow="wrap" %}
214214
```
215215
kubectl exec -i -t --namespace kubecost \
216-
deployment/kubecost-cost-analyzer -c cost-analyzer-frontend -- \
216+
deployment/kubecost-cost-analyzer -c cost-model -- \
217217
curl -G http://localhost:9003/thanosQuery \
218218
-d time=`date -d '1 day ago' "+%Y-%m-%dT%H:%M:%SZ"` \
219219
--data-urlencode "query=avg (sum_over_time(node_total_hourly_cost[1d])) by (cluster_id, node)" \
@@ -230,7 +230,7 @@ On macOS, change `date -d '1 day ago'` to `date -v '-1d'`
230230
{% code overflow="wrap" %}
231231
```
232232
kubectl exec -i -t --namespace kubecost \
233-
deployment/kubecost-cost-analyzer -c cost-analyzer-frontend -- \
233+
deployment/kubecost-cost-analyzer -c cost-model -- \
234234
curl -G http://localhost:9003/thanosQuery \
235235
-d time=`date -d '1 day ago' "+%Y-%m-%dT%H:%M:%SZ"` \
236236
--data-urlencode "query=avg (sum_over_time(kube_node_status_capacity[1d])) by (cluster_id, node)" \

0 commit comments

Comments
 (0)