Add Nagios class to the metric_collector metadata
This change adds a Nagios output class to the metric_collector service
metadata to be on par with Sensu.
Change-Id: Ib094961cf395c451ad6517ab73f928d3ef6537fc
diff --git a/metadata/service/aggregator/output/nagios.yml b/metadata/service/aggregator/output/nagios.yml
index 7c30db1..ae167c1 100644
--- a/metadata/service/aggregator/output/nagios.yml
+++ b/metadata/service/aggregator/output/nagios.yml
@@ -1,5 +1,12 @@
parameters:
+ _param:
+ nagios_username: nagiosadmin
+ nagios_default_host_alarm_clusters: 00-clusters
+ nagios_host_dimension_key: nagios_host
heka:
aggregator:
- nagios_host_dimension_key: nagios_host
- nagios_host: ${_param:nagios_host}
\ No newline at end of file
+ nagios_host: ${_param:nagios_host}
+ nagios_username: ${_param:nagios_username}
+ nagios_password: ${_param:nagios_password}
+ nagios_host_dimension_key: ${_param:nagios_host_dimension_key}
+ nagios_default_host_alarm_clusters: ${_param:nagios_default_host_alarm_clusters}
diff --git a/metadata/service/aggregator/output/sensu.yml b/metadata/service/aggregator/output/sensu.yml
index 394acb6..37b2cf8 100644
--- a/metadata/service/aggregator/output/sensu.yml
+++ b/metadata/service/aggregator/output/sensu.yml
@@ -1,5 +1,7 @@
parameters:
+ _param:
+ sensu_source_dimension_key: nagios_host
heka:
aggregator:
- sensu_source_dimension_key: nagios_host
+ sensu_source_dimension_key: ${_param:sensu_source_dimension_key}
sensu_host: 127.0.0.1
diff --git a/metadata/service/metric_collector/output/nagios.yml b/metadata/service/metric_collector/output/nagios.yml
new file mode 100644
index 0000000..08a45dd
--- /dev/null
+++ b/metadata/service/metric_collector/output/nagios.yml
@@ -0,0 +1,12 @@
+parameters:
+ _param:
+ nagios_username: nagiosadmin
+ nagios_default_host_alarm_clusters: 00-clusters
+ nagios_host_dimension_key: nagios_host
+ heka:
+ metric_collector:
+ nagios_host: ${_param:nagios_host}
+ nagios_username: ${_param:nagios_username}
+ nagios_password: ${_param:nagios_password}
+ nagios_host_dimension_key: ${_param:nagios_host_dimension_key}
+ nagios_default_host_alarm_clusters: ${_param:nagios_default_host_alarm_clusters}
diff --git a/metadata/service/metric_collector/single.yml b/metadata/service/metric_collector/single.yml
index 2e4a442..ad183a2 100644
--- a/metadata/service/metric_collector/single.yml
+++ b/metadata/service/metric_collector/single.yml
@@ -5,10 +5,8 @@
parameters:
_param:
metric_collector_poolsize: 100
- nagios_host_dimension_key: nagios_host
heka:
metric_collector:
enabled: true
influxdb_time_precision: ms
poolsize: ${_param:metric_collector_poolsize}
- nagios_host_dimension_key: ${_param:nagios_host_dimension_key}