Skip to content

rhobs/observability-operator

Folders and files

NameName
Last commit message
Last commit date
Nov 20, 2024
Feb 24, 2025
Mar 4, 2025
Mar 3, 2025
Mar 4, 2025
Mar 4, 2025
Jun 28, 2023
Dec 10, 2024
Mar 4, 2025
Mar 7, 2025
Sep 21, 2023
Sep 19, 2024
Jul 4, 2023
Dec 11, 2024
Sep 27, 2023
Nov 12, 2024
Feb 26, 2025
Nov 20, 2024
Sep 4, 2023
Nov 11, 2024
Aug 21, 2023
Dec 11, 2024
Oct 29, 2024
Oct 21, 2024
Mar 10, 2025
Mar 10, 2025

Repository files navigation

observability-operator

The Observability Operator is a Kubernetes operator which enables the management of Monitoring/Alerting stacks through Kubernetes CRDs. Eventually it might also cover Logging and Tracing.

The project relies heavily on the controller-runtime library.

Trying out the Operator

Observability Operator requires Operator Lifecycle Manager (OLM) to be running in cluster. The easiest way is to use OpenShift where OLM is preinstalled.

OpenShift

Add the Observability Operator Catalog as shown below.

kubectl apply -f hack/olm/catalog-src.yaml

This adds a new Catalog to the list of catalogs. Now, you should be able to use OLM Web interface to install/uninstall Observability Operator like any other operator.

If you prefer CLI, applying the subscription as shown below will install the operator.

kubectl create -f ./hack/olm/subscription.yaml

Uninstall

It is easier to use the web console to remove the installed operator. Instructions below removes all traces of what was setup in the previous step including removing the catalog.

oc delete -n operators csv \
    -l operators.coreos.com/observability-operator.operators=

oc delete -n openshift-operators  \
    installplan,subscriptions \
    -l operators.coreos.com/observability-operator.operators=

oc delete -f hack/olm

oc delete crds "$(oc api-resources --api-group=monitoring.rhobs -o name)"

Kubernetes

As mentioned above, Observability Operator requires Operator Lifecycle Manager (OLM) to be running in cluster, so installing OLM is the first step to getting the Observability Operator running on k8s.

operator-sdk olm install
kubectl create -f ./hack/olm/k8s/catalog-src.yaml
kubectl create -f ./hack/olm/k8s/subscription.yaml

NOTE: To install operator-sdk, you can make use of make tools which installs operator-sdk (along with other tools needed for development) to tmp/bin

For more information, about running Observability Operator (ObO) on Kind, please refer to the Developer Docs.

Uninstalling

kubectl delete -n operators csv \
    -l operators.coreos.com/observability-operator.operators=

kubectl delete -n operators  \
    installplan,subscriptions \
    -l operators.coreos.com/observability-operator.operators=

kubectl delete -f hack/olm/k8s

kubectl delete crds "$(kubectl api-resources --api-group=monitoring.rhobs -o name)"

Development

Please refer to Developer Docs

Meetings


Contact


  • Red Hat Slack #observability-operator-users and ping @obo-support-team.
  • Mailing list
  • Github Team: @rhobs/observability-operator-maintainers

About

Create Monitoring Stacks you need on your Kubernetes clusters!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 36