Skip to content

[Trino] JMX Exporter Service Config #317

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

Open
metalshanked opened this issue Mar 20, 2025 · 1 comment
Open

[Trino] JMX Exporter Service Config #317

metalshanked opened this issue Mar 20, 2025 · 1 comment

Comments

@metalshanked
Copy link

I am using the default JMX Exporter settings in the helm chart.
This springs up a sidecar standalone JMX container serving the metrics at localhost:5556

For accessing these metrics outside the cluster, a service or ingress needs to be setup
Is there a way to have the configs set so that it auto-creates an Ingress and/or Cluster IP, NodePort services?

Thanks!

jmx:
  coordinator: {}
  enabled: true
  exporter:
    configProperties: |-
      hostPort: localhost:{{- .Values.jmx.registryPort }}
      startDelaySeconds: 0
      ssl: false
      lowercaseOutputName: false
      lowercaseOutputLabelNames: false
      includeObjectNames: ["java.lang:type=Threading"]
      autoExcludeObjectNameAttributes: true
      excludeObjectNameAttributes:
        "java.lang:type=OperatingSystem":
          - "ObjectName"
        "java.lang:type=Runtime":
          - "ClassPath"
          - "SystemProperties"
      rules:
        - pattern: 'java\.lang<type=Threading><(.*)>ThreadCount: (.*)'
          name: java_lang_Threading_ThreadCount
          value: '$2'
          help: 'ThreadCount (java.lang<type=Threading><>ThreadCount)'
          type: UNTYPED
    enabled: true
    image: bitnami/jmx-exporter:1.0.1
    port: 5556
    pullPolicy: Always
    resources: {}
    securityContext: {}
  registryPort: 9080
  serverPort: 9081
  worker: {}
@luiscosta18
Copy link

Hello

I had the same problem and created my own service and ingress for jmx container.

Or, if you are using prometheus service discovery, maybe add the prometheus annotations for both worker/coordinator deployments https://github.com/trinodb/charts/blob/main/charts/trino/templates/deployment-coordinator.yaml#L15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants