Charts: rules are not enabled and disabled

Created on 30 Jan 2019  路  6Comments  路  Source: helm/charts

BUG REPORT

when i set the defaultRules.create to false and defaultRules.rules.alertmanager to true i have no default rules.
I think it has to be enable the specified rules, when i enable it.

For example in eks there are no kubelet services are running.

Version of Helm and Kubernetes:
2.0.0

Which chart:
charts/stable/prometheus-operator/

What happened:

What you expected to happen:
enable the specified rule

How to reproduce it (as minimally and precisely as possible):
set vars
values:
defaultRules:
create: false
rules:
alertmanager: true

Anything else we need to know:
when i set defaultRules.create: true i get all rules enabled

All 6 comments

In a way it's currently done you need to have defaultRules.create: true and set all rules except ones you want to false. It's intended to be that way, other way (anything at all created with defaultRules.create: false) is counter-intuitive. If it's not clear from documentation, than documentation should be altered - feel free to propose PR for that.

@paskal
this is not working look at my vars

grafik

and i got any rules in prometheus

grafik

Could you please post output of helm version and kubectl version commands, and also re-deploy your prometheus-operator to make sure it's the latest version? From initial report it's unclear which version you've deployed.

helm version
Client: &version.Version{SemVer:"v2.11.0", GitCommit:"2e55dbe1fdb5fdb96b75ff144a339489417b146b", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.12.2", GitCommit:"7d2b0c73d734f6586ed222a567c5d103fed435be", GitTreeState:"clean"}

kubectl version
Client Version: version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.2", GitCommit:"17c77c7898218073f14c8d573582e8d2313dc740", GitTreeState:"clean", BuildDate:"2018-10-24T06:54:59Z", GoVersion:"go1.10.4", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"11+", GitVersion:"v1.11.5-eks-6bad6d", GitCommit:"6bad6d9c768dc0864dab48a11653aa53b5a47043", GitTreeState:"clean", BuildDate:"2018-12-06T23:13:14Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"}

i am using flux for deploy the operator there i set the version
spec:
chart:
repository: https://kubernetes-charts.storage.googleapis.com/
name: prometheus-operator
version: 2.0.0

okay i see there is now a newer version
2.1.5

i try it
@paskal

okay with the new version it seems to be working, thank you for your help.

@paskal

Was this page helpful?
0 / 5 - 0 ratings