rh-messaging / artemis-prometheus-metrics-plugin

Apache License 2.0
22 stars 20 forks source link

Lack of metrics #1

Closed kmandalas closed 2 years ago

kmandalas commented 4 years ago

Hello,

I followed the instructions (of course some artifacts needed update to be consistent with the latest Artemis version) and I can see now metrics exposed and visible in Prometheus, but the list is very small and many things are missing.

Is this expected of is there something wrong? Following is the current list:

# HELP artemis_delivering_durable_persistent_size persistent size of durable messages that this queue is currently delivering to its consumers
# TYPE artemis_delivering_durable_persistent_size gauge
artemis_delivering_durable_persistent_size{address="DLQ",broker="0.0.0.0",queue="DLQ",} 0.0
artemis_delivering_durable_persistent_size{address="ExpiryQueue",broker="0.0.0.0",queue="ExpiryQueue",} 0.0
# HELP artemis_messages_expired number of messages expired from this queue since it was created
# TYPE artemis_messages_expired gauge
artemis_messages_expired{address="DLQ",broker="0.0.0.0",queue="DLQ",} 0.0
artemis_messages_expired{address="ExpiryQueue",broker="0.0.0.0",queue="ExpiryQueue",} 0.0
# HELP artemis_routed_message_count number of messages routed to one or more bindings
# TYPE artemis_routed_message_count gauge
artemis_routed_message_count{address="transactions.topic",broker="0.0.0.0",} 0.0
artemis_routed_message_count{address="ExpiryQueue",broker="0.0.0.0",} 0.0
artemis_routed_message_count{address="DLQ",broker="0.0.0.0",} 0.0
artemis_routed_message_count{address="activemq.notifications",broker="0.0.0.0",} 0.0
# HELP artemis_delivering_durable_message_count number of durable messages that this queue is currently delivering to its consumers
# TYPE artemis_delivering_durable_message_count gauge
artemis_delivering_durable_message_count{address="DLQ",broker="0.0.0.0",queue="DLQ",} 0.0
artemis_delivering_durable_message_count{address="ExpiryQueue",broker="0.0.0.0",queue="ExpiryQueue",} 0.0
# HELP artemis_scheduled_durable_message_count number of durable scheduled messages in this queue
# TYPE artemis_scheduled_durable_message_count gauge
artemis_scheduled_durable_message_count{address="DLQ",broker="0.0.0.0",queue="DLQ",} 0.0
artemis_scheduled_durable_message_count{address="ExpiryQueue",broker="0.0.0.0",queue="ExpiryQueue",} 0.0
# HELP jvm_memory_used_bytes The amount of used memory
# TYPE jvm_memory_used_bytes gauge
jvm_memory_used_bytes{area="nonheap",id="CodeHeap 'profiled nmethods'",} 8464000.0
jvm_memory_used_bytes{area="heap",id="G1 Survivor Space",} 5242880.0
jvm_memory_used_bytes{area="heap",id="G1 Old Gen",} 1.201388E7
jvm_memory_used_bytes{area="nonheap",id="Metaspace",} 3.7032912E7
jvm_memory_used_bytes{area="nonheap",id="CodeHeap 'non-nmethods'",} 1319168.0
jvm_memory_used_bytes{area="heap",id="G1 Eden Space",} 1.7825792E7
jvm_memory_used_bytes{area="nonheap",id="Compressed Class Space",} 4299112.0
jvm_memory_used_bytes{area="nonheap",id="CodeHeap 'non-profiled nmethods'",} 1591296.0
# HELP artemis_delivering_persistent_size persistent size of messages that this queue is currently delivering to its consumers
# TYPE artemis_delivering_persistent_size gauge
artemis_delivering_persistent_size{address="DLQ",broker="0.0.0.0",queue="DLQ",} 0.0
artemis_delivering_persistent_size{address="ExpiryQueue",broker="0.0.0.0",queue="ExpiryQueue",} 0.0
# HELP artemis_scheduled_persistent_size persistent size of scheduled messages in this queue
# TYPE artemis_scheduled_persistent_size gauge
artemis_scheduled_persistent_size{address="DLQ",broker="0.0.0.0",queue="DLQ",} 0.0
artemis_scheduled_persistent_size{address="ExpiryQueue",broker="0.0.0.0",queue="ExpiryQueue",} 0.0
# HELP artemis_unrouted_message_count number of messages not routed to any bindings
# TYPE artemis_unrouted_message_count gauge
artemis_unrouted_message_count{address="transactions.topic",broker="0.0.0.0",} 0.0
artemis_unrouted_message_count{address="ExpiryQueue",broker="0.0.0.0",} 0.0
artemis_unrouted_message_count{address="DLQ",broker="0.0.0.0",} 0.0
artemis_unrouted_message_count{address="activemq.notifications",broker="0.0.0.0",} 0.0
# HELP artemis_disk_store_usage Memory used by the disk store
# TYPE artemis_disk_store_usage gauge
artemis_disk_store_usage{broker="0.0.0.0",} 0.3252151758734422
# HELP artemis_message_count number of messages currently in this queue (includes scheduled, paged, and in-delivery messages)
# TYPE artemis_message_count gauge
artemis_message_count{address="DLQ",broker="0.0.0.0",queue="DLQ",} 0.0
artemis_message_count{address="ExpiryQueue",broker="0.0.0.0",queue="ExpiryQueue",} 0.0
# HELP artemis_connection_count Number of clients connected to this server
# TYPE artemis_connection_count gauge
artemis_connection_count{broker="0.0.0.0",} 0.0
# HELP artemis_messages_added number of messages added to this queue since it was created
# TYPE artemis_messages_added gauge
artemis_messages_added{address="DLQ",broker="0.0.0.0",queue="DLQ",} 0.0
artemis_messages_added{address="ExpiryQueue",broker="0.0.0.0",queue="ExpiryQueue",} 0.0
# HELP artemis_scheduled_message_count number of scheduled messages in this queue
# TYPE artemis_scheduled_message_count gauge
artemis_scheduled_message_count{address="DLQ",broker="0.0.0.0",queue="DLQ",} 0.0
artemis_scheduled_message_count{address="ExpiryQueue",broker="0.0.0.0",queue="ExpiryQueue",} 0.0
# HELP jvm_memory_committed_bytes The amount of memory in bytes that is committed for the Java virtual machine to use
# TYPE jvm_memory_committed_bytes gauge
jvm_memory_committed_bytes{area="nonheap",id="CodeHeap 'profiled nmethods'",} 8519680.0
jvm_memory_committed_bytes{area="heap",id="G1 Survivor Space",} 5242880.0
jvm_memory_committed_bytes{area="heap",id="G1 Old Gen",} 3.93216E8
jvm_memory_committed_bytes{area="nonheap",id="Metaspace",} 3.8141952E7
jvm_memory_committed_bytes{area="nonheap",id="CodeHeap 'non-nmethods'",} 2555904.0
jvm_memory_committed_bytes{area="heap",id="G1 Eden Space",} 1.40509184E8
jvm_memory_committed_bytes{area="nonheap",id="Compressed Class Space",} 4718592.0
jvm_memory_committed_bytes{area="nonheap",id="CodeHeap 'non-profiled nmethods'",} 2555904.0
# HELP artemis_consumer_count number of consumers consuming messages from this queue
# TYPE artemis_consumer_count gauge
artemis_consumer_count{address="DLQ",broker="0.0.0.0",queue="DLQ",} 0.0
artemis_consumer_count{address="ExpiryQueue",broker="0.0.0.0",queue="ExpiryQueue",} 0.0
# HELP jvm_buffer_count_buffers An estimate of the number of buffers in the pool
# TYPE jvm_buffer_count_buffers gauge
jvm_buffer_count_buffers{id="mapped",} 20.0
jvm_buffer_count_buffers{id="direct",} 244.0
# HELP jvm_buffer_memory_used_bytes An estimate of the memory that the Java virtual machine is using for this buffer pool
# TYPE jvm_buffer_memory_used_bytes gauge
jvm_buffer_memory_used_bytes{id="mapped",} 189300.0
jvm_buffer_memory_used_bytes{id="direct",} 2078922.0
# HELP artemis_scheduled_durable_persistent_size persistent size of durable scheduled messages in this queue
# TYPE artemis_scheduled_durable_persistent_size gauge
artemis_scheduled_durable_persistent_size{address="DLQ",broker="0.0.0.0",queue="DLQ",} 0.0
artemis_scheduled_durable_persistent_size{address="ExpiryQueue",broker="0.0.0.0",queue="ExpiryQueue",} 0.0
# HELP artemis_messages_acknowledged number of messages acknowledged from this queue since it was created
# TYPE artemis_messages_acknowledged gauge
artemis_messages_acknowledged{address="DLQ",broker="0.0.0.0",queue="DLQ",} 0.0
artemis_messages_acknowledged{address="ExpiryQueue",broker="0.0.0.0",queue="ExpiryQueue",} 0.0
# HELP artemis_delivering_message_count number of messages that this queue is currently delivering to its consumers
# TYPE artemis_delivering_message_count gauge
artemis_delivering_message_count{address="DLQ",broker="0.0.0.0",queue="DLQ",} 0.0
artemis_delivering_message_count{address="ExpiryQueue",broker="0.0.0.0",queue="ExpiryQueue",} 0.0
# HELP artemis_messages_killed number of messages removed from this queue since it was created due to exceeding the max delivery attempts
# TYPE artemis_messages_killed gauge
artemis_messages_killed{address="DLQ",broker="0.0.0.0",queue="DLQ",} 0.0
artemis_messages_killed{address="ExpiryQueue",broker="0.0.0.0",queue="ExpiryQueue",} 0.0
# HELP artemis_durable_message_count number of durable messages currently in this queue (includes scheduled, paged, and in-delivery messages)
# TYPE artemis_durable_message_count gauge
artemis_durable_message_count{address="DLQ",broker="0.0.0.0",queue="DLQ",} 0.0
artemis_durable_message_count{address="ExpiryQueue",broker="0.0.0.0",queue="ExpiryQueue",} 0.0
# HELP jvm_memory_max_bytes The maximum amount of memory in bytes that can be used for memory management
# TYPE jvm_memory_max_bytes gauge
jvm_memory_max_bytes{area="nonheap",id="CodeHeap 'profiled nmethods'",} 1.22912768E8
jvm_memory_max_bytes{area="heap",id="G1 Survivor Space",} -1.0
jvm_memory_max_bytes{area="heap",id="G1 Old Gen",} 2.147483648E9
jvm_memory_max_bytes{area="nonheap",id="Metaspace",} -1.0
jvm_memory_max_bytes{area="nonheap",id="CodeHeap 'non-nmethods'",} 5828608.0
jvm_memory_max_bytes{area="heap",id="G1 Eden Space",} -1.0
jvm_memory_max_bytes{area="nonheap",id="Compressed Class Space",} 1.073741824E9
jvm_memory_max_bytes{area="nonheap",id="CodeHeap 'non-profiled nmethods'",} 1.22916864E8
# HELP artemis_total_connection_count Number of clients which have connected to this server since it was started
# TYPE artemis_total_connection_count gauge
artemis_total_connection_count{broker="0.0.0.0",} 0.0
# HELP artemis_address_memory_usage Bytes used by all the addresses on broker for in-memory messages
# TYPE artemis_address_memory_usage gauge
artemis_address_memory_usage{broker="0.0.0.0",} 0.0
# HELP artemis_durable_persistent_size persistent size of durable messages currently in this queue (includes scheduled, paged, and in-delivery messages)
# TYPE artemis_durable_persistent_size gauge
artemis_durable_persistent_size{address="DLQ",broker="0.0.0.0",queue="DLQ",} 0.0
artemis_durable_persistent_size{address="ExpiryQueue",broker="0.0.0.0",queue="ExpiryQueue",} 0.0
# HELP jvm_buffer_total_capacity_bytes An estimate of the total capacity of the buffers in this pool
# TYPE jvm_buffer_total_capacity_bytes gauge
jvm_buffer_total_capacity_bytes{id="mapped",} 189300.0
jvm_buffer_total_capacity_bytes{id="direct",} 2078921.0
# HELP artemis_persistent_size persistent size of all messages (including durable and non-durable) currently in this queue (includes scheduled, paged, and in-delivery messages)
# TYPE artemis_persistent_size gauge
artemis_persistent_size{address="DLQ",broker="0.0.0.0",queue="DLQ",} 0.0
artemis_persistent_size{address="ExpiryQueue",broker="0.0.0.0",queue="ExpiryQueue",} 0.0
brusdev commented 2 years ago

The ArtemisPrometheusMetricsPlugin just exposes metrics implemented by ActiveMQ Artemis.

You should create an issue for ActiveMQ Artemis https://issues.apache.org/jira/projects/ARTEMIS/issues