Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ on:
tags:
- v*
workflow_dispatch:


permissions:

permissions:
packages: write

env:
OCI_URL: ghcr.io/sap
OCI_URL: ghcr.io/openmcp-project

jobs:
release_tag:
Expand Down Expand Up @@ -67,15 +67,15 @@ jobs:
uses: actions/setup-go@v5
with:
go-version-file: go.mod

- name: Build the ${{ github.repository }}
run: |
make reviewable
make build-docker-binary

- name: Build Images
run: |
IMG=ghcr.io/sap/metrics-operator:${{ env.version }} make docker-buildx
IMG=ghcr.io/openmcp-project/metrics-operator:${{ env.version }} make docker-buildx

- name: setup OCM
uses: open-component-model/ocm-setup-action@main
Expand All @@ -88,4 +88,4 @@ jobs:

- name: Push CTF
run: |
ocm transfer ctf --overwrite ./ctf ${{ env.OCI_URL }}
ocm transfer ctf --overwrite ./ctf ${{ env.OCI_URL }}
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

## Code of Conduct

All members of the project community must abide by the [SAP Open Source Code of Conduct](https://github.com/SAP/.github/blob/main/CODE_OF_CONDUCT.md).
All members of the project community must abide by the [SAP Open Source Code of Conduct](https://github.com/openmcp-project/.github/blob/main/CODE_OF_CONDUCT.md).
Only by respecting each other we can develop a productive, collaborative community.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting [a project maintainer](.reuse/dep5).
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [[email protected]](mailto:[email protected]) (SAP Open Source Program Office). All complaints will be reviewed and investigated promptly and fairly.

## Engaging in Our Project

Expand All @@ -30,7 +30,7 @@ The following rule governs code contributions:

* Contributions must be licensed under the [Apache 2.0 License](./LICENSE).
* Due to legal reasons, contributors will be asked to accept a Developer Certificate of Origin (DCO) when they create the first pull request to this project. This happens in an automated fashion during the submission process. SAP uses [the standard DCO text of the Linux Foundation](https://developercertificate.org/).
* Contributions must follow our [guidelines on AI-generated code](https://github.com/SAP/.github/blob/main/CONTRIBUTING_USING_GENAI.md) in case you are using such tools.
* Contributions must follow our [guidelines on AI-generated code](https://github.com/openmcp-project/.github/blob/main/CONTRIBUTING_USING_GENAI.md) in case you are using such tools.

## Issues and Planning

Expand Down
28 changes: 14 additions & 14 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -2,56 +2,56 @@
# This file is used to track the info used to scaffold your project
# and allow the plugins properly work.
# More info: https://book.kubebuilder.io/reference/project-config.html
domain: metrics.cloud.sap
domain: metrics.openmcp.cloud
layout:
- go.kubebuilder.io/v4
projectName: metrics-operator
repo: github.com/SAP/metrics-operator
repo: github.com/openmcp-project/metrics-operator
resources:
- api:
crdVersion: v1
namespaced: true
controller: true
domain: metrics.cloud.sap
domain: metrics.openmcp.cloud
kind: Metric
path: github.com/SAP/metrics-operator/api/v1alpha1
path: github.com/openmcp-project/metrics-operator/api/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
controller: true
domain: metrics.cloud.sap
domain: metrics.openmcp.cloud
kind: ManagedMetric
path: github.com/SAP/metrics-operator/api/v1alpha1
path: github.com/openmcp-project/metrics-operator/api/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
domain: metrics.cloud.sap
domain: metrics.openmcp.cloud
kind: RemoteClusterAccess
path: github.com/SAP/metrics-operator/api/v1alpha1
path: github.com/openmcp-project/metrics-operator/api/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
controller: true
domain: metrics.cloud.sap
domain: metrics.openmcp.cloud
kind: FederatedMetric
path: github.com/SAP/metrics-operator/api/v1alpha1
path: github.com/openmcp-project/metrics-operator/api/v1alpha1
version: v1beta1
- api:
crdVersion: v1
namespaced: true
domain: metrics.cloud.sap
domain: metrics.openmcp.cloud
kind: FederatedClusterAccess
path: github.com/SAP/metrics-operator/api/v1alpha1
path: github.com/openmcp-project/metrics-operator/api/v1alpha1
version: v1beta1
- api:
crdVersion: v1
namespaced: true
controller: true
domain: metrics.cloud.sap
domain: metrics.openmcp.cloud
kind: FederatedManagedMetric
path: github.com/SAP/metrics-operator/api/v1alpha1
path: github.com/openmcp-project/metrics-operator/api/v1alpha1
version: v1beta1
version: "3"
42 changes: 21 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![REUSE status](https://api.reuse.software/badge/github.com/SAP/metrics-operator)](https://api.reuse.software/info/github.com/SAP/metrics-operator)
[![REUSE status](https://api.reuse.software/badge/github.com/openmcp-project/metrics-operator)](https://api.reuse.software/info/github.com/openmcp-project/metrics-operator)

# Metrics Operator

Expand Down Expand Up @@ -144,13 +144,13 @@ graph LR

## Resource Type Descriptions:

- [**Metric**](config/crd/bases/metrics.cloud.sap_metrics.yaml): Monitors specific Kubernetes resources in the local or remote clusters using GroupVersionKind targeting
- [**ManagedMetric**](config/crd/bases/metrics.cloud.sap_managedmetrics.yaml): Specialized for monitoring Crossplane managed resources (resources with "crossplane" and "managed" categories)
- [**FederatedMetric**](config/crd/bases/metrics.cloud.sap_federatedmetrics.yaml): Monitors resources across multiple clusters, aggregating data from federated sources
- [**FederatedManagedMetric**](config/crd/bases/metrics.cloud.sap_federatedmanagedmetrics.yaml): Monitors Crossplane managed resources across multiple clusters
- [**RemoteClusterAccess**](config/crd/bases/metrics.cloud.sap_remoteclusteraccesses.yaml): Provides access configuration for monitoring resources in remote clusters
- [**FederatedClusterAccess**](config/crd/bases/metrics.cloud.sap_federatedclusteraccesses.yaml): Discovers and provides access to multiple clusters for federated monitoring
- [**DataSink**](config/crd/bases/metrics.cloud.sap_datasinks.yaml): Defines where and how metrics data should be sent, supporting various destinations like Dynatrace
- [**Metric**](config/crd/bases/metrics.openmcp.cloud_metrics.yaml): Monitors specific Kubernetes resources in the local or remote clusters using GroupVersionKind targeting
- [**ManagedMetric**](config/crd/bases/metrics.openmcp.cloud_managedmetrics.yaml): Specialized for monitoring Crossplane managed resources (resources with "crossplane" and "managed" categories)
- [**FederatedMetric**](config/crd/bases/metrics.openmcp.cloud_federatedmetrics.yaml): Monitors resources across multiple clusters, aggregating data from federated sources
- [**FederatedManagedMetric**](config/crd/bases/metrics.openmcp.cloud_federatedmanagedmetrics.yaml): Monitors Crossplane managed resources across multiple clusters
- [**RemoteClusterAccess**](config/crd/bases/metrics.openmcp.cloud_remoteclusteraccesses.yaml): Provides access configuration for monitoring resources in remote clusters
- [**FederatedClusterAccess**](config/crd/bases/metrics.openmcp.cloud_federatedclusteraccesses.yaml): Discovers and provides access to multiple clusters for federated monitoring
- [**DataSink**](config/crd/bases/metrics.openmcp.cloud_datasinks.yaml): Defines where and how metrics data should be sent, supporting various destinations like Dynatrace

## Installation

Expand All @@ -164,7 +164,7 @@ graph LR
Deploy the Metrics Operator using the Helm chart:

```bash
helm upgrade --install metrics-operator oci://ghcr.io/sap/github.com/sap/metrics-operator/charts/metrics-operator \
helm upgrade --install metrics-operator oci://ghcr.io/openmcp-project/github.com/openmcp-project/metrics-operator/charts/metrics-operator \
--namespace <operator-namespace> \
--create-namespace \
--version=<version>
Expand Down Expand Up @@ -207,7 +207,7 @@ This can be useful for tracking additional dimensions of the resource, such as f
The projections are then translated to dimensions in the metric.

```yaml
apiVersion: metrics.cloud.sap/v1alpha1
apiVersion: metrics.openmcp.cloud/v1alpha1
kind: Metric
metadata:
name: metric-pod-count
Expand All @@ -230,7 +230,7 @@ spec:
Managed metrics are used to monitor crossplane managed resources. They automatically track resources that have the "crossplane" and "managed" categories in their CRDs.

```yaml
apiVersion: metrics.cloud.sap/v1alpha1
apiVersion: metrics.openmcp.cloud/v1alpha1
kind: ManagedMetric
metadata:
name: managed-metric
Expand All @@ -248,7 +248,7 @@ spec:
Federated metrics deal with resources that are spread across multiple clusters. To monitor these resources, you need to define a `FederatedMetric` resource.
They offer capabilities to aggregate data as well as filtering down to a specific cluster or field using projections.
```yaml
apiVersion: metrics.cloud.sap/v1alpha1
apiVersion: metrics.openmcp.cloud/v1alpha1
kind: FederatedMetric
metadata:
name: xfed-prov
Expand Down Expand Up @@ -276,7 +276,7 @@ The pre-condition here is that if a resource comes from a crossplane provider, i


```yaml
apiVersion: metrics.cloud.sap/v1alpha1
apiVersion: metrics.openmcp.cloud/v1alpha1
kind: FederatedManagedMetric
metadata:
name: xfed-managed
Expand All @@ -300,7 +300,7 @@ The Metrics Operator can monitor both the cluster it's deployed in and remote cl
This remote cluster access resource can be used by `Metric` and `ManagedMetric` resources to monitor resources in the remote cluster.

```yaml
apiVersion: metrics.cloud.sap/v1alpha1
apiVersion: metrics.openmcp.cloud/v1alpha1
kind: RemoteClusterAccess
metadata:
name: remote-cluster
Expand All @@ -320,7 +320,7 @@ spec:
To monitor resources across multiple clusters, define a `FederatedClusterAccess` resource:

```yaml
apiVersion: metrics.cloud.sap/v1alpha1
apiVersion: metrics.openmcp.cloud/v1alpha1
kind: FederatedClusterAccess
metadata:
name: federate-ca-sample
Expand Down Expand Up @@ -388,7 +388,7 @@ The Metrics Operator uses DataSink custom resources to define where and how metr
Define a DataSink resource to specify the connection details and authentication for your metrics destination:

```yaml
apiVersion: metrics.cloud.sap/v1alpha1
apiVersion: metrics.openmcp.cloud/v1alpha1
kind: DataSink
metadata:
name: default
Expand Down Expand Up @@ -425,7 +425,7 @@ The `DataSinkSpec` contains the following fields:
All metric types support the `dataSinkRef` field to specify which DataSink to use:

```yaml
apiVersion: metrics.cloud.sap/v1alpha1
apiVersion: metrics.openmcp.cloud/v1alpha1
kind: Metric
metadata:
name: pod-count
Expand Down Expand Up @@ -495,15 +495,15 @@ For specific instructions on using your data sink's features, refer to its docum

## Support, Feedback, Contributing

This project is open to feature requests/suggestions, bug reports etc. via [GitHub issues](https://github.com/SAP/metrics-operator/issues). Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our [Contribution Guidelines](CONTRIBUTING.md).
This project is open to feature requests/suggestions, bug reports etc. via [GitHub issues](https://github.com/openmcp-project/metrics-operator/issues). Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our [Contribution Guidelines](CONTRIBUTING.md).

## Security / Disclosure
If you find any bug that may be a security problem, please follow our instructions at [in our security policy](https://github.com/SAP/metrics-operator/security/policy) on how to report it. Please do not create GitHub issues for security-related doubts or problems.
If you find any bug that may be a security problem, please follow our instructions at [in our security policy](https://github.com/openmcp-project/metrics-operator/security/policy) on how to report it. Please do not create GitHub issues for security-related doubts or problems.

## Code of Conduct

We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its [Code of Conduct](https://github.com/SAP/.github/blob/main/CODE_OF_CONDUCT.md) at all times.
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its [Code of Conduct](https://github.com/openmcp-project/.github/blob/main/CODE_OF_CONDUCT.md) at all times.

## Licensing

Copyright 2024 SAP SE or an SAP affiliate company and metrics-operator contributors. Please see our [LICENSE](LICENSE) for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available [via the REUSE tool](https://api.reuse.software/info/github.com/SAP/metrics-operator).
Copyright 2025 SAP SE or an SAP affiliate company and metrics-operator contributors. Please see our [LICENSE](LICENSE) for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available [via the REUSE tool](https://api.reuse.software/info/github.com/openmcp-project/metrics-operator).
5 changes: 2 additions & 3 deletions REUSE.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
version = 1
SPDX-PackageName = "metrics-operator"
SPDX-PackageSupplier = "[email protected]"
SPDX-PackageDownloadLocation = "https://github.com/SAP/metrics-operator"
SPDX-PackageDownloadLocation = "https://github.com/openmcp-project/metrics-operator"
SPDX-PackageComment = "The code in this project may include calls to APIs (\"API Calls\") of\n SAP or third-party products or services developed outside of this project\n (\"External Products\").\n \"APIs\" means application programming interfaces, as well as their respective\n specifications and implementing code that allows software to communicate with\n other software.\n API Calls to External Products are not licensed under the open source license\n that governs this project. The use of such API Calls and related External\n Products are subject to applicable additional agreements with the relevant\n provider of the External Products. In no event shall the open source license\n that governs this project grant any rights in or to any External Products,or\n alter, expand or supersede any terms of the applicable additional agreements.\n If you have a valid license agreement with SAP for the use of a particular SAP\n External Product, then you may make use of any API Calls included in this\n project's code for that SAP External Product, subject to the terms of such\n license agreement. If you do not have a valid license agreement for the use of\n a particular SAP External Product, then you may only make use of any API Calls\n in this project for that SAP External Product for your internal, non-productive\n and non-commercial test and evaluation of such API Calls. Nothing herein grants\n you any rights to use or access any SAP External Product, or provide any third\n parties the right to use of access any SAP External Product, through API Calls."

[[annotations]]
path = "**"
precedence = "aggregate"
SPDX-FileCopyrightText = "2024 SAP SE or an SAP affiliate company and metrics-operator contributors"
SPDX-FileCopyrightText = "2025 SAP SE or an SAP affiliate company and metrics-operator contributors"
SPDX-License-Identifier = "Apache-2.0"
4 changes: 2 additions & 2 deletions api/v1alpha1/groupversion_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ limitations under the License.

// Package v1alpha1 contains API Schema definitions for the insight v1 API group
// +kubebuilder:object:generate=true
// +groupName=metrics.cloud.sap
// +groupName=metrics.openmcp.cloud
package v1alpha1

import (
Expand All @@ -26,7 +26,7 @@ import (

var (
// GroupVersion is group version used to register these objects
GroupVersion = schema.GroupVersion{Group: "metrics.cloud.sap", Version: "v1alpha1"}
GroupVersion = schema.GroupVersion{Group: "metrics.openmcp.cloud", Version: "v1alpha1"}

// SchemeBuilder is used to add go types to the GroupVersionKind scheme
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}
Expand Down
4 changes: 2 additions & 2 deletions charts/metrics-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
replicaCount: 1

image:
repository: ghcr.io/sap/github.com/sap/metrics-operator/images/metrics-operator
repository: ghcr.io/openmcp-project/github.com/openmcp-project/metrics-operator/images/metrics-operator
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: v0.6.0-dev
Expand Down Expand Up @@ -108,7 +108,7 @@ rbac:
clusterRole:
rules:
- apiGroups:
- metrics.cloud.sap
- metrics.openmcp.cloud
resources:
- managedmetrics
- metrics
Expand Down
4 changes: 2 additions & 2 deletions charts/metrics-operator/values.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
replicaCount: 1

image:
repository: ghcr.io/sap/github.com/sap/metrics-operator/images/metrics-operator
repository: ghcr.io/openmcp-project/github.com/openmcp-project/metrics-operator/images/metrics-operator
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: $OPERATOR_VERSION
Expand Down Expand Up @@ -108,7 +108,7 @@ rbac:
clusterRole:
rules:
- apiGroups:
- metrics.cloud.sap
- metrics.openmcp.cloud
resources:
- managedmetrics
- metrics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.17.2
name: datasinks.metrics.cloud.sap
name: datasinks.metrics.openmcp.cloud
spec:
group: metrics.cloud.sap
group: metrics.openmcp.cloud
names:
kind: DataSink
listKind: DataSinkList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.17.2
name: federatedclusteraccesses.metrics.cloud.sap
name: federatedclusteraccesses.metrics.openmcp.cloud
spec:
group: metrics.cloud.sap
group: metrics.openmcp.cloud
names:
kind: FederatedClusterAccess
listKind: FederatedClusterAccessList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.17.2
name: federatedmanagedmetrics.metrics.cloud.sap
name: federatedmanagedmetrics.metrics.openmcp.cloud
spec:
group: metrics.cloud.sap
group: metrics.openmcp.cloud
names:
kind: FederatedManagedMetric
listKind: FederatedManagedMetricList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.17.2
name: federatedmetrics.metrics.cloud.sap
name: federatedmetrics.metrics.openmcp.cloud
spec:
group: metrics.cloud.sap
group: metrics.openmcp.cloud
names:
kind: FederatedMetric
listKind: FederatedMetricList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.17.2
name: managedmetrics.metrics.cloud.sap
name: managedmetrics.metrics.openmcp.cloud
spec:
group: metrics.cloud.sap
group: metrics.openmcp.cloud
names:
kind: ManagedMetric
listKind: ManagedMetricList
Expand Down
Loading
Loading