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

Problem with json using dot ( . ) in the variable #257

Open
thiagofdso opened this issue Sep 29, 2023 · 0 comments
Open

Problem with json using dot ( . ) in the variable #257

thiagofdso opened this issue Sep 29, 2023 · 0 comments

Comments

@thiagofdso
Copy link

I have a json like this.
{
"version": "4.0.0",
"gauges": {
"jvm.memory.heap.max}": {
"value": 134850064
},
"jvm.memory.heap.used}": {
"value": 26
}
}
}
When i try to use this confi yaml, it try to find a jvm variable, not jvm.memory.heap.max. How can i make it work?

modules:
default:
metrics:
- name: jvm_memory_heap_used
path: "{$.gauges.jvm.memory.heap.used}"
type: value
help: Heap Usado
- name: jvm_memory_heap_max
path: "{$.gauges.jvm.memory.heap.max}"
type: value
help: Heap Maximo

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

1 participant