Skip to content

Commit

Permalink
Add influxdb cluster monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
eparis committed Jun 30, 2015
1 parent a127ce7 commit 7d7d5d4
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
3 changes: 3 additions & 0 deletions contrib/ansible/group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ flannel_prefix: 12
# room for 4096 nodes with 254 pods per node.
flannel_host_prefix: 24

# Turn to false to disable cluster monitoring with heapster and influxdb
cluster_monitoring: true

# Turn this varable to 'false' to disable whole DNS configuration.
dns_setup: true
# How many replicas in the Replication Controller
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
- name: MONITORING | Assures {{ kube_config_dir }}/addons/cluster-monitoring dir exists
file: path={{ kube_config_dir }}/addons/cluster-monitoring state=directory

- name: MONITORING | Download monitoring files from Kubernetes repo
get_url:
url=https://raw.githubusercontent.com/GoogleCloudPlatform/kubernetes/master/cluster/addons/cluster-monitoring/influxdb/{{ item }}
dest="{{ kube_config_dir }}/addons/cluster-monitoring/"
force=yes
with_items:
- grafana-service.yaml
- heapster-controller.yaml
- heapster-service.yaml
- influxdb-grafana-controller.yaml
- influxdb-service.yaml
5 changes: 4 additions & 1 deletion contrib/ansible/roles/kubernetes-addons/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@

- include: dns.yml
when: dns_setup
tags: dns

- include: cluster-monitoring.yml
when: cluster_monitoring

#- name: Get kube-addons script from Kubernetes
# get_url:
Expand All @@ -39,6 +41,7 @@
TOKEN_DIR: "{{ kube_token_dir }}"
with_items:
- "system:dns"
- "system:monitoring"
register: gentoken
changed_when: "'Added' in gentoken.stdout"
notify:
Expand Down

0 comments on commit 7d7d5d4

Please sign in to comment.