Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create tags with jolokia #513

Closed
mehrdad2000 opened this issue Aug 29, 2022 · 1 comment
Closed

create tags with jolokia #513

mehrdad2000 opened this issue Aug 29, 2022 · 1 comment

Comments

@mehrdad2000
Copy link

mehrdad2000 commented Aug 29, 2022

Hi
How can I create tag while using telegraf to send jolokia metrics to influxdb?
related issue influxdata/telegraf#11731

here is the current tags
image

need to add more tags for group by like this
image

my telegraf config

[[inputs.jolokia2_agent.metric]]
name = “MyCustomMetric”
mbean = “AllBeans:category=Color,Name=*”
paths = [“TimeToLive”,“Metric1”,“Metric3”,“Active”,“TimeoutRate”,“Status”]
tag_keys = [“Name”,“Status”]

current output of curl:

curl http://ip/:port/jolokia-war-unsecured-1.6.2/read/AllBeans:Name=*,category=Color | jq ‘.’
“AllBeans:Name=Customer,category=Color”: {
“TimeToLive”: 1000,
“Metric1”: 40,
“Metric2”: 0,
“Metric3”: 0,
“Name”: “Customer”,
“Active”: true,
“Status”: “OK”,

current Influx cli result:

> show tag keys from MyCustomMetric
name: MyCustomMetric
tagKey
------
Name
host
jolokia_agent_url

any idea?
Thanks

@rhuss
Copy link
Member

rhuss commented Aug 31, 2022

Sorry, this is a pure telegraf question as it refers to telegraf's integration of Jolokia. Closing this issue here, please reopen if there is anything that can be done from the Jolokia side.

@rhuss rhuss closed this as completed Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants