Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable InfluxDB/Grafana for GCE in addition to GCL. Disable GCM #9309

Merged
merged 2 commits into from Jun 11, 2015

Conversation

saad-ali
Copy link
Member

@saad-ali saad-ali commented Jun 5, 2015

@k8s-bot
Copy link

k8s-bot commented Jun 5, 2015

EXPERIMENTAL JENKINS PR BUILDER: e2e build succeeded.

@saad-ali
Copy link
Member Author

saad-ali commented Jun 5, 2015

CC @thockin @vishh

@k8s-bot
Copy link

k8s-bot commented Jun 5, 2015

EXPERIMENTAL JENKINS PR BUILDER: e2e build succeeded.

{% if pillar.get('enable_cluster_monitoring', '').lower() == 'googleinfluxdb' %}
/etc/kubernetes/addons/cluster-monitoring/googleinfluxdb:
file.recurse:
- source: salt://kube-addons/cluster-monitoring
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am little bit confused here: you introduced a new mode called googleinfluxdb which enable both GCM and influxdb, right? If I understood it correctly, shouldn't the source here points to cluster/addons/cluster-monitoring/googleinfluxdb which contains yaml files defining this mode?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In order to enable both GCM/GCL and InfluxDB/Grafana we need to enable all the services/controllers for both (meaning we need everything in cluster/addons/cluster-monitoring/influxdb and cluster/addons/cluster-monitoring/google) except for the heapster-controller files which need to be modified to be able to pass to both backends instead of just one or the other (hence the new heapster-controller-combined file).

So when googleinfluxdb is specified, we pick up all the files under cluster/addons/cluster-monitoring/* including the google, influxdb, and the new googleinfluxdb folders, but we exclude the heapster-controller files (googleinfluxdb contains the new combined heapster-controller-combined file).

An alternative would be to copy all the non-heapster-controller files from influxdb to the new googleinfluxdb folder. That way we could just include googleinfluxdb folder and be done. But I'd prefer not to do that (people will have to remember to modify both instances of each file). Let me know if you feel strongly otherwise.

@vishh
Copy link
Contributor

vishh commented Jun 5, 2015

AFAIK #9028 is a blanket bug for improving support for Influxdb. This PR by itself will not resolve that. FYI!

@saad-ali
Copy link
Member Author

saad-ali commented Jun 5, 2015

@vishh Let's sync up offline with @dchen1107.

@dchen1107
Copy link
Member

@vissh what kind of improving support for influxdb you expected being included here? Could you please list here?

Currently if the user runs a kubernetes cluster on GCE, instead of GKE, by default GCM is enabled for them, but not much metrics at all. And Influxdb and Grafana is disable for them completely. This PR is enabling those open source solution by default, it will be better than today. Also we can iterate them later.

@saad-ali
Copy link
Member Author

saad-ali commented Jun 6, 2015

PTAL. New revision disables GCM, enables InfluxDB/Grafana, and leaves GCL enabled.

@k8s-bot
Copy link

k8s-bot commented Jun 6, 2015

EXPERIMENTAL JENKINS PR BUILDER: e2e build succeeded.

@saad-ali saad-ali changed the title Enable InfluxDB/Grafana for GCE in addition to GCM/GCL Enable InfluxDB/Grafana for GCE in addition to GCL. Disable GCM Jun 6, 2015
command:
- /heapster
- --source=kubernetes:https://kubernetes
- --sink=gcl
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will result in events being pushed to both influxdb and GCL. Shall we update heapster to make events optional in influxdb?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, that's a good idea. Opened up kubernetes-retired/heapster/issues/321

@vishh
Copy link
Contributor

vishh commented Jun 8, 2015

LGTM

@saad-ali
Copy link
Member Author

Can you add LGTM label so that on-call can merge.

@vishh vishh added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 10, 2015
@vishh
Copy link
Contributor

vishh commented Jun 10, 2015

@saad-ali: I assume you have either manually tested this PR or ran e2e.

@saad-ali
Copy link
Member Author

Yep, manually tested to verify that InfluxDB and Grafana come up without issue.

@k8s-bot
Copy link

k8s-bot commented Jun 11, 2015

GCE e2e build/test failed for commit a839f47.

@saad-ali
Copy link
Member Author

Jenkins Build was aborted Aborted by anonymous. Not a real failure.

ArtfulCoder added a commit that referenced this pull request Jun 11, 2015
Enable InfluxDB/Grafana for GCE in addition to GCL. Disable GCM
@ArtfulCoder ArtfulCoder merged commit 59a347d into kubernetes:master Jun 11, 2015
@saad-ali saad-ali deleted the issue9028 branch June 15, 2015 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants