Skip to content

Data Receiver

Configuration reference for the service that receives agent data, validates and enriches it, and stores it in OpenSearch.

6 min read Updated SS RS

Data Receiver#

Introduction#

The Data Receiver is a microservice that receives protocol buffers, text data, and JSONs from the agents. It receives transactions, KPIs, and batch job processes-related data from the agents. It validates the data, enriches the data with some additional information, and stores it in the OpenSearch database.

It makes use of the Redis caching mechanism.

It reads the agent identifiers, service, application, etc. details from the Redis cache.

The Data Receiver performs the following tasks:

  • Validation of transactions and KPIs data
  • Transaction stitching
  • Converting transaction JSON or text data into transaction protobuf
  • Converting KPIs JSON data into KPI protobuf

While enriching the data, the Data Receiver parses the transactions, categorizes them based on the transaction rules, and maps them to applications, services, and clusters.

To route each account's data to its own Data Receiver endpoint, by updating the endpoint mappings in Percona and the HAProxy rules, see Segregate Data Receiver Traffic by Account. To troubleshoot the Data Receiver, see Data Receiver Issues.

Consul Keys#

The Data Receiver module utilizes a set of consul keys designed to facilitate its configuration and operation. These keys are essential for the module to function correctly and efficiently.

The consul keys are as follows:

service/datareceiver/rpc/ssl/enabled
service/controlcenter/protocol
service/controlcenter/hostname
service/controlcenter/port/https
service/controlcenter/baseurl
service/cc/connectiontimeout
service/cc/connectionrequesttimeout
service/cc/sockettimeout
service/cc/maxconnection
service/cc/connectionperroute
service/redis/nodes
service/redis/sslenable
service/redis/username
service/redis/password
service/rabbitmq/hostname
service/rabbitmq/port
service/rabbitmq/username
service/rabbitmq/password
service/rabbitmq/sslenable
service/rabbitmq/sslprotocol
service/rabbitmq/connectionTimeout
service/elasticsearch/nodes
service/elasticsearch/protocol
service/elasticsearch/username
service/elasticsearch/password
service/elasticsearch/perrouteconnections
service/elasticsearch/maxconnections
service/datareceiver/data/queue/threshold
service/datareceiver/data/transactions/stiching
service/datareceiver/redis/cache/mode
service/datareceiver/local/cache/maximum/size
service/datareceiver/local/cache/timeout/minute
service/datareceiver/id
service/datareceiver/mode/cache/timeout/minute
service/opensearch/instance/health/index/kpi heal_health_instance_
service/opensearch/nodes/eum 192.0.2.78:9250,192.0.2.106:9250,192.0.2.107:9250
service/opensearch/username/misc admin
service/datareceiver/opensearch/maxconnections/eum 50
service/datareceiver/opensearch/connection/socket/timeout/secs/eum 90
service/datareceiver/opensearch/perrouteconnections/kpi 50
service/datareceiver/opensearch/connections/timeout/secs/misc 5
service/opensearch/agent/health/index/kpi heal_health_agent_
service/datareceiver/local/host/availability/cache/timeout/minute 3
service/datareceiver/opensearch/connection/socket/timeout/secs/txn 90
service/datareceiver/opensearch/maxconnections/txn 50
service/datareceiver/opensearch/perrouteconnections/eum 50
service/datareceiver/opensearch/connection/socket/timeout/secs/misc 90
service/datareceiver/local/host/availability/cache/maximum/size 5000
service/opensearch/nodes/misc 192.0.2.78:9200,192.0.2.106:9200,192.0.2.107:9200
service/datareceiver/opensearch/maxconnections/misc 50
service/datareceiver/local/cache/timeout/minute/add/transactions 1
service/datareceiver/opensearch/protocol/eum https
service/datareceiver/opensearch/connections/timeout/secs/eum 5
service/datareceiver/opensearch/connection/socket/timeout/secs/kpi 90
service/opensearch/protocol/misc https
service/datareceiver/opensearch/skip/error/kpi/injection/inserts 0
service/datareceiver/opensearch/perrouteconnections/misc 50
service/datareceiver/opensearch/perrouteconnections/txn 50
service/datareceiver/opensearch/connections/max/redirects/misc 5
service/datareceiver/generate/document/id/kpi 1
service/datareceiver/opensearch/maxconnections/kpi 50
service/opensearch/password/encrypted/eum <encrypted_password>
service/host/availability/redis/key/expiry/minute 5
service/datareceiver/opensearch/connections/timeout/secs/kpi 5
service/opensearch/username/eum admin
service/opensearch/password/encrypted/misc <encrypted_password>
service/datareceiver/opensearch/connections/max/redirects/txn 5
service/datareceiver/opensearch/connections/timeout/secs/txn 5
service/datareceiver/opensearch/connections/max/redirects/eum 5
service/datareceiver/duplicate/kpi/check 0
service/datareceiver/opensearch/connections/max/redirects/kpi 5

