Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.

Chapter 2. Integrating OpenShift Serverless with the cost management service


You can integrate Serverless with the cost management service in OpenShift Container Platform to track and analyze costs for cloud and container workloads. The service uses the open source Koku project to offer cost visibility and insights.

You can review the required permissions and ensure that cost management is configured with an OpenShift Container Platform source before you proceed.

  • You have cluster administrator permissions.
  • You have set up cost management and added an on OpenShift Container Platform source.

2.2. Labels for cost management queries

You can apply labels, also known as tags in cost management, to nodes, namespaces, or pods. Each label consists of a key-value pair. Use combinations of labels to generate reports. You can access reports about costs by using the Red Hat hybrid console.

Nodes pass labels to namespaces, and namespaces pass them to pods. However, labels are not overridden if they already exist on a resource. For example, Knative services have a default app=<revision_name> label:

You get an output similar to the following example:

apiVersion: serving.knative.dev/v1
kind: Service
metadata:
  name: showcase
spec:
...
      labels:
        app: <revision_name>
...

If you define a namespace label such as app=my-domain, the cost management service excludes costs from a Knative service with the tag app=<revision_name> when you query by using the app=my-domain tag. Query those costs by using the app=<revision_name> tag.

Red Hat logoGithubredditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat Dokumentation

Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können. Entdecken Sie unsere neuesten Updates.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

Theme

© 2026 Red Hat
Nach oben