Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v17] Update billing metrics doc with MWI information #52624

Merged
merged 1 commit into from
Feb 28, 2025
Merged
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
25 changes: 25 additions & 0 deletions docs/pages/usage-billing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,31 @@ hourly average. For example, if you were to create then delete 10 servers three
times in one hour, Teleport would display 10 servers at any given time. However,
for the entire hour, Teleport would report 30 protected servers.

### Machine and Workload Identities

The Machine and Workload Identity (MWI) metric is an aggregate of
* [Bots](reference/architecture/machine-id-architecture.mdx#what-is-a-bot)
* [Bot Instances](reference/architecture/machine-id-architecture.mdx#what-is-a-bot)
* [SPIFFE IDs](enroll-resources/workload-identity/spiffe.mdx#spiffe-ids-and-trust-domains)

We aggregate Bots, Bot Instances and unique SPIFFE IDs during each day on an hourly basis, and take
an hourly average to compute a daily Bot, Bot Instance and SPIFFE ID count. Then we average the daily
counts over a monthly period, which starts on the subscription start date and ends on each monthly
anniversary thereafter.

If you recreate a single Bot or Bot Instance more than once an hour, this will affect the
hourly average. For example, if you were to create then delete 10 Bots three
times in one hour, Teleport would display 10 Bots at any given time. However,
for the entire hour, Teleport would report 30 Bots.

For SPIFFE IDs, unique means that we only count a SPIFFE ID once during the calculation period,
even if it is used for multiple services. For example, if ten services running 24 hours per day
share the ID `spiffe://mydomain.cloud.gravitational.io/web-service`, Teleport would report that
as one SPIFFE ID for billing.

The sum of your calculated Bots, Bot Instances, and unique SPIFFE IDs is your
total MWI for the billing period.

## Usage measurement for billing

We aggregate all counts of the billing metrics on a monthly basis starting on
Expand Down
Loading