summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorJoel Diaz <jdiaz@redhat.com>2015-11-11 15:28:43 -0500
committerJoel Diaz <jdiaz@redhat.com>2015-11-11 15:28:43 -0500
commit5561086ad55cac6605df515f09b04284890f0b2b (patch)
tree5387a68b9dae40dcad0c00cf1f04a9c57422ffae /roles
parent3d3f2875bb89cdbdeadd7da4868355669ba12122 (diff)
downloadopenshift-5561086ad55cac6605df515f09b04284890f0b2b.tar.gz
openshift-5561086ad55cac6605df515f09b04284890f0b2b.tar.bz2
openshift-5561086ad55cac6605df515f09b04284890f0b2b.tar.xz
openshift-5561086ad55cac6605df515f09b04284890f0b2b.zip
Add zabbix pieces to hold AWS S3 bucket stats
Diffstat (limited to 'roles')
-rw-r--r--roles/os_zabbix/tasks/main.yml9
-rw-r--r--roles/os_zabbix/vars/template_aws.yml25
2 files changed, 34 insertions, 0 deletions
diff --git a/roles/os_zabbix/tasks/main.yml b/roles/os_zabbix/tasks/main.yml
index 82bf78b57..59c89bb02 100644
--- a/roles/os_zabbix/tasks/main.yml
+++ b/roles/os_zabbix/tasks/main.yml
@@ -16,6 +16,7 @@
- include_vars: template_app_zabbix_server.yml
- include_vars: template_app_zabbix_agent.yml
- include_vars: template_performance_copilot.yml
+- include_vars: template_aws.yml
- name: Include Template Heartbeat
include: ../../lib_zabbix/tasks/create_template.yml
@@ -88,3 +89,11 @@
server: "{{ ozb_server }}"
user: "{{ ozb_user }}"
password: "{{ ozb_password }}"
+
+- name: Include Template AWS
+ include: ../../lib_zabbix/tasks/create_template.yml
+ vars:
+ template: "{{ g_template_aws }}"
+ server: "{{ ozb_server }}"
+ user: "{{ ozb_user }}"
+ password: "{{ ozb_password }}"
diff --git a/roles/os_zabbix/vars/template_aws.yml b/roles/os_zabbix/vars/template_aws.yml
new file mode 100644
index 000000000..0ed682128
--- /dev/null
+++ b/roles/os_zabbix/vars/template_aws.yml
@@ -0,0 +1,25 @@
+---
+g_template_aws:
+ name: Template AWS
+ zdiscoveryrules:
+ - name: disc.aws
+ key: disc.aws
+ lifetime: 1
+ description: "Dynamically register AWS bucket info"
+
+ zitemprototypes:
+ - discoveryrule_key: disc.aws
+ name: "S3 bucket size (GB) [{#S3_BUCKET}]"
+ key: "disc.aws.size[{#S3_BUCKET}]"
+ value_type: int
+ description: "Size of S3 bucket"
+ applications:
+ - AWS
+
+ - discoveryrule_key: disc.aws
+ name: "S3 bucket object count [{#S3_BUCKET}]"
+ key: "disc.aws.objects[{#S3_BUCKET}]"
+ value_type: int
+ description: "Objects in S3 bucket"
+ applications:
+ - AWS