Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.
This repository was archived by the owner on May 11, 2026. It is now read-only.

Metrics not being collected from jolokia endpoint #178

Description

@viv816

Hi,

I have created a test project on an Openshift cluster (1 master, 1 infra, 2 nodes).

Then pulled and deployed latest "hawkular/hawkular-openshift-agent" image to my project and config map 'hosa-config.yaml' as environment variable.

I also deployed a docker image of a spring boot application containing camel routes with jolokia enabled and config map 'app-config.yaml' as environment variable.

However, the 'hawkular-openshift-agent' pod does not seem to collect metrics from my spring boot application. Log details shown below.

hosa

Did I miss any step or configuration? I am new to openshift. I tried the instructions mentioned in the readme file, but got same logs. Please help.

(Btw, the spring boot application logs show everything is fine and all camel routes are started and all metrics endpoints are mapped and jolokia listening on 8080.)

Thank you,

hosa-config.yaml

kind: ConfigMap
apiVersion: v1
name: Hawkular OpenShift Agent Configuration
metadata:
name: hawkular-openshift-agent-configuration
labels:
metrics-infra: agent
data:
config.yaml: |
collector:
minimum_collection_interval_secs: 10
metric_id_prefix: pod/${POD:uid}/custom/
tags:
metric_name: ${METRIC:name}
description: ${METRIC:description}
units: ${METRIC:units}
namespace_id: ${POD:namespace_uid}
namespace_name: ${POD:namespace_name}
node_name: ${POD:node_name}
pod_id: ${POD:uid}
pod_ip: ${POD:ip}
pod_name: ${POD:name}
pod_namespace: ${POD:namespace_name}
hostname: ${POD:hostname}
host_ip: ${POD:host_ip}
labels: ${POD:labels}
type: pod
collector: hawkular_openshift_agent
custom_metric: true

app-config.yaml
kind: ConfigMap
apiVersion: v1
metadata:
name: app-metrics-config
data:
hawkular-openshift-agent-configuration: |
endpoints:
- type: jolokia
protocol: "http"
port: 8080
path: /jolokia
collection_interval: 30s
metrics:
- name: java.lang:type=Threading#ThreadCount
type: counter
id: VM Thread Count
- name: java.lang:type=Memory#HeapMemoryUsage#used
type: gauge
id: VM Heap Memory Used

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions