Skip to content

Comments

Update custom-prom.md#1164

Merged
thomasvn merged 1 commit intomainfrom
ivankube-patch-custom-prom
Dec 12, 2024
Merged

Update custom-prom.md#1164
thomasvn merged 1 commit intomainfrom
ivankube-patch-custom-prom

Conversation

@ivankube
Copy link
Contributor

cost-analyzer-frontend container does not have curl command:

~ kubectl exec -i -t --namespace kubecost \
  deployment/kubecost-cost-analyzer -c cost-analyzer-frontend -- curl
error: Internal error occurred: Internal error occurred: error executing command in container: failed to exec in container: failed to start exec "ddb09a068fea286a5f177cc0708c91c23e8d893dd9d585d9892fdfcb9da53456": OCI runtime exec failed: exec failed: unable to start container process: exec: "curl": executable file not found in $PATH: unknown

Proposed Changes

Replaced cost-analyzer-frontend with cost-model

cost-analyzer-frontend container does not have `curl` command.

replacing cost-analyzer-frontend with cost-model
@ivankube ivankube requested a review from a team as a code owner December 12, 2024 13:42
@ivankube ivankube requested a review from thomasvn December 12, 2024 13:42
@thomasvn
Copy link
Member

Thank you for this update @ivankube! I've successfully tested this command in my own namespace running Kubecost:

kubectl exec -i -t --namespace thomasn-nightly \
  deployment/thomasn-nightly-cost-analyzer -c cost-model -- \
  curl "http://localhost:9003/prometheusQuery?query=node_total_hourly_cost"

@thomasvn thomasvn merged commit 3b18358 into main Dec 12, 2024
@thomasvn thomasvn deleted the ivankube-patch-custom-prom branch December 12, 2024 18:21
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