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

JMX metrics containing quotes are lost #689

Closed
tooptoop4 opened this issue Mar 1, 2022 · 2 comments
Closed

JMX metrics containing quotes are lost #689

tooptoop4 opened this issue Mar 1, 2022 · 2 comments

Comments

@tooptoop4
Copy link

I have this config:

jmxUrl: service:jmx:rmi:///jndi/rmi://localhost:{{ .Values.jmx.port }}/jmxrmi
lowercaseOutputName: true
lowercaseOutputLabelNames: true
ssl: false
rules:
- pattern: "debezium.([^:]+)<type=connector-metrics, context=([^,]+), server=([^>]+)>([^:]+)"
  name: debezium_metrics_$4
  labels:
    plugin: "$1"
    name: "$3"
    context: "$2"

jmx values like these are being exposed to prometheus (as expected):
,"debezium.oracle:type=connector-metrics,context=streaming,server=my-topicoracle,attr=QueueRemainingCapacity":81920
,"debezium.oracle:type=connector-metrics,context=streaming,server=my-topicoracle,attr=MiningSessionUserGlobalAreaMemoryInBytes":7595872

BUT issue is metrics like these were the values contain quotes are not being sent:
,"debezium.oracle:type=connector-metrics,context=streaming,server=my-topicoracle,attr=CurrentScn":"521761522525"
,"debezium.oracle:type=connector-metrics,context=streaming,server=my-topicoracle,attr=LastEvent":"position: {scn: 6533}, key: {"ID" : "421", "CONTRACT_NUMBER" : "redac", "ATTRIB4" : null}"

@tooptoop4
Copy link
Author

tooptoop4 commented Nov 19, 2022

seems string type not supported:
#255
#586
#548
#266
#377
#606

@dhoard
Copy link
Collaborator

dhoard commented Apr 25, 2024

Closing due to working as designed.

@dhoard dhoard closed this as completed Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants