Skip to content

RabbitMQ Configuration

RabbitMQ Configuration in Data Aggregator Guide.

11 min read Updated SS MR

RabbitMQ Configuration#

Ensure all the RabbitMQ config files are as follows: 

For example:

# DANGER ZONE!
#
# allowing remote connections for default user is highly discouraged
# as it dramatically decreases the security of the system. Delete the user
# instead and create a new one with generated secure credentials.
loopback_users = none
log.file.level = {{getenv "ROOT_LOGLEVEL"}}
log.file.rotation.date = $D23
log.file.rotation.count = {{getenv "LOG_COUNT"}}
log.file.rotation.size = {{getenv "LOG_SIZE"}}
vm_memory_high_watermark_paging_ratio = 0.99
vm_memory_high_watermark.relative = 0.7
default_queue_type = quorum
queue_leader_locator = balanced
max_message_size = 33554432

listeners.tcp.default = 5674
listeners.ssl.default = 5673
ssl_options.cacertfile = /etc/rabbitmq/appnomic-cacert.pem
ssl_options.certfile = /etc/rabbitmq/appnomic-keystore.pem
ssl_options.keyfile = /etc/rabbitmq/appnomic-key.pem
ssl_options.verify = verify_peer
ssl_options.fail_if_no_peer_cert = false
ssl_options.versions.1 = tlsv1.3
ssl_options.versions.2 = tlsv1.2

stream.listeners.tcp.1 = 5554
stream.listeners.ssl.1 = 5553
stream.tcp_listen_options.keepalive = true
stream.tcp_listen_options.nodelay = true
stream.tcp_listen_options.exit_on_close = true
stream.tcp_listen_options.send_timeout = 120

prometheus.tcp.port = 15694

management.tcp.port = 15674
management.ssl.port = 15673
management.ssl.cacertfile = /etc/rabbitmq/appnomic-cacert.pem
management.ssl.certfile = /etc/rabbitmq/appnomic-keystore.pem
management.ssl.keyfile = /etc/rabbitmq/appnomic-key.pem
management.ssl.versions.1 = tlsv1.3
management.ssl.versions.2 = tlsv1.2

ssl_options.ciphers.1 = ECDHE-ECDSA-AES256-GCM-SHA384
ssl_options.ciphers.2 = ECDHE-ECDSA-AES256-SHA384
ssl_options.ciphers.3 = ECDH-ECDSA-AES256-GCM-SHA384
ssl_options.ciphers.4 = ECDH-RSA-AES256-GCM-SHA384
ssl_options.ciphers.5 = ECDH-ECDSA-AES256-SHA384
ssl_options.ciphers.6 = ECDH-RSA-AES256-SHA384
ssl_options.ciphers.7 = DHE-RSA-AES256-GCM-SHA384
ssl_options.ciphers.8 = DHE-DSS-AES256-GCM-SHA384
ssl_options.ciphers.9 = DHE-RSA-AES256-SHA256
ssl_options.ciphers.10 = DHE-DSS-AES256-SHA256
ssl_options.ciphers.11 = ECDHE-ECDSA-AES128-GCM-SHA256
ssl_options.ciphers.12 = ECDHE-ECDSA-AES128-SHA256
ssl_options.ciphers.13 = ECDH-ECDSA-AES128-GCM-SHA256
ssl_options.ciphers.14 = ECDH-RSA-AES128-GCM-SHA256
ssl_options.ciphers.15 = ECDH-ECDSA-AES128-SHA256
ssl_options.ciphers.16 = ECDH-RSA-AES128-SHA256
ssl_options.ciphers.17 = DHE-RSA-AES128-GCM-SHA256
ssl_options.ciphers.18 = DHE-DSS-AES128-GCM-SHA256
ssl_options.ciphers.19 = DHE-RSA-AES128-SHA256
ssl_options.ciphers.20 = DHE-DSS-AES128-SHA256
ssl_options.ciphers.21 = ECDHE-ECDSA-AES256-SHA
ssl_options.ciphers.22 = DHE-RSA-AES256-SHA
ssl_options.ciphers.23 = DHE-DSS-AES256-SHA
ssl_options.ciphers.24 = ECDH-ECDSA-AES256-SHA
ssl_options.ciphers.25 = ECDH-RSA-AES256-SHA
ssl_options.ciphers.26 = ECDHE-ECDSA-AES128-SHA
ssl_options.ciphers.27 = DHE-RSA-AES128-SHA
ssl_options.ciphers.28 = DHE-DSS-AES128-SHA
ssl_options.ciphers.29 = ECDH-ECDSA-AES128-SHA
ssl_options.ciphers.30 = ECDH-RSA-AES128-SHA
ssl_options.ciphers.31 = TLS_AES_256_GCM_SHA384
ssl_options.ciphers.32 = TLS_AES_128_GCM_SHA256
ssl_options.ciphers.33 = TLS_CHACHA20_POLY1305_SHA256
ssl_options.ciphers.34 = TLS_AES_128_CCM_SHA256
ssl_options.ciphers.35 = TLS_AES_128_CCM_8_SHA256

management.ssl.ciphers.1 = ECDHE-ECDSA-AES256-GCM-SHA384
management.ssl.ciphers.2 = ECDHE-ECDSA-AES256-SHA384
management.ssl.ciphers.3 = ECDH-ECDSA-AES256-GCM-SHA384
management.ssl.ciphers.4 = ECDH-RSA-AES256-GCM-SHA384
management.ssl.ciphers.5 = ECDH-ECDSA-AES256-SHA384
management.ssl.ciphers.6 = ECDH-RSA-AES256-SHA384
management.ssl.ciphers.7 = DHE-RSA-AES256-GCM-SHA384
management.ssl.ciphers.8 = DHE-DSS-AES256-GCM-SHA384
management.ssl.ciphers.9 = DHE-RSA-AES256-SHA256
management.ssl.ciphers.10 = DHE-DSS-AES256-SHA256
management.ssl.ciphers.11 = ECDHE-ECDSA-AES128-GCM-SHA256
management.ssl.ciphers.12 = ECDHE-ECDSA-AES128-SHA256
management.ssl.ciphers.13 = ECDH-ECDSA-AES128-GCM-SHA256
management.ssl.ciphers.14 = ECDH-RSA-AES128-GCM-SHA256
management.ssl.ciphers.15 = ECDH-ECDSA-AES128-SHA256
management.ssl.ciphers.16 = ECDH-RSA-AES128-SHA256
management.ssl.ciphers.17 = DHE-RSA-AES128-GCM-SHA256
management.ssl.ciphers.18 = DHE-DSS-AES128-GCM-SHA256
management.ssl.ciphers.19 = DHE-RSA-AES128-SHA256
management.ssl.ciphers.20 = DHE-DSS-AES128-SHA256
management.ssl.ciphers.21 = ECDHE-ECDSA-AES256-SHA
management.ssl.ciphers.22 = DHE-RSA-AES256-SHA
management.ssl.ciphers.23 = DHE-DSS-AES256-SHA
management.ssl.ciphers.24 = ECDH-ECDSA-AES256-SHA
management.ssl.ciphers.25 = ECDH-RSA-AES256-SHA
management.ssl.ciphers.26 = ECDHE-ECDSA-AES128-SHA
management.ssl.ciphers.27 = DHE-RSA-AES128-SHA
management.ssl.ciphers.28 = DHE-DSS-AES128-SHA
management.ssl.ciphers.29 = ECDH-ECDSA-AES128-SHA
management.ssl.ciphers.30 = ECDH-RSA-AES128-SHA
management.ssl.ciphers.31 = TLS_AES_256_GCM_SHA384
management.ssl.ciphers.32 = TLS_AES_128_GCM_SHA256
management.ssl.ciphers.33 = TLS_CHACHA20_POLY1305_SHA256
management.ssl.ciphers.34 = TLS_AES_128_CCM_SHA256
management.ssl.ciphers.35 = TLS_AES_128_CCM_8_SHA256

For the parameters below in the RabbitMQ config file, provide a new sequence of port numbers: 

listeners.tcp.default = 5674 

listeners.ssl.default = 5673 

stream.listeners.tcp.1 = 5554 

stream.listeners.ssl.1 = 5553 

prometheus.tcp.port = 15694 

management.tcp.port = 15674 

management.ssl.port = 15673

Note: If a new standalone RabbitMQ instance is added, the corresponding configuration parameters must be updated with a new port number, following the next available sequence from the currently configured ports.

Data Aggregator Configuration#

The Data Aggregator uses a single configuration file that is reused across two runtime roles and successive release versions. Rather than repeat the full file for every combination, apply the canonical configuration once, then override only the parameters listed in the role and version difference tables below.

  • Data Aggregator (aggregation): Consumes OTLP spans from the RabbitMQ stream and produces agent- and transaction-level metrics. Collation is disabled.
  • Data Aggregator (Collation & Violation): Consumes from the RabbitMQ queues, collates transactions, and evaluates KPIs against violation thresholds.

Note: Apply the configuration in version order — deploy v1.0.3 first, then layer the v1.0.4 changes, and finally the v1.0.5 changes (see the sections that follow).

Configuration steps#

For each Data Aggregator instance, update the following parameters in its config file. The values depend on the instance role — refer to the Role-specific parameters table. 1. Set the RabbitMQ OTLP spans stream address (IP and port):

spring.rabbitmq.addresses=<rmq_ip>:<stream_port>

2. Set the traces stream/queue that connects to the corresponding OTEL instance:

spring.rabbitmq.traces.stream=<stream_name>

Note: Provide the RabbitMQ stream/queue that matches the OTEL instance connected to it. For example: OTEL 1 → RabbitMQ (OTLP Spans Stream 1), OTEL 2 → RabbitMQ (OTLP Spans Stream 2).

3. Under BUFFER COLLATED TRANSACTION CONFIGURATION, set the collation flag. Use false to prevent collation on the aggregation instance and true to enable it on the Collation & Violation instance:

buffer.collation.enabled=<true|false>

4. Set the RabbitMQ queue/stream input toggles (a stream-driven aggregation instance enables streams; a queue-driven collation instance enables queues):

rmq.queues.enabled=<true|false>
rmq.streams.enabled=<true|false>

Role-specific parameters#

The following parameters differ by instance role. All other parameters are identical.

Parameter Data Aggregator (aggregation) Data Aggregator (Collation & Violation)
spring.rabbitmq.addresses <standalone_rmq_ip>:<stream_port> (standalone stream, e.g. 192.0.2.47:5553) <cluster_rmq_ip>:5551 (cluster RabbitMQ)
spring.rabbitmq.traces.stream otlp_spans_137 otlp_spans
rmq.queues.enabled false true
rmq.streams.enabled true false
buffer.collation.enabled false true

Version differences (v1.0.3 → v1.0.4)#

Note: Apply the v1.0.4 changes only after v1.0.3 has been deployed. These changes apply to both roles.

The canonical listing below reflects v1.0.4. For a v1.0.3 deployment, use the older OpenSearch scheduler keys and omit the parameters marked Added in v1.0.4.

Parameter v1.0.3 (Consul key / status) v1.0.4 (Consul key / status)
opensearch.agent.transaction.push.schedule.interval service/dataaggregator/agent/opensearch/transaction/scheduler/interval/secs service/dataaggregator/opensearch/agent/transaction/scheduler/interval
opensearch.transaction.push.schedule.interval service/dataaggregator/opensearch/transaction/scheduler/interval/secs service/dataaggregator/opensearch/transaction/scheduler/interval
opensearch.kpi.push.schedule.interval service/dataaggregator/opensearch/kpi/scheduler/interval/secs service/dataaggregator/opensearch/kpi/scheduler/interval
opensearch.service.collated.kpi.push.schedule.interval Not present Added in v1.0.4
sync.delay.queue.map.interval.mins Not present Added in v1.0.4

Canonical configuration file#

Note: Ensure the highlighted values match the port and stream configurations defined earlier. Replace the role-specific values (address, traces stream, and the rmq.*/buffer.collation.enabled flags) using the Role-specific parameters table above.

# ##########################################################################
# ##########################################################################
#                    INFRASTRUCTURE / EXTERNAL SERVICES
# ##########################################################################
# ##########################################################################

# ==========================================================
# RabbitMQ Configuration
# ==========================================================
spring.rabbitmq.queue.addresses={{ key "service/rabbitmq/addresses" }}
spring.rabbitmq.addresses=<rmq_ip>:<stream_port>
spring.rabbitmq.username={{ key "service/rabbitmq/username" }}
spring.rabbitmq.password={{ key "service/rabbitmq/password/encrypted" }}
spring.rabbitmq.ssl.enabled={{ key "service/rabbitmq/sslenable" }}
spring.rabbitmq.ssl.algorithm={{ key "service/rabbitmq/sslprotocol" }}
spring.rabbitmq.ssl.verifyHostname={{ key "service/rabbitmq/stream/ssl/verifyHostname" }}
spring.rabbitmq.ssl.trustStore={{ key "service/rabbitmq/stream/ssl/trustStore" }}
rmq.ha.mode={{ key "service/rabbitmq/ha/mode/enabled" }}

spring.rabbitmq.violatedEventsQueue={{key "service/rabbitmq/violatedeventsqueue" }}
spring.rabbitmq.aggregatedKpiQueue={{ key "service/rabbitmq/staticaggregatedkpiqueue" }}
spring.rabbitmq.collatedTxnIngestionMessagesQueue={{ key "service/rabbitmq/collatedTxnIngestionMessagesQueue" }}

spring.rabbitmq.bufferCollatedTxnQueue={{ key "service/rabbitmq/bufferCollatedTxnQueue" }}
spring.rabbitmq.bufferCollatedTxnMessages.prefetchCount={{ key "service/rabbitmq/bufferCollatedTxnMessages/prefetchCount" }}
spring.rabbitmq.bufferCollatedTxnMessages.acknowledgementMode={{ key "service/rabbitmq/bufferCollatedTxnMessages/acknowledgementMode" }}
spring.rabbitmq.bufferCollatedTxnMessages.concurrentConsumerSize={{ key "service/rabbitmq/bufferCollatedTxnMessages/concurrentConsumerSize" }}
spring.rabbitmq.bufferCollatedAgentTxnQueue={{ key "service/rabbitmq/bufferCollatedAgentTxnQueue" }}
spring.rabbitmq.bufferCollatedAgentTxnMessages.prefetchCount={{ key "service/rabbitmq/bufferCollatedAgentTxnMessages/prefetchCount" }}
spring.rabbitmq.bufferCollatedAgentTxnMessages.acknowledgementMode={{ key "service/rabbitmq/bufferCollatedAgentTxnMessages/acknowledgementMode" }}
spring.rabbitmq.bufferCollatedAgentTxnMessages.concurrentConsumerSize={{ key "service/rabbitmq/bufferCollatedAgentTxnMessages/concurrentConsumerSize" }}

spring.rabbitmq.collated.transaction.stream={{ key "service/rabbitmq/transaction/stream/name" }}
spring.rabbitmq.transaction.messages.queue.max.size.gb={{ key "service/rabbitmq/transactionmessages/maxsizeGB" }}
spring.rabbitmq.transaction.messages.queue.max.duration.days={{ key "service/rabbitmq/transactionmessages/expirationindays" }}
spring.rabbitmq.collated.kpi.stream={{ key "service/rabbitmq/kpi/stream/name" }}
spring.rabbitmq.kpi.messages.queue.max.size.gb={{ key "service/rabbitmq/kpimessages/maxsizeGB" }}
spring.rabbitmq.kpi.messages.queue.max.duration.days={{ key "service/rabbitmq/kpimessages/expirationindays" }}

spring.rabbitmq.watcher.kpi.stream={{ key "service/rabbitmq/watcher/kpi/stream/name" }}
spring.rabbitmq.watcher.kpi.messages.queue.max.size.gb={{ key "service/rabbitmq/watcherkpimessages/maxsizeGB" }}
spring.rabbitmq.watcher.kpi.messages.queue.max.duration.days={{ key "service/rabbitmq/watcherkpimessages/expirationindays" }}
spring.rabbitmq.traces.stream=otlp_spans_137

# ==========================================================
# Redis Configuration
# ==========================================================
spring.redis.cluster.nodes={{ key "service/redis/nodes" }}
spring.redis.ssl={{ key "service/redis/sslenable" }}
spring.redis.username={{ key "service/redis/username" }}
spring.redis.password={{ key "service/redis/password/encrypted" }}
spring.redis.cluster.mode= {{ key "service/redis/cluster/mode" }}
spring.redis.max.idle.connections= {{ key "service/dataaggregator/redis/maxidleconnections"}}
spring.redis.min.idle.connections= {{ key "service/dataaggregator/redis/minidleconnections"}}
spring.redis.max.total.connections= {{ key "service/dataaggregator/redis/maxtotalconnections"}}
spring.redis.max.wait.sec= {{ key "service/dataaggregator/redis/connections/maxwaittimeinsec"}}
spring.redis.share.native.connection={{ key "service/dataaggregator/redis/share/native/connection"}}

spring.redis.agent.transaction.stream.name={{ key "service/dataaggregator/redis/agent/transaction/stream/name"}}
spring.redis.transaction.stream.name={{ key "service/dataaggregator/redis/transaction/stream/name"}}

# ==========================================================
# OpenSearch Configuration
# ==========================================================
opensearch.connection.max.redirects={{ key "service/dataaggregator/opensearch/connection/max/redirects" }}
opensearch.connection.io.reactor.size={{ key "service/dataaggregator/opensearch/connection/io/reactor/size" }}
opensearch.batch.size={{key "service/dataaggregator/opensearch/batch/size" }}
opensearch.agent.transaction.push.schedule.interval={{ key "service/dataaggregator/opensearch/agent/transaction/scheduler/interval" }}
opensearch.transaction.push.schedule.interval={{ key "service/dataaggregator/opensearch/transaction/scheduler/interval" }}
opensearch.kpi.push.schedule.interval={{ key "service/dataaggregator/opensearch/kpi/scheduler/interval" }}
opensearch.service.collated.kpi.push.schedule.interval={{ key "service/dataaggregator/opensearch/service/collated/kpi/scheduler/interval" }}
opensearch.txn.index.suffix={{ key "service/dataaggregator/opensearch/txn/index/suffix" }}
opensearch.txn.index.prefix={{ key "service/dataaggregator/opensearch/txn/index/prefix" }}
buffer.collated.txn.index={{ key "service/dataaggregator/buffer/collated/txn/index" }}
buffer.collated.agent.txn.index={{ key "service/dataaggregator/buffer/collated/agent/txn/index" }}
send.to.ingestion.service={{ key "service/dataaggregator/send/to/ingestion/service" }}

# ==========================================================
# Keycloak Configuration
# ==========================================================
keycloak.host={{ key "service/keycloak/hostname"  }}
keycloak.port={{ key "service/keycloak/port/https"  }}
keycloak.username={{ key "service/keycloak/username"  }}
keycloak.password={{ key "service/keycloak/password"  }}

# ##########################################################################
# ##########################################################################
#                         AGGREGATION CONFIGURATION
# ##########################################################################
# ##########################################################################

# ==========================================================
# Aggregation Input Mode Configuration
# ==========================================================
rmq.queues.enabled=false
rmq.streams.enabled=true
only.process.trace.data={{ key "service/dataaggregator/only/process/trace/data" }}
transaction.bucketing.enabled={{ key "service/dataaggregator/transaction/bucketing/enabled" }}

transaction.rmq.aggregation.enabled={{ key "service/dataaggregator/transactions/rmq/enabled" }}
transaction.waterfall.aggregation.enabled={{ key "service/dataaggregator/transactions/waterfall/enabled" }}
kpi.rmq.aggregation.enabled={{ key "service/dataaggregator/kpis/rmq/enabled" }}
kpi.waterfall.aggregation.enabled={{ key "service/dataaggregator/kpis/waterfall/enabled" }}
watcher.kpi.rmq.aggregation.enabled={{ key "service/dataaggregator/watcher/kpis/rmq/enabled" }}
trace.aggregation.enabled={{ key "service/dataaggregator/jim/enabled" }}
computed.kpi.calculation.enabled={{ key "service/dataaggregator/computed/kpi/calculation/enabled" }}

# ==========================================================
# Transaction Aggregation Configuration
# ==========================================================
# Stream consumer settings
transaction.1.min.aggregation.consumer.name={{ key "service/dataaggregator/rabbitmq/transaction/1min/consumer" }}
transaction.15.min.aggregation.consumer.name={{ key "service/dataaggregator/rabbitmq/transaction/15min/consumer" }}
transaction.30.min.aggregation.consumer.name={{ key "service/dataaggregator/rabbitmq/transaction/30min/consumer" }}
transaction.60.min.aggregation.consumer.name={{ key "service/dataaggregator/rabbitmq/transaction/60min/consumer" }}
transaction.1440.min.aggregation.consumer.name={{ key "service/dataaggregator/rabbitmq/transaction/1440min/consumer" }}

# Offset type settings
transaction.1.min.aggregation.offset.type={{ key "service/dataaggregator/rabbitmq/transaction/1min/offset/type" }}
transaction.15.min.aggregation.offset.type={{ key "service/dataaggregator/rabbitmq/transaction/15min/offset/type" }}
transaction.30.min.aggregation.offset.type={{ key "service/dataaggregator/rabbitmq/transaction/30min/offset/type" }}
transaction.60.min.aggregation.offset.type={{ key "service/dataaggregator/rabbitmq/transaction/60min/offset/type" }}
transaction.1440.min.aggregation.offset.type={{ key "service/dataaggregator/rabbitmq/transaction/1440min/offset/type" }}

# Offset value settings
transaction.1.min.aggregation.offset.value={{ key "service/dataaggregator/rabbitmq/transaction/1min/offset/value" }}
transaction.15.min.aggregation.offset.value={{ key "service/dataaggregator/rabbitmq/transaction/15min/offset/value" }}
transaction.30.min.aggregation.offset.value={{ key "service/dataaggregator/rabbitmq/transaction/30min/offset/value" }}
transaction.60.min.aggregation.offset.value={{ key "service/dataaggregator/rabbitmq/transaction/60min/offset/value" }}
transaction.1440.min.aggregation.offset.value={{ key "service/dataaggregator/rabbitmq/transaction/1440min/offset/value" }}

# Timestamp value settings
transaction.1.min.aggregation.timestamp.value={{ key "service/dataaggregator/rabbitmq/transaction/1min/timestamp/value" }}
transaction.15.min.aggregation.timestamp.value={{ key "service/dataaggregator/rabbitmq/transaction/15min/timestamp/value" }}
transaction.30.min.aggregation.timestamp.value={{ key "service/dataaggregator/rabbitmq/transaction/30min/timestamp/value" }}
transaction.60.min.aggregation.timestamp.value={{ key "service/dataaggregator/rabbitmq/transaction/60min/timestamp/value" }}
transaction.1440.min.aggregation.timestamp.value={{ key "service/dataaggregator/rabbitmq/transaction/1440min/timestamp/value" }}

# Aggregation enabled settings
transaction.1.min.aggregation.enabled={{ key "service/dataaggregator/transaction/1min/enabled" }}
transaction.15.min.aggregation.enabled={{ key "service/dataaggregator/transaction/15min/enabled" }}
transaction.30.min.aggregation.enabled={{ key "service/dataaggregator/transaction/30min/enabled" }}
transaction.60.min.aggregation.enabled={{ key "service/dataaggregator/transaction/60min/enabled" }}
transaction.1440.min.aggregation.enabled={{ key "service/dataaggregator/transaction/1440min/enabled" }}

# Out-of-order duration settings
transaction.1.min.ooo.duration={{ key "service/dataaggregator/transaction/1min/ooo/durationinmin" }}
transaction.15.min.ooo.duration={{ key "service/dataaggregator/transaction/15min/ooo/durationinmin" }}
transaction.30.min.ooo.duration={{ key "service/dataaggregator/transaction/30min/ooo/durationinmin" }}
transaction.60.min.ooo.duration={{ key "service/dataaggregator/transaction/60min/ooo/durationinmin" }}
transaction.1440.min.ooo.duration={{ key "service/dataaggregator/transaction/1440min/ooo/durationinmin" }}

# ==========================================================
# KPI Aggregation Configuration
# ==========================================================
# Stream consumer settings
kpi.1.min.aggregation.consumer.name={{ key "service/dataaggregator/rabbitmq/kpi/1min/consumer" }}
kpi.15.min.aggregation.consumer.name={{ key "service/dataaggregator/rabbitmq/kpi/15min/consumer" }}
kpi.30.min.aggregation.consumer.name={{ key "service/dataaggregator/rabbitmq/kpi/30min/consumer" }}
kpi.60.min.aggregation.consumer.name={{ key "service/dataaggregator/rabbitmq/kpi/60min/consumer" }}
kpi.1440.min.aggregation.consumer.name={{ key "service/dataaggregator/rabbitmq/kpi/1440min/consumer" }}
watcher.kpi.aggregation.consumer.name={{ key "service/dataaggregator/rabbitmq/watcher/kpi/consumer" }}

# Offset type settings
kpi.1.min.aggregation.offset.type={{ key "service/dataaggregator/rabbitmq/kpi/1min/offset/type" }}
kpi.15.min.aggregation.offset.type={{ key "service/dataaggregator/rabbitmq/kpi/15min/offset/type" }}
kpi.30.min.aggregation.offset.type={{ key "service/dataaggregator/rabbitmq/kpi/30min/offset/type" }}
kpi.60.min.aggregation.offset.type={{ key "service/dataaggregator/rabbitmq/kpi/60min/offset/type" }}
kpi.1440.min.aggregation.offset.type={{ key "service/dataaggregator/rabbitmq/kpi/1440min/offset/type" }}
watcher.kpi.aggregation.offset.type={{ key "service/dataaggregator/rabbitmq/watcher/kpi/offset/type" }}

# Offset value settings
kpi.1.min.aggregation.offset.value={{ key "service/dataaggregator/rabbitmq/kpi/1min/offset/value" }}
kpi.15.min.aggregation.offset.value={{ key "service/dataaggregator/rabbitmq/kpi/15min/offset/value" }}
kpi.30.min.aggregation.offset.value={{ key "service/dataaggregator/rabbitmq/kpi/30min/offset/value" }}
kpi.60.min.aggregation.offset.value={{ key "service/dataaggregator/rabbitmq/kpi/60min/offset/value" }}
kpi.1440.min.aggregation.offset.value={{ key "service/dataaggregator/rabbitmq/kpi/1440min/offset/value" }}
watcher.kpi.aggregation.offset.value={{ key "service/dataaggregator/rabbitmq/watcher/kpi/offset/value" }}

# Timestamp value settings

kpi.1.min.aggregation.timestamp.value={{ key "service/dataaggregator/rabbitmq/kpi/1min/timestamp/value" }}
kpi.15.min.aggregation.timestamp.value={{ key "service/dataaggregator/rabbitmq/kpi/15min/timestamp/value" }}
kpi.30.min.aggregation.timestamp.value={{ key "service/dataaggregator/rabbitmq/kpi/30min/timestamp/value" }}
kpi.60.min.aggregation.timestamp.value={{ key "service/dataaggregator/rabbitmq/kpi/60min/timestamp/value" }}
kpi.1440.min.aggregation.timestamp.value={{ key "service/dataaggregator/rabbitmq/kpi/1440min/timestamp/value" }}
watcher.kpi.aggregation.timestamp.value={{ key "service/dataaggregator/rabbitmq/watcher/kpi/timestamp/value" }}

# Aggregation enabled settings
kpi.1.min.aggregation.enabled={{ key "service/dataaggregator/kpi/1min/enabled" }}
kpi.15.min.aggregation.enabled={{ key "service/dataaggregator/kpi/15min/enabled" }}
kpi.30.min.aggregation.enabled={{ key "service/dataaggregator/kpi/30min/enabled" }}
kpi.60.min.aggregation.enabled={{ key "service/dataaggregator/kpi/60min/enabled" }}
kpi.1440.min.aggregation.enabled={{ key "service/dataaggregator/kpi/1440min/enabled" }}

# Out-of-order duration settings
kpi.1.min.ooo.duration={{ key "service/dataaggregator/kpi/1min/ooo/durationinmin" }}
kpi.15.min.ooo.duration={{ key "service/dataaggregator/kpi/15min/ooo/durationinmin" }}
kpi.30.min.ooo.duration={{ key "service/dataaggregator/kpi/30min/ooo/durationinmin" }}
kpi.60.min.ooo.duration={{ key "service/dataaggregator/kpi/60min/ooo/durationinmin" }}
kpi.1440.min.ooo.duration={{ key "service/dataaggregator/kpi/1440min/ooo/durationinmin" }}
watcher.kpi.ooo.duration={{ key "service/dataaggregator/watcher/kpi/ooo/durationinmin" }}
kpi.error.code={{key "service/dataaggregator/kpi/errorcode" }}

