Questo contenuto non è disponibile nella lingua selezionata.

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

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi. Esplora i nostri ultimi aggiornamenti.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita il Blog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

Theme

© 2026 Red Hat
Torna in cima