artemiscloud / activemq-artemis-operator

Apache License 2.0
64 stars 62 forks source link

Need complete Setup of Jolokia for accessing the api url for EKS cluster #696

Closed gnaveen33 closed 11 months ago

gnaveen33 commented 12 months ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered Optional. A clear and concise description of any alternative solutions or features you've considered.

Additional context Optional. Add any other context or screenshots about the feature request here.

brusdev commented 12 months ago

@gnaveen33 the broker pods enable the jolokia instance embedded in the console by default. You can use the field deploymentPlan.jolokiaAgentEnabled to enable a full jolokia agent.

apiVersion: broker.amq.io/v1beta1
kind: ActiveMQArtemis
metadata:
  name: ex-aao
  application: ex-aao-app
spec:
  deploymentPlan:
    jolokiaAgentEnabled: true
gnaveen33 commented 11 months ago

Thanks for update. Any sample post call to create queue using this Jolokia api url?

brusdev commented 11 months ago

@gnaveen33 I would recommend you to use broker properties, i.e.

apiVersion: broker.amq.io/v1beta1
kind: ActiveMQArtemis
metadata:
  name: artemis-addresses
spec:
  deploymentPlan:
    image: quay.io/dbruscin/amq7-amq-broker-rhel8:7.11
    initImage: quay.io/dbruscin/amq7-amq-broker-init-rhel8:7.11
  brokerProperties:
    - "addressConfigurations.test-address.routingTypes=ANYCAST"
    - "addressConfigurations.test-addressqueueConfigs.q1.address=Test2"
    - "addressConfigurations.test-address.queueConfigs.q1.routingType=ANYCAST"
    - "addressConfigurations.test-address.queueConfigs.q2.address=Test3"
    - "addressConfigurations.test-address.queueConfigs.q2.routingType=ANYCAST"

For specific questions related to Apache ActiveMQ Artemis, you could send an email to users@activemq.apache.org

gnaveen33 commented 11 months ago

@brusdev thanks for update. Have dropped mail to above mail id, meanwhile can you please suggest which is best API method to use for artemis active MQ using EKS cluster?

gnaveen33 commented 11 months ago

@brusdev , need an info like can we push and pull messgaes in bulk using JMX\JOLOKIA API call ?

gaohoward commented 11 months ago

@gnaveen33 Hi as @brusdev said if you want to create a Queue, you can just use brokerProperties to do that. Jolokia API is just http calls so you just can use any http client to access it (provided you have the correct user/password). For example if you use curl you can do this to create a queue:

curl -H "Origin: http://localhost" -u user:password http://localhost:8161/console/jolokia/exec/org.apache.activemq.artemis:broker=\"0.0.0.0\"/createQueue\("java.lang.String","java.lang.String","boolean"\)/testQueue/testAddress/true

I don't think we have pull/push messages apis specifically. You can just open the management console and browse through the artemis object tree for methods/attributes available. If you find one that you need, you can also view the url by clicking the button shown along with the method detail page.