Skip to content
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

[Metricbeat] Module for OpenShift/OKD #13054

Open
sorantis opened this issue Jul 24, 2019 · 8 comments
Open

[Metricbeat] Module for OpenShift/OKD #13054

sorantis opened this issue Jul 24, 2019 · 8 comments
Labels
enhancement Metricbeat Metricbeat Stalled Team:Cloudnative-Monitoring Label for the Cloud Native Monitoring team Team:Platforms Label for the Integrations - Platforms team [zube]: Investigate

Comments

@sorantis
Copy link
Contributor

Summary

OpenShift is a popular enterprise distribution of Kubernetes. Recently RedHat announced that
"Nearly 50% of the top Fortune 100 companies are using Red Hat OpenShift. Almost 30% of the top Fortune Global 500 companies use OpenShift".

While OpenShift product and Kubernetes project have a lot in common, there are some concepts that are different between the two systems. One such concept, specific to OpenShift is Multi-Project Quotas.

Definitions

OpenShift Projects are Kubernetes namespaces with additional annotations, which encapsulate a set of objects, accounts, policies and constraints.

Resource Quotas provide constraints that limit aggregate resource consumption per project. Resources managed by the ResourceQuota object can be found in the OpenShift documentation.

In OpenShift quotas can be shared across multiple projects, which means that an aggregate of resources used in each project is used to limit resources across all the selected projects. A multi-project quota is defined by a ClusterResourceQuota object in OpenShift.

The AppliedClusterResourceQuota resource can be used by each project's administrator to view the multi-project quota documents that are applied to his or her project.

These two objects only present in OpenShift and therefore won't be captured by the vanilla Metricbeat module for Kubernetes.

User Story

As an OpenShift administrator I want to be able to monitor multi-project quota metrics using Metricbeat so that I could see remaining and used resources for all projects as well as per project.

Having this Metricbeat module will complement the Kubernetes metricsets for both OpenShift Enterprise and OKD clusters.

@sorantis sorantis added enhancement Metricbeat Metricbeat Team:Integrations Label for the Integrations team labels Jul 24, 2019
@exekias
Copy link
Contributor

exekias commented Mar 12, 2020

Part of this issue should be about doing actual testing of our current deployment files on OpenShift + updating the docs if needed.

@ChrsMark
Copy link
Member

ChrsMark commented Apr 22, 2020

Additional Resources

HAproxy

https://docs.openshift.com/container-platform/3.5/architecture/core_concepts/haproxy-router.html
https://wiki.berki.org/index.php/Openshift_-_HAproxy_metrics_EN

Openshift Builds

Monitor builds per cluster/project etc: https://docs.openshift.com/container-platform/3.9/dev_guide/builds/index.html, https://github.com/openshift/openshift-state-metrics/blob/master/docs/build-metrics.md

Machines

https://docs.openshift.com/container-platform/4.1/machine_management/creating-machineset.html

oc get machines --all-namespaces                                                                
NAMESPACE               NAME                     PHASE     TYPE            REGION        ZONE            AGE
openshift-machine-api   ocp-be-c5kjr-m-0         Running   n1-standard-4   us-central1   us-central1-a   7d19h
openshift-machine-api   ocp-be-c5kjr-m-1         Running   n1-standard-4   us-central1   us-central1-b   7d19h
openshift-machine-api   ocp-be-c5kjr-m-2         Running   n1-standard-4   us-central1   us-central1-c   7d19h
openshift-machine-api   ocp-be-c5kjr-w-a-fqn92   Running   n1-standard-4   us-central1   us-central1-a   7d19h
openshift-machine-api   ocp-be-c5kjr-w-b-jhqvn   Running   n1-standard-4   us-central1   us-central1-b   7d19h
openshift-machine-api   ocp-be-c5kjr-w-c-bsj76   Running   n1-standard-4   us-central1   us-central1-c   7d19h

Monitor Operator Status

https://docs.openshift.com/container-platform/4.2/operators/olm-status.html

openshift-state-metrics

https://github.com/openshift/openshift-state-metrics/blob/master/docs/README.md#exposed-metrics

@andresrc andresrc added the Team:Platforms Label for the Integrations - Platforms team label Aug 1, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-platforms (Team:Platforms)

@andresrc andresrc removed the Team:Integrations Label for the Integrations team label Aug 1, 2020
@botelastic
Copy link

botelastic bot commented Jan 27, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@botelastic botelastic bot added the Stalled label Jan 27, 2022
@ChrsMark
Copy link
Member

Still valid.

@botelastic botelastic bot removed the Stalled label Jan 27, 2022
@botelastic
Copy link

botelastic bot commented Jan 27, 2023

Hi!
We just realized that we haven't looked into this issue in a while. We're sorry!

We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1.
Thank you for your contribution!

@botelastic botelastic bot added the Stalled label Jan 27, 2023
@ChrsMark ChrsMark added the Team:Cloudnative-Monitoring Label for the Cloud Native Monitoring team label Jan 30, 2023
@botelastic botelastic bot removed the Stalled label Jan 30, 2023
@pfulier
Copy link

pfulier commented Nov 13, 2023

Hi all, still valid, thanks.
:-)

@botelastic
Copy link

botelastic bot commented Nov 12, 2024

Hi!
We just realized that we haven't looked into this issue in a while. We're sorry!

We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1.
Thank you for your contribution!

@botelastic botelastic bot added the Stalled label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Metricbeat Metricbeat Stalled Team:Cloudnative-Monitoring Label for the Cloud Native Monitoring team Team:Platforms Label for the Integrations - Platforms team [zube]: Investigate
Projects
None yet
Development

No branches or pull requests

6 participants