# Metricbeat on Openshift not really supported?

**URL:** https://discuss.elastic.co/t/metricbeat-on-openshift-not-really-supported/282054
**Category:** Beats
**Tags:** metricbeat
**Created:** [August 20, 2021, 9:23am UTC](https://discuss.elastic.co/t/metricbeat-on-openshift-not-really-supported/282054 "2021-08-20T09:23:53Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Kosodrom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kosodrom/32/99278_2.png) [@Kosodrom](https://discuss.elastic.co/u/Kosodrom)
#### Post date: [August 20, 2021, 9:23am UTC](https://discuss.elastic.co/t/metricbeat-on-openshift-not-really-supported/282054/1 "2021-08-20T09:23:53Z")

</div>

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?

Thanks

---

<div class="post-metadata">

### Author: ![hendry.lim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hendry.lim/32/71328_2.png) [@hendry.lim](https://discuss.elastic.co/u/hendry.lim)
#### Post date: [August 24, 2021, 2:28am UTC](https://discuss.elastic.co/t/metricbeat-on-openshift-not-really-supported/282054/2 "2021-08-24T02:28:29Z")

</div>

You need to deploy kube-state-metrics in your OpenShift cluster to obtain those metrics. [Kubernetes module | Metricbeat Reference [7.14] | Elastic](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-kubernetes.html)

---

<div class="post-metadata">

### Author: ![Kosodrom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kosodrom/32/99278_2.png) [@Kosodrom](https://discuss.elastic.co/u/Kosodrom)
#### Post date: [August 24, 2021, 11:12am UTC](https://discuss.elastic.co/t/metricbeat-on-openshift-not-really-supported/282054/3 "2021-08-24T11:12:46Z")

</div>

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

```auto
metricbeat.modules:
- module: kubernetes
  enabled: true
  metricsets:
    - 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/kubernetes.io/serviceaccount/token
  ssl.certificate_authorities:
    - /var/run/secrets/kubernetes.io/serviceaccount/service-ca.crt
  processors:
  - add_kubernetes_metadata: ~
  - add_host_metadata:
- module: kubernetes
  enabled: true
  metricsets:
    - event
output.logstash:
  hosts: ["${LOGSTASH_HOST:logstash.url.com}:${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](https://docs.openshift.com/container-platform/4.1/applications/deployments/what-deployments-are.html#deployments-and-deploymentconfigs_what-deployments-are).

**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

---

<div class="post-metadata">

### Author: ![hendry.lim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hendry.lim/32/71328_2.png) [@hendry.lim](https://discuss.elastic.co/u/hendry.lim)
#### Post date: [August 24, 2021, 11:38am UTC](https://discuss.elastic.co/t/metricbeat-on-openshift-not-really-supported/282054/4 "2021-08-24T11:38:43Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Kosodrom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kosodrom/32/99278_2.png) [@Kosodrom](https://discuss.elastic.co/u/Kosodrom)
#### Post date: [August 24, 2021, 12:29pm UTC](https://discuss.elastic.co/t/metricbeat-on-openshift-not-really-supported/282054/5 "2021-08-24T12:29:24Z")

</div>

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](https://github.com/kubernetes/kube-state-metrics/tree/master/docs).

Strange

EDIT:

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

```auto
 ...""state_container":{"events":2066,"success":2066},"state_deployment":{"events":100,"success":100},"state_node":{"events":36,"success":36},"state_pod":{"events":2967,"success":2967},"state_replicaset":{"events":345,"success":345}}}...

```

---

<div class="post-metadata">

### Author: ![Kosodrom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kosodrom/32/99278_2.png) [@Kosodrom](https://discuss.elastic.co/u/Kosodrom)
#### Post date: [August 31, 2021, 1:41pm UTC](https://discuss.elastic.co/t/metricbeat-on-openshift-not-really-supported/282054/6 "2021-08-31T13:41:16Z")

</div>

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

Appreciate any hint

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [September 28, 2021, 3:42pm UTC](https://discuss.elastic.co/t/metricbeat-on-openshift-not-really-supported/282054/7 "2021-09-28T15:42:07Z")

</div>

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