Note: The value <encrypted_password> on the service/opensearch/password/encrypted/* keys is a placeholder for the encrypted OpenSearch admin password. Replace it with the encrypted password generated for your environment.

The service/opensearch/* keys are also listed in HEAL OpenSearch Guide — Consul Keys.

Health Metrics#

The health metrics of the Data Receiver are critical indicators used to monitor and ensure the optimal performance and reliability of the system.

Metric Description
DelayQueueOverflow Data Receiver stores the request data for unstitched transactions to delay the queue. If the delay queue is full, then the Data Receiver drops the requests. Every time the Data Receiver drops the requests, it increments this count internally.
The initial value for this metric is 0.
DelayQueueSize This is the size of the delay queue.
The initial value for this metric is 0.
GrpcWorkerActiveSize This is the total number of active threads.
The initial value for this metric is 0.
GrpcWorkerPoolSize This is the total number of threads in the pool. This is the maximum number of threads that can go into the active state.
The initial value for this metric is 0.
GrpcWorkerQueueSize This is the total number of tasks present in the queue which are pending due to active threads count matching the pool size. This queue contains Protobuf data.
The initial value for this metric is 0.
GrpcWorkerCompletedTaskSize This is the total number of KPIs and transactions that the worker threads of Grpc processed.
The initial value for this metric is 0.
GrpcWorkerTaskCount This is the total number of KPIs and transactions which all the worker threads of Grpc receive. These worker threads process the KPIs and transactions.
The initial value for this metric is 0.
HttpWorkerActiveSize This is the total number of active threads.
The initial value for this metric is 0.
HttpWorkerCompletedTaskSize This is the total number of KPIs and transactions that the worker threads of Http module processed.
the initial value for this metric is 0.
HttpWorkerPoolSize This is the total number of threads in the pool. This is the maximum number of threads that can go in active state.
The initial value for this metric is 0.
HttpWorkerQueueSize This is the total number of tasks present in the queue which are pending due to active threads count matching the pool size. This queue contains Protobuf data.
The initial value for this metric is 0.
HttpWorkerTaskCount This is the total number of KPIs and transactions which all the worker threads of Http module receive. These worker threads process the KPIs and transactions.
The initial value for this metric is 0.
RMQWorkerActiveSize This is the total number of active threads.
The initial value for this metric is 0.
RMQWorkerCompletedTaskSize This is the total number of KPIs and transactions that the worker threads of RMQ module processed.
The initial value for this metric is 0.
RMQWorkerPoolSize This is the total number of threads in the pool. This is the maximum number of threads that can go in active state.
The initial value for this metric is 0.
RMQWorkerQueueSize This is the total number of tasks present in the queue which are pending due to active threads count matching the pool size. This queue contains Protobuf data.
The initial value for this metric is 0.
RMQWorkerTaskCount This is the total number of KPIs and transactions which all the worker threads of RMQ module receive. These worker threads process the KPIs and transactions.
The initial value for this metric is 0.
JsonRawBatchJobMessageInFlow This is the number of raw batch job messages in JSON format that the Data receiver receives from the agents.
The initial value for this metric is 0.
JsonRawKpiMessageInFlow This is the number of raw KPI messages in JSON format that the Data receiver receives from the agents.
The initial value for this metric is 0.
JsonRawTransactionMessageInFlow This is the number of raw transaction messages in JSON format that the Data receiver receives from the agents.
The initial value for this metric is 0.
OpensearchInsertFailure This is the number of failures while Data Receiver writes KPIs and transactions messages to Opensearch database.
The initial value for this metric is 0.
ProtoRawBatchJobMessageInFlow This is the number of raw batch job messages in protobuffer format that the Data receiver receives from the agents.
The initial value for this metric is 0.
ProtoRawKpiMessageInFlow This is the number of raw KPI messages in protobuffer format that the Data receiver receives from the agents.
The initial value for this metric is 0.
ProtoRawTransactionMessageInFlow This is the number of raw transaction messages in protobuffer format that the Data receiver receives from the agents.
The initial value for this metric is 0.
PsaRawRequestMessageInFlow This is the number of raw request messages in the text format for the unstitched transactions that the PSAgent sends to Data Receiver.
The initial value for this metric is 0.
PsaRawResponseMessageInFlow This is the number of raw response messages in the text format for the unstitched transactions that the PSAgent sends to Data Receiver.
The initial value for this metric is 0.
PsaRawTransactionMessageInFlow This is the number of raw stitched transaction messages in the text format that the PSAgent sends to Data Receiver. These stitched transactions contain both request and response.
The initial value for this metric is 0.
RawMessageOutflow This is the number of raw KPIs and transactions messages that Data Receiver writes to OpenSearch database.
The initial value for this metric is 0.
RedisKeySearchFailure This indicates the number of failures in fetching the necessary configuration data from Redis cache. Data Receiver reads data from Redis cache using Redis keys. If Data Receiver does not receive data for any Redis key(s), value for this metric increases by 1.
The initial value for this metric is 0.
datareceivererrorcount This is the number of errors that occurred in Data Receiver module.
The initial value for this metric is 0.