test/plugin/constants.rb in fluent-plugin-google-cloud-0.6.13.pre.memory.2 vs test/plugin/constants.rb in fluent-plugin-google-cloud-0.6.13
- old
+ new
@@ -164,10 +164,14 @@
NO_DETECT_SUBSERVICE_CONFIG = %(
detect_subservice false
).freeze
+ DISABLE_SPLIT_LOGS_BY_TAG_CONFIG = %(
+ split_logs_by_tag false
+ ).freeze
+
PROMETHEUS_ENABLE_CONFIG = %(
enable_monitoring true
monitoring_type prometheus
).freeze
@@ -241,23 +245,25 @@
).freeze
# Service configurations for various services.
# GCE.
- COMPUTE_PARAMS = {
+ COMPUTE_PARAMS_NO_LOG_NAME = {
resource: {
type: COMPUTE_CONSTANTS[:resource_type],
labels: {
'instance_id' => VM_ID,
'zone' => ZONE
}
},
- log_name: 'test',
project_id: PROJECT_ID,
labels: {
"#{COMPUTE_CONSTANTS[:service]}/resource_name" => HOSTNAME
}
}.freeze
+ COMPUTE_PARAMS = COMPUTE_PARAMS_NO_LOG_NAME.merge(
+ log_name: 'test'
+ ).freeze
COMPUTE_PARAMS_WITH_METADATA_VM_ID_AND_ZONE = COMPUTE_PARAMS.merge(
resource: COMPUTE_PARAMS[:resource].merge(
labels: {
'instance_id' => METADATA_VM_ID,
'zone' => METADATA_ZONE