Metricbeat on Openshift not really supported?

Hi folks,

any of you running metricbeat on openshift to collect state metrics? It looks like it is not supported to collect state metrics of DeploymentConfigs and ReplicationContollers.

Anyone ran into this issue? How do you deal with that? Or is the consequence that Elasticsaerch/Metricbeat is not usable with Openshift?


You need to deploy kube-state-metrics in your OpenShift cluster to obtain those metrics. Kubernetes module | Metricbeat Reference [7.14] | Elastic

Thanks for your response.

Yes, it is deployed and I am getting the metrics for the kubernetes objects like state_deployment, state_pod, etc. they are all there

- module: kubernetes
  enabled: true
    - state_node
    - state_deployment
    - state_replicaset
    - state_pod
    - state_container
  period: 10s
  hosts: ["https://kube-state-metrics.openshift-monitoring.svc:8443" ]
  bearer_token_file: /var/run/secrets/
    - /var/run/secrets/
  - add_kubernetes_metadata: ~
  - add_host_metadata:
- module: kubernetes
  enabled: true
    - event
  hosts: ["${}:${LOGSTASH_PORT:5044}"]
  loadbalance: true
  ssl.certificate_authorities: [ "/path/to/ca.crt"]
  ssl.key: "path/to/client.key"
  ssl.certificate: "path/to/client.crt"
  ssl.key_passphrase: ${CERT_PASSWORD}

The issue is now that I have no metrics for everything which is deployed as Kind: DeploymentConfig.

Either kube-state-metrics API does not expose this metrics since DeploymentConfig is not an Kubernetes native Object

or Metricbeat does not have the logic to request the metrics for DeploymentConfig from the kube-state-metrics API.

Do you have any idea on that?

Thank you

You may want to check Metricbeat logs. Try to see if there is any error.

I cannot see any errors in metricbeat deployment logs currently.

also from the kube-state-metrics documentation I can see that there is no exposure of the deploymentconfig metics: kube-state-metrics/docs at master · kubernetes/kube-state-metrics · GitHub.



and in the info logs I cann cleary see that metricbeat is reading the state of the deployments:


Does anyone have experience with collecting metrics from deploymentConfig of openshift?

Appreciate any hint

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.