# ==========================================================
# Trace Aggregation Configuration (JIM)
# ==========================================================
# Stream consumer settings
trace.aggregation.consumer.name={{ key "service/dataaggregator/rabbitmq/trace/consumer" }}
trace.aggregation.offset.type={{ key "service/dataaggregator/rabbitmq/trace/offset/type" }}
trace.aggregation.offset.value={{ key "service/dataaggregator/rabbitmq/trace/offset/value" }}
trace.aggregation.timestamp.value={{ key "service/dataaggregator/rabbitmq/trace/timestamp/value" }}
trace.delay.queue.message.ttl.mins={{ key "service/dataaggregator/trace/delay/queue/message/ttl/mins" }}

# Trace producer settings
trace.producer.enabled={{ key "service/dataaggregator/trace/generation/enabled" }}
trace.producer.name={{ key "service/dataaggregator/trace/producer/name" }}

# Trace collation settings
trace.collation.for.root.server.span.only={{ key "service/dataaggregator/trace/collation/for/root/server/span/only" }}
trace.collation.external.apis.enabled={{ key "service/dataaggregator/trace/collation/external/apis/enabled" }}
trace.collation.gemfire.kpis.enabled={{ key "service/dataaggregator/trace/collation/gemfire/kpis/enabled" }}
trace.collation.db.kpis.enabled={{ key "service/dataaggregator/trace/collation/db/kpis/enabled" }}
trace.collation.kafka.kpis.enabled={{ key "service/dataaggregator/trace/collation/kafka/kpis/enabled" }}

# Trace discovery and threshold settings
trace.discovery.status={{ key "service/dataaggregator/trace/discovery/status" }}
trace.slow.txn.threshold.micros={{ key "service/dataaggregator/trace/transaction/slow/threshold/micros" }}
trace.http.path.variable.exists={{ key "service/dataaggregator/trace/http/path/variable/exists" }}

# ==========================================================
# Trace Span Attribute Keys Configuration
# ==========================================================
# Resource attributes
trace.attribute.key.service.name={{ key "service/dataaggregator/trace/attribute/key/service/name" }}
trace.attribute.key.agent.uid={{ key "service/dataaggregator/trace/attribute/key/agent/uid" }}
trace.attribute.key.instance.uid={{ key "service/dataaggregator/trace/attribute/key/instance/uid" }}
trace.attribute.value.jaeger.query={{ key "service/dataaggregator/trace/attribute/value/jaeger/query" }}

# HTTP attributes
trace.attribute.key.http.method={{ key "service/dataaggregator/trace/attribute/key/http/method" }}
trace.attribute.key.http.status.code={{ key "service/dataaggregator/trace/attribute/key/http/status/code" }}
trace.attribute.key.http.url={{ key "service/dataaggregator/trace/attribute/key/http/url" }}
trace.attribute.key.http.target={{ key "service/dataaggregator/trace/attribute/key/http/target" }}
trace.attribute.key.http.scheme={{ key "service/dataaggregator/trace/attribute/key/http/scheme" }}
trace.attribute.key.http.route={{ key "service/dataaggregator/trace/attribute/key/http/route" }}
trace.attribute.key.net.host.name={{ key "service/dataaggregator/trace/attribute/key/net/host/name" }}
trace.attribute.key.net.host.port={{ key "service/dataaggregator/trace/attribute/key/net/host/port" }}

# HTTP header attributes - Channel
trace.attribute.key.http.request.header.channel.name={{ key "service/dataaggregator/trace/attribute/key/http/request/header/channel/name" }}
trace.attribute.key.http.response.header.channel.name={{ key "service/dataaggregator/trace/attribute/key/http/response/header/channel/name" }}
trace.attribute.key.http.request.header.channel.id={{ key "service/dataaggregator/trace/attribute/key/http/request/header/channel/id" }}
trace.attribute.key.http.response.header.channel.id={{ key "service/dataaggregator/trace/attribute/key/http/response/header/channel/id" }}

# HTTP header attributes - Journey
trace.attribute.key.http.request.header.journey.name={{ key "service/dataaggregator/trace/attribute/key/http/request/header/journey/name" }}
trace.attribute.key.http.response.header.journey.name={{ key "service/dataaggregator/trace/attribute/key/http/response/header/journey/name" }}

# HTTP header attributes - DCC/Response codes
trace.attribute.key.http.request.header.errorcode={{ key "service/dataaggregator/trace/attribute/key/http/request/header/errorcode" }}
trace.attribute.key.http.response.header.errorcode={{ key "service/dataaggregator/trace/attribute/key/http/response/header/errorcode" }}

# HTTP header attributes - Microservice call
trace.attribute.key.http.request.header.is.microservice.call={{ key "service/dataaggregator/trace/attribute/key/http/request/header/is/microservice/call" }}
trace.attribute.key.http.response.header.is.microservice.call={{ key "service/dataaggregator/trace/attribute/key/http/response/header/is/microservice/call" }}
trace.internal.api.path.patterns={{ key "service/dataaggregator/trace/internal/api/path/patterns" }}

# Database attributes
trace.attribute.key.db.operation={{ key "service/dataaggregator/trace/attribute/key/db/operation" }}
trace.attribute.key.db.name={{ key "service/dataaggregator/trace/attribute/key/db/name" }}
trace.attribute.key.db.statement={{ key "service/dataaggregator/trace/attribute/key/db/statement" }}
trace.attribute.value.get.session.cache={{ key "service/dataaggregator/trace/attribute/value/get/session/cache" }}
trace.attribute.value.put.session.cache={{ key "service/dataaggregator/trace/attribute/value/put/session/cache" }}

# Span status attributes
trace.attribute.key.span.status={{ key "service/dataaggregator/trace/attribute/key/span/status" }}
trace.attribute.value.span.status.ok={{ key "service/dataaggregator/trace/attribute/value/span/status/ok" }}

# Response time attributes
trace.attribute.key.response.times.type={{ key "service/dataaggregator/trace/attribute/key/response/times/type" }}

# Trace flow maps
trace.flow.maps.refresh.interval.mins={{ key "service/dataaggregator/trace/flow/maps/refresh/interval/mins" }}
clear.trace.to.span.type.map.delay.in.minutes={{ key "service/dataaggregator/clear/trace/to/span/type/map/delay/in/minutes" }}

# Trace flow delay queue and maps sync
sync.delay.queue.map.interval.mins={{ key "service/dataaggregator/sync/delay/queue/map/interval/mins" }}

# ==========================================================
# Computed KPI Aggregation Configuration
# ==========================================================
computed.kpi.generation.enabled={{ key "service/dataaggregator/computed/kpi/generation/enabled" }}
computed.kpi.producer.name={{ key "service/dataaggregator/computed/kpi/producer/name" }}
computed.kpi.min.ooo.duration={{ key "service/dataaggregator/computed/kpi/min/ooo/duration" }}
computed.kpi.wait.interval.ms = {{ key "service/dataaggregator/computed/kpi/wait/interval/milliseconds"}}

# ==========================================================
# Percentile & T-Digest Configuration
# ==========================================================
percentile.kpis.identifier.suffix={{ key "service/dataaggregator/percentile/kpis/identifier/suffix" }}
percentile.decimal.precision={{ key "service/dataaggregator/percentile/decimal/precision" }}
# Compression factor for T-Digest algorithm (higher = more accuracy, more memory)
tdigest.compression.factor={{ key "service/dataaggregator/tdigest/compression/factor" }}

# ==========================================================
# HTTP Status Code Classification Configuration
# ==========================================================
# HTTP status codes in range (http.status.success.min, http.status.success.max) are considered successful
http.status.success.min={{ key "service/dataaggregator/http/status/success/min" }}
http.status.success.max={{ key "service/dataaggregator/http/status/success/max" }}

# HTTP status codes >= http.status.error.min are considered errors
http.status.error.min={{ key "service/dataaggregator/http/status/error/min" }}

# ==========================================================
# HTTP Status Code for TD and BD
# ==========================================================
http.status.bd.min={{ key "service/dataaggregator/http/status/bd/min" }}
http.status.bd.max={{ key "service/dataaggregator/http/status/bd/max" }}
http.status.td.min={{ key "service/dataaggregator/http/status/td/min" }}
http.status.td.max={{ key "service/dataaggregator/http/status/td/max" }}

# ##########################################################################
# ##########################################################################
#                      PERFORMANCE & TUNING CONFIGURATION
# ##########################################################################
# ##########################################################################

# ==========================================================
# Thread Pool Configuration
# ==========================================================
thread.pool.core.size={{ key "service/dataaggregator/threadpoolcoresize"}}
thread.pool.max.size={{ key "service/dataaggregator/threadpoolmaxsize"}}
thread.pool.queue.capacity={{key "service/dataaggregator/threadpoolqueuecapacity"}}
scheduler.thread.pool.max.size={{ key "service/dataaggregator/schedulers/threadpoolmaxsize" }}

# ==========================================================
# Queue Size Configuration
# ==========================================================
delay.queue.max.size={{ key "service/dataaggregator/delay/queue/max/size" }}
request.queue.max.size={{ key "service/dataaggregator/request/queue/max/size" }}
aggregation.map.max.size.per.key={{ key "service/dataaggregator/aggregation/map/max/size/per/key" }}

# ==========================================================
# HTTP Retry Configuration
# ==========================================================
http.retry.max.attempts={{ key "service/dataaggregator/http/retry/max/attempts" }}
http.retry.backoff.delay.ms={{ key "service/dataaggregator/http/retry/backoff/delay/ms" }}

# ##########################################################################
# ##########################################################################
#                           CACHE CONFIGURATION
# ##########################################################################
# ##########################################################################

# ==========================================================
# Local Cache Configuration
# ==========================================================
redis.cache.mode={{ key "service/dataaggregator/cache/mode" }}
record.cache.stats={{ key "service/dataaggregator/cache/recordstats" }}
transaction.configuration.cache.max.size={{ key "service/dataaggregator/transaction/configurationcache/max/size" }}
transaction.configuration.cache.expire.interval.minutes={{ key "service/dataaggregator/transaction/configurationcache/expire/interval/minutes" }}
transaction.violation.configuration.cache.max.size={{ key "service/dataaggregator/transaction/violation/configurationcache/max/size" }}
transaction.violation.configuration.cache.expire.interval.minutes={{ key "service/dataaggregator/transaction/violation/configurationcache/expire/interval/minutes" }}

services.configuration.cache.max.size={{ key "service/dataaggregator/services/configurationcache/max/size" }}
services.configuration.cache.expire.interval.minutes={{ key "service/dataaggregator/services/configurationcache/expire/interval/minutes" }}
services.wise.kpis.configuration.cache.max.size={{ key "service/dataaggregator/servicewise/kpis/configurationcache/max/size" }}
services.wise.kpis.configuration.cache.expire.interval.minutes={{ key "service/dataaggregator/servicewise/kpis/configurationcache/expire/interval/minutes" }}
services.rules.configuration.cache.max.size={{ key "service/dataaggregator/servicerules/configurationcache/max/size" }}
services.rules.configuration.cache.expire.interval.minutes={{ key "service/dataaggregator/servicerules/configurationcache/expire/interval/minutes" }}
service.applications.configuration.cache.max.size={{ key "service/dataaggregator/service/applications/configurationcache/max/size" }}
service.applications.configuration.cache.expire.interval.minutes={{ key "service/dataaggregator/service/applications/configurationcache/expire/interval/minutes" }}
service.wise.agents.configuration.cache.max.size={{ key "service/dataaggregator/servicewise/agents/configurationcache/max/size" }}
service.wise.agents.configuration.cache.expire.interval.minutes={{ key "service/dataaggregator/servicewise/agents/configurationcache/expire/interval/minutes" }}
component.kpis.configuration.cache.max.size={{ key "service/dataaggregator/component/kpis/configurationcache/max/size" }}
component.kpis.configuration.cache.expire.interval.minutes={{ key "service/dataaggregator/component/kpis/configurationcache/expire/interval/minutes" }}
accounts.configuration.cache.max.size={{ key "service/dataaggregator/accounts/configurationcache/max/size" }}
accounts.configuration.cache.expire.interval.minutes={{ key "service/dataaggregator/accounts/configurationcache/expire/interval/minutes" }}
applications.configuration.cache.max.size={{ key "service/dataaggregator/applications/configurationcache/max/size" }}
applications.configuration.cache.expire.interval.minutes={{ key "service/dataaggregator/applications/configurationcache/expire/interval/minutes" }}
types.configuration.cache.max.size={{ key "service/dataaggregator/types/configurationcache/max/size" }}
types.configuration.cache.expire.interval.minutes={{ key "service/dataaggregator/types/configurationcache/expire/interval/minutes" }}
agents.configuration.cache.max.size={{ key "service/dataaggregator/agent/configurationcache/max/size" }}
agents.configuration.cache.expire.interval.minutes={{ key "service/dataaggregator/agent/configurationcache/expire/interval/minutes" }}
instance.services.configuration.cache.max.size={{ key "service/dataaggregator/instance/services/configurationcache/max/size" }}
instance.services.configuration.cache.expire.interval.minutes={{ key "service/dataaggregator/instance/services/configurationcache/expire/interval/minutes" }}
instances.configuration.cache.max.size={{ key "service/dataaggregator/instance/configurationcache/max/size" }}
instances.configuration.cache.expire.interval.minutes={{ key "service/dataaggregator/instance/configurationcache/expire/interval/minutes" }}
pending.transaction.cache.max.size={{ key "service/dataaggregator/pending/transactions/configurationcache/max/size" }}
pending.transaction.cache.expire.interval.minutes={{ key "service/dataaggregator/pending/transactions/configurationcache/expire/interval/minutes" }}

# ##########################################################################
# ##########################################################################
#                        BUFFER COLLATED TRANSACTION CONFIGURATION
# ##########################################################################
# ##########################################################################
buffer.collation.enabled=false
push.buffer.collated.agent.txn.data.to.opensearch={{ key "service/dataaggregator/push/buffer/collated/agent/txn/data/to/opensearch" }}
trace.buffer.collated.agent.txn.delay.queue.ttl.mins={{ key "service/dataaggregator/trace/buffer/collated/agent/txn/delay/queue/ttl/mins" }}
push.buffer.collated.txn.data.to.opensearch={{ key "service/dataaggregator/push/buffer/collated/txn/data/to/opensearch" }}
trace.buffer.collated.txn.delay.queue.ttl.mins={{ key "service/dataaggregator/trace/buffer/collated/txn/delay/queue/ttl/mins" }}
trace.send.collated.txn.to.buffer.rmq.queues={{ key "service/dataaggregator/trace/send/collated/txn/to/buffer/rmq/queues" }}

# ##########################################################################
# ##########################################################################
#                        SERVER & HTTP CONFIGURATION
# ##########################################################################
# ##########################################################################

# ==========================================================
# HTTP/2 & SSL Configuration
# ==========================================================
server.http2.enabled={{ key "service/dataaggregator/http2enabled" }}
server.port={{ key "service/dataaggregator/port" }}
server.ssl.enabled-protocols={{ key "service/dataaggregator/sslprotocol" }}
server.ssl.key-store={{ key "service/dataaggregator/keystore" }}
server.ssl.key-store-password={{ key "service/dataaggregator/keystorepassword" }}
server.ssl.trust-store={{ key "service/dataaggregator/truststore" }}
server.ssl.trust-store-password={{ key "service/dataaggregator/truststorepassword" }}

# ==========================================================
# Health Metrics & Monitoring Configuration
# ==========================================================
health.metrics.update.interval.milliseconds={{key "service/dataaggregator/health/metrics/updateinterval/milliseconds" }}
health.metrics.log.interval.milliseconds={{key "service/dataaggregator/health/metrics/loginterval/milliseconds" }}
management.endpoints.web.exposure.include={{key "service/dataaggregator/management/endpoints/web/exposure/include" }}
management.endpoints.jmx.exposure.include={{key "service/dataaggregator/management/endpoints/jmx/exposure/include" }}
management.endpoint.health.enabled={{key "service/dataaggregator/management/endpoints/health/enabled" }}
management.endpoints.web.base-path=/measure
management.server.port={{key "service/dataaggregator/management/server/port" }}
spring.jmx.enabled={{key "service/dataaggregator/jmx/enabled" }}

# ==========================================================
# Host Availability KPI
# ==========================================================
data.receiver.kpi.endpoint={{key "service/data/receiver/kpi/endpoint"}}
instance.kpi.availability={{key "service/host/availability/kpi/identifier"}}
ds.server.base.url={{ key "service/controlcenter/baseurl" }}

# ##########################################################################
# ##########################################################################
#                         MISCELLANEOUS CONFIGURATION
# ##########################################################################
# ##########################################################################

# ==========================================================
# Data Persistence Configuration
# ==========================================================
persisted.data.file.path={{ key "service/dataaggregator/persisted/data/file/path" }}
stream.offset.persistence.interval.mins={{ key "service/dataaggregator/stream/offset/persistence/interval/mins" }}

# ==========================================================
# Other Configuration
# ==========================================================
html.encoder.enable={{ key "service/dataaggregator/html/encoder/enable" }}
data.aggregation.unique.id={{ key "service/dataaggregator/unique/id" }}
heal.global.account.identifier={{ key "service/heal/global/account/identifier" }}
installation.attributes.cache.max.size={{ key "service/dataaggregator/installation/attributes/configurationcache/max/size" }}
installation.attributes.cache.expire.interval.minutes={{ key "service/dataaggregator/installation/attributes/configurationcache/expire/interval/minutes" }}