Apache documentation
diff --git a/apache/files/collectd.conf b/apache/files/collectd_apache.conf
similarity index 100%
rename from apache/files/collectd.conf
rename to apache/files/collectd_apache.conf
diff --git a/apache/meta/collectd.yml b/apache/meta/collectd.yml
new file mode 100644
index 0000000..e8620a8
--- /dev/null
+++ b/apache/meta/collectd.yml
@@ -0,0 +1,5 @@
+plugin:
+ apache_server_status:
+ plugin: apache
+ interval: 60
+ template: apache/files/collectd_apache.conf
\ No newline at end of file
diff --git a/apache/meta/sphinx.yml b/apache/meta/sphinx.yml
new file mode 100644
index 0000000..487b344
--- /dev/null
+++ b/apache/meta/sphinx.yml
@@ -0,0 +1,14 @@
+{%- from "nginx/map.jinja" import server with context -%}
+doc:
+ name: NGinx
+ role:
+ server:
+ name: server
+ params: []
+ endpoints:
+{%- for site_name, site in server.get('site', {}).iteritems() %}
+{%- if site.enabled %}
+ - address: "{{ site.host.name }}:{{ site.host.get('port', '80') }}"
+ name: {{ site.type}} {{ site_name }}
+{%- endif %}
+{%- endfor %}
\ No newline at end of file
diff --git a/metadata/service/server/single.yml b/metadata/service/server/single.yml
index e3eaaa1..304285e 100644
--- a/metadata/service/server/single.yml
+++ b/metadata/service/server/single.yml
@@ -1,5 +1,7 @@
applications:
- apache
+classes:
+- service.apache.support
parameters:
apache:
server:
diff --git a/metadata/support.yml b/metadata/support.yml
new file mode 100644
index 0000000..d149562
--- /dev/null
+++ b/metadata/support.yml
@@ -0,0 +1,11 @@
+parameters:
+ collectd:
+ _support:
+ collectd:
+ enabled: true
+ heka:
+ enabled: false
+ sensu:
+ enabled: false
+ sphinx:
+ enabled: true