meshStack

meshStack

  • User Docs
  • Administrator Docs
  • API Docs
  • Release Notes
  • Feedback

›OSB Services

Getting Started

  • How to get started with meshStack
  • AWS S3 Quickstart Guide
  • AKS Platform Quickstart Guide
  • AKS Developer Platform Guide

Concepts

  • Overview
  • Administration Roles
  • Onboarding
  • meshWorkspaces
  • meshProjects
  • meshTenants
  • Replication Configuration
  • Delete Tenants
  • meshUsers
  • meshPlatforms
  • Landing Zones
  • Open Service Brokers (OSB)
  • Guide: Emergency Users
  • Managing Tags
  • Policies
  • Unmanaged Tenants
  • meshStack Settings
  • Workspace Services
  • API Users
  • DNS and SSL Certificates
  • Customizing
  • Product Feedback Collection

Identity & Access

  • Identity and Access Management
  • Identity Provider
  • Identity Lookup
  • Authorization
  • User & Group LDAP Synchronisation
  • User & Group SCIM Synchronisation

Building Blocks

  • Building Blocks
  • Private Runners
  • Terraform/OpenTofu state managed by meshStack
  • Permission Delegation on AWS
  • Connecting meshStack and a Pipeline

Metering & Billing

  • Cost Management
  • Configuration

Amazon Web Services

  • Integration
  • Landing Zones
  • Metering
  • SSO Setup
  • Reserved Instances & Savings Plans Guide

Microsoft Azure

  • Integration
  • Landing Zones
  • Metering

Google Cloud Platform

  • Integration
  • Landing Zones
  • Metering

Cloud Foundry

  • Integration
  • Metering

Kubernetes

  • Integration
  • Landing Zones
  • Metering

GitHub

  • Pipeline Automation
  • Repository Provisioning

OpenShift

  • Integration
  • Landing Zones
  • Metering

OpenStack

  • Integration
  • Metering

OSB Services

  • Integration
  • Metering
  • meshcloud OSB API Profile
  • Tenant Services
  • Tutorial: Implement a Broker

Operations

  • Managed Service
  • Email
  • Logging & Auditing
  • Monitoring & Telemetry
  • Backup
  • Security FAQ

Guides

  • How to integrate a meshPlatform into meshStack
  • How to manually integrate AWS as meshPlatform
  • How to manually integrate Azure as meshPlatform
  • How to manually integrate GCP as meshPlatform
  • How to create your own platform
  • How to manage partner level permissions
  • How to use scoped API keys
  • How to setup and manage a Building block
Edit

Metering

meshStack supports metering of OSB Services. This allows Service Owners to collect charges using meshStack's multi-cloud chargeback process.

Product Catalog Configuration

Serice Owners that want to charge consumers of their services via meshStack need to expose cost information in the service catalog of their Service Broker implementations. meshStack metering will then automatically calculate charges and generate a Tenant Usage Report for each OSB Services Platform used in a meshProject.

In the context of OSB Services metering Service Owners are also called Sellers. The id of a seller is the identifier of the meshWorkspace that has registed the Service Broker with the meshMarketplace.

OSB API Service Catalog

The Service Broker's OSB API service catalog must provide cost information for each service plan as described in the OSB API spec. The code snippet below provides an example for describing the cost of a service plan.

{
  "plans":[
    {
      "id":"024f3452-67f8-40bc-a724-a20c4ea24b1c",
      "name":"bunny",
      "description":"A mid-sided plan.",
      "metadata":{
        "bullets":[
          "20 GB of messages",
          "20 connections"
        ],
        "costs":[
          {
            "amount":{
              "eur":99.0
            },
            "unit":"MONTHLY"
          },
          {
            "amount":{
              "usd":1000.00
            },
            "unit":"SETUP FEE"
          }
        ],
        "displayName":"Big Bunny"
      }
    }
  ]
}

meshStack interprets the costs property for each plan and automatically maintains corresponding entries in the meshStack metering product catalog.

meshStack relies on Service Owners to provide accurate cost information in their service plans. When generating Tenant Usage Reports, meshStack metering uses the latest available cost information in the meshStack product catalog. Service Owners must thus be careful to ensure that any price changes are communicated to service consumers in advance and get published in OSB API service catalogs after usage reports of the previous period were finalized.

The following sections detail how meshStack interprets OSB API plan cost objects to create meshStack metering product catalog entries.

Supported Unit Types

Cost objects in the OSB API specification support only a single unit field. However, service owners can specify multiple cost objects for each plan so that different types a single service instance can incur multiple different types of charges simultaneously.

Service Brokers must not publish multiple cost objects with the same unit value on any given service plan, i.e. a unit value can only be used once per plan.

Time-based Units

meshStack supports the following unit values for time-based metering.

HOURLY
DAILY
WEEKLY
MONTHLY
YEARLY

meshStack metering normalizes all time units specified in OSB API service catalogs to an hourly rate using the following conversion table:

unithours
HOURLY1 h
DAILY24 h
WEEKLY24 h * 7
MONTHLY30 * 24 h
YEARLY365 * 24 h

Service instances are charged for each started hour using the normalized hourly rate from the moment a user initiates provisioning of the service instance until it is deleted.

Quantity-based Units

Direct support for charging based on quantity units (e.g., "GB of messages stored") is not available. However, you can report custom cost data using the meshResourceUsageReports API to meshStack.

Setup Fees

Setup fees allow service owners to charge consumers a flat-fee for provisioning a new service instance. This is useful if provisioning a service instance incurs a specific one-time overhead (e.g. because it's a very expensive operation or even involves manual work).

Service Owners need to use the following unit value to designate a setup fee:

SETUP FEE

Note that service plans can have multiple cost objects, so it's possible to e.g. charge an initial setup fee for a service instance while also charing a monthly usage fee.

Flat Fees

meshStack metering will interpret any other unit type value not specified above as a "flat fee". Flat fees always incur the same charge in each reporting period, regardless of the length that the service instance was actually used in the period. For example, a service instance that was provisioned on the last day of reporing period #1 and deleted on the first day of reporting period #2 would incur a full charge of the flat fee in each reporting period.

Configuring "out of scope" Sellers

Partners can mark sellers as "out of scope" via configuration. Once a seller is marked as out of scope, the costs for that seller's products will be set to zero in the meshStack metering product catalog.

The line items for the seller will appear in the usage reports and chargeback statements with an appended "Out of Scope" suffix on the usage type. The total column for those line items will be zero, but the used quantity will be shown correctly.

This feature can be used for services for which usage should be tracked but the chargeback process is not yet completely established.

The following configuration options are available at mesh.kraken.meshMarketplace:

```dhall let MeshMarketplace = {- outOfScopeMarketplaceSellers: A list of seller ids that are "out of scope" for meshMarketplace metering. All usage rates for service plans published by these sellers will be replaced with 0.0.
        Note: Seller id's are the meshWorkspace identifiers of the meshWorkspace owning the Service Broker
        registration
-}
  { outOfScopeMarketplaceSellers : List Text }
<!--Example-->
```dhall
let example
    : MeshMarketplace
    = { outOfScopeMarketplaceSellers = [ "demo-seller" ] }

Reviewing Metering Data

Metering & Usage information for Service Owners is available for your Service Brokers from the "Service Broker" tab in your workspace control plane.

You see a list of all plans of your Service Broker's services provisioned in projects per period (usually monthly). This information is available individually per OSB Services platform you published your Service Broker to. Click the "Metering & Usage" Button of the according Service Broker to see the Metering & Usage data. You can filter by several criteria like period or service name.

The screen provides you with information about:

  • Which workspaces and projects are using your services?
  • How long have certain plans been used in projects?
  • What are the costs per plan and project for one period?

Seller Usage Report (CSV Export)

All the metering usage data for your services can be downloaded as CSV. This is called a seller usage report in meshcloud because the service owner acts as a seller on the OSB Services platform.

The download can be triggered directly from Metering & Usage information page. The data transformations like sorting and filtering are also included. Additional meta information can be configured beneath the metering usage information. This information will only be visible within the exported CSV document.

Last updated on 4/17/2025
← Previousmeshcloud OSB API Profile →
  • Product Catalog Configuration
    • OSB API Service Catalog
    • Supported Unit Types
    • Configuring "out of scope" Sellers
  • Reviewing Metering Data
  • Seller Usage Report (CSV Export)
meshStack
Docs
User DocumentationAdministrator DocumentationSecurity FAQ
Get in Touch
SupportWebsiteLinkedIn
More
Release NotesGitHub
Copyright © 2025 meshcloud GmbH