An open API service indexing awesome lists of open source software.

https://github.com/openmcp-project/usage-operator

The usage operator is used to capture usage of your customers using the MCP platform. It can be used in conjunction with a custom metering operator dedicated for your use case.
https://github.com/openmcp-project/usage-operator

controller kubernetes metering usage

Last synced: 4 months ago
JSON representation

The usage operator is used to capture usage of your customers using the MCP platform. It can be used in conjunction with a custom metering operator dedicated for your use case.

Awesome Lists containing this project

README

          

# usage-operator

[![REUSE status](https://api.reuse.software/badge/github.com/openmcp-project/usage-operator)](https://api.reuse.software/info/github.com/openmcp-project/usage-operator)

## About this project

The usage operator is used to capture usage of your customers using the MCP platform. It can be used in conjunction with a custom metering operator dedicated for your use case.

This operator can be used in conjunction with a metering-operator to charge your customers using your openMCP platform.
The operator exposes a Usage Resource which has aggregated usage stats about every MCP.

## Requirements and Setup

### Prerequisites

- go version v1.24.0+
- docker version 17.03+.
- kubectl version v1.11.3+.
- Access to a Kubernetes v1.11.3+ cluster.

### To Deploy on the cluster

**Build and push your image to the location specified by `IMG`:**

```sh
make docker-build docker-push IMG=/usage-operator:tag
```

**NOTE:** This image ought to be published in the personal registry you specified.
And it is required to have access to pull the image from the working environment.
Make sure you have the proper permission to the registry if the above commands don’t work.

**Install the CRDs into the cluster:**

```sh
make install
```

**Deploy the Manager to the cluster with the image specified by `IMG`:**

```sh
make deploy IMG=/usage-operator:tag
```

> **NOTE**: If you encounter RBAC errors, you may need to grant yourself cluster-admin
privileges or be logged in as admin.

**Create instances of your solution**
You can apply the samples (examples) from the config/sample:

```sh
kubectl apply -k config/samples/
```

>**NOTE**: Ensure that the samples has default values to test it out.

### To Uninstall

**Delete the instances (CRs) from the cluster:**

```sh
kubectl delete -k config/samples/
```

**Delete the APIs(CRDs) from the cluster:**

```sh
make uninstall
```

**UnDeploy the controller from the cluster:**

```sh
make undeploy
```

## Support, Feedback, Contributing

This project is open to feature requests/suggestions, bug reports etc. via [GitHub issues](https://github.com/openmcp-project/usage-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/openmcp-project/usage-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.

## Licensing

Copyright 2025 SAP SE or an SAP affiliate company and usage-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/usage-operator).