From 0d9298bb8fc9903ff42e3d2402cd44e765f4c822 Mon Sep 17 00:00:00 2001 From: Lars Kellogg-Stedman Date: Tue, 9 Aug 2016 16:20:18 -0400 Subject: Add fluentd client service This implements support for installing fluentd agents as a composable service on the overcloud. Depends-On: I2e1abe4d8c8359e56ff626255ee50c9cacca1940 Implements: tripleo-opstools-centralized-logging Change-Id: I23b0e23881b742158fcfb6b8c145a3211d45086e --- puppet/services/ceilometer-agent-central.yaml | 8 ++ puppet/services/ceilometer-agent-notification.yaml | 8 ++ puppet/services/ceilometer-api.yaml | 8 ++ puppet/services/ceilometer-collector.yaml | 8 ++ puppet/services/cinder-api.yaml | 8 ++ puppet/services/cinder-scheduler.yaml | 8 ++ puppet/services/cinder-volume.yaml | 8 ++ puppet/services/database/mongodb.yaml | 12 ++ puppet/services/glance-api.yaml | 8 ++ puppet/services/glance-registry.yaml | 8 ++ puppet/services/gnocchi-api.yaml | 8 ++ puppet/services/heat-api-cfn.yaml | 8 ++ puppet/services/heat-api-cloudwatch.yaml | 8 ++ puppet/services/heat-api.yaml | 8 ++ puppet/services/heat-engine.yaml | 8 ++ puppet/services/keystone.yaml | 8 ++ puppet/services/logging/fluentd-base.yaml | 36 +++++ puppet/services/logging/fluentd-client.yaml | 64 +++++++++ puppet/services/logging/fluentd-config.yaml | 154 +++++++++++++++++++++ puppet/services/neutron-api.yaml | 8 ++ puppet/services/neutron-dhcp.yaml | 8 ++ puppet/services/neutron-l3-compute-dvr.yaml | 8 ++ puppet/services/neutron-l3.yaml | 8 ++ puppet/services/neutron-metadata.yaml | 8 ++ puppet/services/neutron-ovs-agent.yaml | 8 ++ puppet/services/nova-api.yaml | 8 ++ puppet/services/nova-compute.yaml | 8 ++ puppet/services/nova-conductor.yaml | 8 ++ puppet/services/nova-consoleauth.yaml | 8 ++ puppet/services/nova-scheduler.yaml | 8 ++ puppet/services/nova-vnc-proxy.yaml | 8 ++ puppet/services/pacemaker.yaml | 13 ++ puppet/services/pacemaker/cinder-api.yaml | 2 + puppet/services/pacemaker/cinder-scheduler.yaml | 2 + puppet/services/pacemaker/cinder-volume.yaml | 2 + puppet/services/pacemaker/glance-api.yaml | 2 + puppet/services/pacemaker/glance-registry.yaml | 2 + puppet/services/pacemaker/heat-api-cfn.yaml | 2 + puppet/services/pacemaker/heat-api-cloudwatch.yaml | 2 + puppet/services/pacemaker/heat-api.yaml | 2 + puppet/services/pacemaker/heat-engine.yaml | 2 + puppet/services/pacemaker/keystone.yaml | 2 + puppet/services/pacemaker/neutron-dhcp.yaml | 2 + puppet/services/pacemaker/neutron-l3.yaml | 2 + puppet/services/pacemaker/neutron-metadata.yaml | 2 + puppet/services/pacemaker/neutron-ovs-agent.yaml | 2 + puppet/services/pacemaker/nova-api.yaml | 2 + puppet/services/pacemaker/nova-conductor.yaml | 2 + puppet/services/pacemaker/nova-consoleauth.yaml | 2 + puppet/services/pacemaker/nova-scheduler.yaml | 2 + puppet/services/pacemaker/nova-vnc-proxy.yaml | 2 + puppet/services/pacemaker/sahara-api.yaml | 2 + puppet/services/pacemaker/sahara-engine.yaml | 2 + puppet/services/sahara-api.yaml | 8 ++ puppet/services/sahara-engine.yaml | 8 ++ puppet/services/services.yaml | 39 ++++++ 56 files changed, 592 insertions(+) create mode 100644 puppet/services/logging/fluentd-base.yaml create mode 100644 puppet/services/logging/fluentd-client.yaml create mode 100644 puppet/services/logging/fluentd-config.yaml (limited to 'puppet/services') diff --git a/puppet/services/ceilometer-agent-central.yaml b/puppet/services/ceilometer-agent-central.yaml index 5d980d79..2ae46d0e 100644 --- a/puppet/services/ceilometer-agent-central.yaml +++ b/puppet/services/ceilometer-agent-central.yaml @@ -25,6 +25,11 @@ parameters: MonitoringSubscriptionCeilometerCentral: default: 'overcloud-ceilometer-agent-central' type: string + CeilometerAgentCentralLoggingSource: + type: json + default: + tag: openstack.ceilometer.agent.central + path: /var/log/ceilometer/central.log resources: CeilometerServiceBase: @@ -40,6 +45,9 @@ outputs: value: service_name: ceilometer_agent_central monitoring_subscription: {get_param: MonitoringSubscriptionCeilometerCentral} + logging_source: {get_param: CeilometerAgentCentralLoggingSource} + logging_groups: + - ceilometer config_settings: map_merge: - get_attr: [CeilometerServiceBase, role_data, config_settings] diff --git a/puppet/services/ceilometer-agent-notification.yaml b/puppet/services/ceilometer-agent-notification.yaml index bedb8b04..ea403aa1 100644 --- a/puppet/services/ceilometer-agent-notification.yaml +++ b/puppet/services/ceilometer-agent-notification.yaml @@ -21,6 +21,11 @@ parameters: MonitoringSubscriptionCeilometerNotification: default: 'overcloud-ceilometer-agent-notification' type: string + CeilometerAgentNotificationLoggingSource: + type: json + default: + tag: openstack.ceilometer.agent.notification + path: /var/log/ceilometer/agent-notification.log resources: @@ -37,6 +42,9 @@ outputs: value: service_name: ceilometer_agent_notification monitoring_subscription: {get_param: MonitoringSubscriptionCeilometerNotification} + logging_source: {get_param: CeilometerAgentNotificationLoggingSource} + logging_groups: + - ceilometer config_settings: get_attr: [CeilometerServiceBase, role_data, config_settings] step_config: | diff --git a/puppet/services/ceilometer-api.yaml b/puppet/services/ceilometer-api.yaml index 5df9f2b3..c6e36502 100644 --- a/puppet/services/ceilometer-api.yaml +++ b/puppet/services/ceilometer-api.yaml @@ -21,6 +21,11 @@ parameters: MonitoringSubscriptionCeilometerApi: default: 'overcloud-ceilometer-api' type: string + CeilometerApiLoggingSource: + type: json + default: + tag: openstack.ceilometer.api + path: /var/log/ceilometer/api.log resources: @@ -44,6 +49,9 @@ outputs: value: service_name: ceilometer_api monitoring_subscription: {get_param: MonitoringSubscriptionCeilometerApi} + logging_source: {get_param: CeilometerApiLoggingSource} + logging_groups: + - ceilometer config_settings: map_merge: - get_attr: [ApacheServiceBase, role_data, config_settings] diff --git a/puppet/services/ceilometer-collector.yaml b/puppet/services/ceilometer-collector.yaml index 9dbb2759..2fc9aec0 100644 --- a/puppet/services/ceilometer-collector.yaml +++ b/puppet/services/ceilometer-collector.yaml @@ -21,6 +21,11 @@ parameters: MonitoringSubscriptionCeilometerCollector: default: 'overcloud-ceilometer-collector' type: string + CeilometerCollectorLoggingSource: + type: json + default: + tag: openstack.ceilometer.collector + path: /var/log/ceilometer/collector.log resources: CeilometerServiceBase: @@ -36,6 +41,9 @@ outputs: value: service_name: ceilometer_collector monitoring_subscription: {get_param: MonitoringSubscriptionCeilometerCollector} + logging_source: {get_param: CeilometerCollectorLoggingSource} + logging_groups: + - ceilometer config_settings: get_attr: [CeilometerServiceBase, role_data, config_settings] step_config: | diff --git a/puppet/services/cinder-api.yaml b/puppet/services/cinder-api.yaml index 94c94a65..1dae9f15 100644 --- a/puppet/services/cinder-api.yaml +++ b/puppet/services/cinder-api.yaml @@ -34,6 +34,11 @@ parameters: MonitoringSubscriptionCinderApi: default: 'overcloud-cinder-api' type: string + CinderApiLoggingSource: + type: json + default: + tag: openstack.cinder.api + path: /var/log/cinder/cinder-api.log resources: @@ -50,6 +55,9 @@ outputs: value: service_name: cinder_api monitoring_subscription: {get_param: MonitoringSubscriptionCinderApi} + logging_source: {get_param: CinderApiLoggingSource} + logging_groups: + - cinder config_settings: map_merge: - get_attr: [CinderBase, role_data, config_settings] diff --git a/puppet/services/cinder-scheduler.yaml b/puppet/services/cinder-scheduler.yaml index 1326e267..94c263ea 100644 --- a/puppet/services/cinder-scheduler.yaml +++ b/puppet/services/cinder-scheduler.yaml @@ -21,6 +21,11 @@ parameters: MonitoringSubscriptionCinderScheduler: default: 'overcloud-cinder-scheduler' type: string + CinderSchedulerLoggingSource: + type: json + default: + tag: openstack.cinder.scheduler + path: /var/log/cinder/cinder-scheduler.log resources: @@ -37,6 +42,9 @@ outputs: value: service_name: cinder_scheduler monitoring_subscription: {get_param: MonitoringSubscriptionCinderScheduler} + logging_source: {get_param: CinderSchedulerLoggingSource} + logging_groups: + - cinder config_settings: map_merge: - get_attr: [CinderBase, role_data, config_settings] diff --git a/puppet/services/cinder-volume.yaml b/puppet/services/cinder-volume.yaml index c84c784e..82e16f39 100644 --- a/puppet/services/cinder-volume.yaml +++ b/puppet/services/cinder-volume.yaml @@ -59,6 +59,11 @@ parameters: MonitoringSubscriptionCinderVolume: default: 'overcloud-cinder-volume' type: string + CinderVolumeLoggingSource: + type: json + default: + tag: openstack.cinder.volume + path: /var/log/cinder/cinder-volume.log resources: @@ -75,6 +80,9 @@ outputs: value: service_name: cinder_volume monitoring_subscription: {get_param: MonitoringSubscriptionCinderVolume} + logging_source: {get_param: CinderVolumeLoggingSource} + logging_groups: + - cinder config_settings: map_merge: - get_attr: [CinderBase, role_data, config_settings] diff --git a/puppet/services/database/mongodb.yaml b/puppet/services/database/mongodb.yaml index 36962a34..01daeafe 100644 --- a/puppet/services/database/mongodb.yaml +++ b/puppet/services/database/mongodb.yaml @@ -19,6 +19,15 @@ parameters: description: Mapping of service endpoint -> protocol. Typically set via parameter_defaults in the resource registry. type: json + MongoDbLoggingSource: + type: json + description: Fluentd logging configuration for mongodb. + default: + tag: database.mongodb + path: /var/log/mongodb/mongodb.log + format: >- + /(?