# Cost Attribution in Discord's API

DevFeed: [Cost Attribution in Discord's API](<https://devfeed.tech/articles/cost-attribution-in-discord-s-api-206.md>)

Original publisher: [Read original article](<https://discord.com/blog/cost-attribution-in-discords-api>)

Author: Jim Benton

Published: 2026-06-30T00:00:00Z

Content type: article

Language: en

Sources: [Discord Blog](<https://devfeed.tech/sources/discord-blog.md>)

Topics: [API](<https://devfeed.tech/topics/api.md>), [Discord](<https://devfeed.tech/topics/discord.md>), [hosting](<https://devfeed.tech/topics/hosting.md>), [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>), [observability](<https://devfeed.tech/topics/observability.md>), [Instrumentation](<https://devfeed.tech/topics/instrumentation.md>), [Python](<https://devfeed.tech/topics/python.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [cost](<https://devfeed.tech/tags/cost.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [discord](<https://devfeed.tech/tags/discord.md>), [hosting](<https://devfeed.tech/tags/hosting.md>), [instrumentation](<https://devfeed.tech/tags/instrumentation.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [observability](<https://devfeed.tech/tags/observability.md>), [python](<https://devfeed.tech/tags/python.md>), [tooling](<https://devfeed.tech/tags/tooling.md>)

## AI overview

Discord describes a method for attributing API hosting costs to individual features and endpoints. By extending application profiling tooling, the team estimates costs from the time worker processes spend executing feature-related code, without changing the existing Kubernetes deployment topology.

## Source excerpt

Discord's API spans 1700+ endpoints across hundreds of Kubernetes deployments. The challenge: tracking per-feature hosting costs without restructuring. Jim Benton helps explain how Discord tackled the situation.