Data Streams Monitoring is not available for the  site.
This document discusses the following Data Streams Monitoring metrics and their tags:
- data_streams.latency
- data_streams.kafka.lag_seconds
- data_streams.kafka.lag_messages
- data_streams.sqs.dead_letter_queue.messages
- data_streams.payload_size
data_streams.latency
This metric measures latency between two points in the pipeline. The value can represent different types of latency, depending on its tags.
- pathway_type
- What information the metric value represents. Possible pathway types:
 - full: end-to-end latency between data origin (- start) and another point (- end) in the pipeline- starttag: data origin
- endtag: arbitrary point where data is last tracked
 
- edge: latency between two services, connected through a queue or directly over HTTP/gRPC. Measures duration between time of produce in the producer (- start) and time of consume in the consumer (- end)- starttag: the upstream producer service
- endtag: the downstream consumer service
 
- partial_edge: latency between a service and a queue, if the producer or consumer is not known (that is, not instrumented with Data Streams Monitoring)- starttag: the upstream producer service/queue
- endtag: the downstream consumer service/queue
 
- internal: latency within the service. Measures time between consume and the folllowing produce operation.
 
- start
- The name of the node where Data Streams Monitoring first detects the payload. This node can be a service (the original producer) or a queue (the original producer is not known to Data Streams Monitoring).
 
 When thepathway_typetag is set tofull(end-to-end latency),startalways refers to the start of the pipeline.
 
 For example:
 
 The querystart:serviceA and end:serviceC and pathway_type:fullmeasures end-to-end latency for this pipeline.
 The querystart:serviceB and end:serviceC and pathway_type:fulldoes not measure latency for this pipeline, as there is no data originating at Service B.
- end
- The name of a node where the pipeline ends. You can use endto get data for partial pipelines.
 
 For example:
 
 You can usestart:serviceA and end:serviceB and pathway_type:fullto measure the first part of this pipeline.
 
- service
- The name of the service where data is collected.
- type
- The name of the queueing technology for which the data is generated, for example: Kafka, RabbitMQ, SQS. For HTTP and gRPC, typeis set tohttporgrpc.
- topic
- The name of the topic the data is produced to or consumed from, if any.
- direction
- The direction of data flow for a particular service. Possible values:
 - in: the consume operation or serving data over HTTP/gRPC
- out: the produce operation or sending data over HTTP/gRPC
 
- env
- Environment in which the service is running
- pathway
- An ordered list of services, separated by /, that the data travels through. If the data goes through the same service multiple times consecutively, the service name is added only once.
- detailed_pathway
- An ordered list of services and queues, separated by /, that the data travels through. The same aspathwaybut with queues in addition to services.
- visited_queues
- Represents all queues the data goes through. (Queues directly at the start or end of the pipeline are excluded.) You can use this tag to make your query more specific if your data is flowing through multiple queues.
 
 Consider the following pipeline:
 
 
 To measure data flow from Service A to Queue A to Service B, you can querystart:serviceA and end:serviceB and visited_queues:queueA.
 To measure data flow from Service A to Queue B to Service B, you can querystart:serviceA and end:serviceB and visited_queues:queueB.
- visited_services
- Represents all services the data goes through. (Services directly at the start or end of the pipeline are excluded.)
- upstream_service
- The name of the service upstream from a particular service.
- exchange
- For RabbitMQ, the name of the exchange the data went to.
- hash
- A unique identifier, computed using various tag values (type,service,direction,parent_hash, and others).
- parent_hash
- The hashof the node upstream from the node on the pathway.
data_streams.kafka.lag_seconds
This metric represents the lag (in seconds) between the last produce and consume operations.
- partition
- The Kafka partition.
- env
- The environment in which the consumer service is running.
- topic
- The Kafka topic.
- consumer_group
- The Kafka consumer group.
data_streams.kafka.lag_messages
This metric represents the lag (in offsets) between the last produce and consume operations.
- partition
- The Kafka partition.
- env
- The environment in which the consumer service is running.
- topic
- The Kafka topic.
- consumer_group
- The Kafka consumer group.
data_streams.payload_size
This metric is a distribution metric representing the message size distribution in bytes of messages going through the Data Streams.
The tags are the same as for the data_streams.latency metric.
data_streams.sqs.dead_letter_queue.messages
This metric represents the number of a messages in an SQS dead-letter queue. It is used to to measure the number of dead-lettered messages for a given queue.
- arn
- The ARN (Amazon Resource Name) of the queue.
- aws_account
- The AWS Account number of the queue (and dead-letter queue).
- dlq
- The ARN of the dead letter queue that messages are being sent to.
- queue
- The name of the queue.
- region
- The AWS region of the queue (and dead-letter queue).