[ZBXNEXT-7486] Zabbix Integration with OpenShift Created: 2022 Feb 10  Updated: 2025 May 05  Resolved: 2023 Nov 03

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Templates (T)
Affects Version/s: None
Fix Version/s: 6.0.24rc1, 6.4.9rc1, 7.0.0alpha8, 7.0 (plan)

Type: New Feature Request Priority: Trivial
Reporter: Aleksandrs Larionovs (Inactive) Assignee: Evgenii Gordymov
Resolution: Fixed Votes: 5
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File GetMetricsTimeout.png     PNG File KubernetesTimeout.png     PNG File OpenshiftMacros.png     File README.md     JPEG File getStateMetrics.jpg     Text File kube_state_metric_8080_metrics.log     Text File openshuft_state_metrics_8081_metrics.log     Text File openshuft_state_metrics_8082_metrics.log     File template_kubernetes_state.yaml    
Issue Links:
Duplicate
Sub-task
depends on ZBXNEXT-4635 Zabbix Integration with Kubernetes Closed
Team: Team INT
Sprint: Sprint 85 (Feb 2022), Sprint 86 (Mar 2022), Sprint 87 (Apr 2022), Sprint 88 (May 2022), Sprint 89 (Jun 2022), Sprint 90 (Jul 2022), Sprint 91 (Aug 2022), Sprint 92 (Sep 2022), Sprint 93 (Oct 2022), Sprint 94 (Nov 2022), Sprint 95 (Dec 2022), Sprint 96 (Jan 2023), Sprint 97 (Feb 2023), Sprint 98 (Mar 2023), Sprint 99 (Apr 2023), Sprint 100 (May 2023), Sprint 101 (Jun 2023), Sprint 102 (Jul 2023), Sprint 103 (Aug 2023), Sprint 104 (Sep 2023), Sprint 105 (Oct 2023), Sprint 106 (Nov 2023)
Story Points: 2

 Description   

Zabbix Integration with OpenShift



 Comments   
Comment by Dimitri Bellini [ 2022 May 19 ]

Dear DevTeam,
this new template is still in the roadmap of Zabbix 6.0.5 or 6.2?
Thanks so much

Comment by Samuele Bianchi [ 2022 May 25 ]

I can test an Openshift on premise cluster at version 4.7
when will be avaiable a template for testing?

Comment by Yulia Chukina (Inactive) [ 2022 Jun 02 ]

pizzulicchio

Actually, you can use solution for Kubernetes: https://www.zabbix.com/ru/integrations/kubernetes

In OpenShift integration we plan just add some specific metrics.

Comment by Samuele Bianchi [ 2022 Jun 02 ]

Hi Yulia,

i'm already testing your Kubernetes template but it's not fully working into Openshift environment.
For example, using the template "Kubernetes cluster states by HTTP" , every discovery rule that use "Get State Metrics" isn't working.
Timeout error

Comment by Alexey Pustovalov [ 2022 Jun 03 ]

What error do you have on "Get state metrics" item? Could you try to "test" the item?

Comment by Samuele Bianchi [ 2022 Jun 06 ]

Sure, here to you the error. Let me know how is possible to debug better.

Comment by Samuele Bianchi [ 2022 Jun 06 ]

And in zabbix server's log file , I have only this:

Comment by Samuele Bianchi [ 2022 Jul 04 ]

is it planned this integration or not ?

Comment by Samuele Bianchi [ 2022 Sep 13 ]

Hi,
I have solved finally! PLEASE, update/add info to your doc's template.

Maybe obvious to a developer but not an IT engineer... to make it wokrs all the discovery rule into the Kubernetes cluster state by HTTP template, ( "Kubernetes: Get state metric" too ) you must use the proxy created with Helm Chart for monitoring the cluster.
PLEASE PLEASE, add this info tho the DOC. 

"Create a zabbix host, assign the Kubernetes cluster state by HTTP , and monitor it using the proxy that you have already deployed/named with Helm Chart and created from zabbix's Gui"

Now it's work.

In addiction, here a screen of the custom port used from RedHat Openshift.
You have to set into the Macro's section of the host that you have assigned the two templates:
Kubernetes nodes by HTTP
Kubernetes cluster state by HTTP

I know that this template is for Kubernetes and not for the custom implementation of kubernates made from Red Hat ( OpenShift).
but maybe useful to know that the default port of kubernetes for Controller Manager and Scheduler are not the same of Openshift.

Comment by Dimitri Bellini [ 2022 Sep 13 ]

Thanks @Samuele for your contribution! You have finally posted some good tips to monitoring Openshift with Zabbix.
@DevTeam do you have some eta for the final "Official Zabbix template for Openshift"?
Thanks very much to all guys

Comment by Cedric De Meulder [ 2022 Oct 19 ]

Hello, thanks for this info.
I have the same problem as you... and of course I disabled the Proxy when I installed the Helm so when I read your post I enable it.
I have a proxy and I configured it into my Zabbix server but it seems the Proxy is not sending data to my Zabbix server.
Do I need to configure something in my Kubernetes?
Thanks for your help.

Comment by Cedric De Meulder [ 2022 Oct 19 ]

Solved! The problem was the name of the Proxy configured with the Helm was not the same as in Zabbix Gui...

 

Comment by Evgenii Gordymov [ 2023 Nov 02 ]

Available in:

Comment by Lidija Marsova (Inactive) [ 2023 Nov 02 ]

Documentation updated:

Generated at Thu Jun 19 08:00:54 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.