Telegraf ActiveMQ Artemis plugin setup

I am trying to configure telegraf to send ActiveMQ Artemis metrics. Could someone provide the correct config for the input plugin.

I can see the queues at this path on my ActiveMQ Artemis server :8261/console/artemis/artemisQueues?nid=root-org.apache.activemq.artemis-0.0.0.0

I am referring to this github post : Report ActiveMQ Artemis metrics using Telegraf jolokia2_agent plugin · Issue #14081 · influxdata/telegraf · GitHub

Found this code snippet. It does not give any errors but i dont see any data being pushed as well.

[[inputs.jolokia2_agent]]
urls = ["http://<artemis-live-instance>:8261/console/jolokia"]
username = "username"
password = "password"  

[[inputs.jolokia2_agent.metric]]
name  = "artemis"
mbean = "org.apache.activemq.artemis:broker=\"*\",component=addresses,address=\"<queue-prefix>.*\",subcomponent=queues,routing-type=\"anycast\",queue=\"<queue-prefix>.*\""
tag_keys = ["queue", "subcomponent"]

Hello @Pratiyush_Kumar,
I noticed that the port is different
https://activemq.apache.org/components/artemis-console/documentation/console

[[inputs.jolokia2_agent]]
  # Use the correct Jolokia endpoint URL – typically on port 8161.
  urls = ["http://<artemis-instance>:8161/console/jolokia/"]
  username = "username"
  password = "password"
  
  [[inputs.jolokia2_agent.metric]]
    name    = "artemis"
    # Adjust <queue-prefix> to match your queue naming pattern.
    mbean   = "org.apache.activemq.artemis:broker=\"*\",component=addresses,address=\"<queue-prefix>.*\",subcomponent=queues,routing-type=\"anycast\",queue=\"<queue-prefix>.*\""
    tag_keys = ["queue", "subcomponent"]

Can you please verify the endpoint with curl? Also can you please verify your MBean availability? U se the jolokia endpoint to browse available MBeans and verify that the pattern you are using matches?