influxdata / influxdata/telegraf

Adding option to invoke operations in jolokia2 agent

Open
#5,278 12 comments 4 reactions 0 assignees View on GitHub
area/jolokia feature request help wanted size/l
Dominant language
Go
Stars
17.8k
Forks
5.8k
Avg merge
1d 20h
Merged PRs (30d)
161

Description

## Feature Request
Besides reading attributes the jolokia2 agent should be able to invoke operations from custom Mbeans through the JMX.

### Proposal:
We would like to see operations to be captured from invoked actions

### Current behavior:
Current behaviour supports only read requests and attributes ie:
curl http://localhost:10012/jolokia/read/java.lang:type=Memory | python -m json.tool

### Desired behavior:
I would like to have also operations supported for custom Mbeans(for our applications) created in Spring.boot. An example is:
http://localhost:10162/jolokia/exec/org.springframework.boot:type=Endpoint,name=Health/health/ | python -m json.tool
While I can see the result in command line I cannot capture it with telegraf

Contributor guide

Open the contributing guide

Research direction

Start with the jolokia2 agent's existing handling of read requests and compare it with the shown /jolokia/exec/... request for a Spring Boot custom MBean. Verify how Telegraf captures the operation result, and consider the work complete when invoked operations are captured for custom MBeans as well as attributes.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, java, spring-boot
Domain
observability-sre
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.