harish hari
harish hari

Reputation: 101

while trying to deploy Prometheus I got Error: found in Chart.yaml, but missing in charts/ directory: kube-state-metrics

Commands used:

git clone https://github.com/helm/charts.git

cd charts/stable/prometheus

helm install prometheus . --namespace monitoring --set rbac.create=true

After Running the 3rd command I got below error:

enter image description here

Anyone Please help me out from this issue...

Thanks...

Upvotes: 2

Views: 2484

Answers (2)

Mikolaj S.
Mikolaj S.

Reputation: 3224

On the GitHub page you can see that this repo it deprecated:

DEPRECATED and moved to https://github.com/prometheus-community/helm-charts

So I'd recommend to add and use Prometheus Community Kubernetes Helm Charts repository:

helm repo add prometheus-community https://prometheus-community.github.io/helm-charts

Then you can install Prometheus with your flags using following command:

helm install prometheus prometheus-community/prometheus --namespace monitoring --set rbac.create=true

If you really want to stick to the version from the old repository, you don't have to clone repo to your host. Just follow steps from the repository page. Make sure you have https://charts.helm.sh/stable repository added to the helm by running helm repo list. If not, add it using command:

helm repo add stable https://charts.helm.sh/stable

Then, you can install your chart:

helm install prometheus stable/prometheus --namespace monitoring --set rbac.create=true

Upvotes: 1

Harsh Manvar
Harsh Manvar

Reputation: 30180

If you dont want to install the state metrics you can try

To disable the dependency during installation, set kubeStateMetrics.enabled to false into values.yaml file

in values.yaml file line no. 435 change false

Once done with editing the file, you run the same command.

helm install prometheus . --namespace monitoring --set rbac.create=true

Ref document : https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus#dependencies

OR

You can try the

  1. git clone https://github.com/helm/charts.git
  2. cd charts/stable/prometheus
  3. helm dependency update

Try running above command in kube-state-metrics folder if exist

  1. helm install prometheus . --namespace monitoring --set rbac.create=true

You need to install the dependency of prometheus also

Read more at : https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/README.md#dependencies

Upvotes: 0

Related Questions