Skip to content

Conversation

@Guaris
Copy link
Contributor

@Guaris Guaris commented Dec 4, 2025

Description

The Analytics pipeline in Metering is broken right now so the token usage wont actually show up in the invoice.

Preview Links

https://deploy-preview-3650--kongdeveloper.netlify.app/metering-and-billing/meter-llm-traffic/

Checklist

  • Tested how-to docs. If not, note why here.
  • All pages contain metadata.
  • Any new docs link to existing docs.
  • All autogenerated instructions render correctly (API, decK, Konnect, Kong Manager).
  • Style guide (capitalized gateway entities, placeholder URLs) implemented correctly.
  • Every page has a description entry in frontmatter.
  • Add new pages to the product documentation index (if applicable).

Guaris and others added 3 commits November 25, 2025 12:12
* subjects

* add schema

* Apply suggestions from code review

* appease vale

Signed-off-by: Diana <[email protected]>

---------

Signed-off-by: Diana <[email protected]>
Co-authored-by: Diana <[email protected]>
@Guaris Guaris requested a review from a team as a code owner December 4, 2025 20:47
@netlify
Copy link

netlify bot commented Dec 4, 2025

Deploy Preview for kongdeveloper ready!

Name Link
🔨 Latest commit 6689e22
🔍 Latest deploy log https://app.netlify.com/projects/kongdeveloper/deploys/693c790fb8c13d0008d7d8c8
😎 Deploy Preview https://deploy-preview-3650--kongdeveloper.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Guaris Guaris added the do not merge Issues/ PRs whose changes should not be merged at this time label Dec 4, 2025
tldr:
q: How can I meter LLM traffic in {{site.konnect_short_name}}, and what does the Metering & Billing system provide?
a: |
To meter LLM traffic in {{site.konnect_short_name}}, you can use the Metering & Billing system to track and invoice usage based on defined products, plans, and features. This guide walks you through setting up a Consumer, creating a meter for LLM tokens, defining a feature, creating a Plan with Rate Cards, and starting a subscription for billing.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to say "system"?

... you can use Metering & Billing to track...


## Create a Consumer

Before you configure metering and billing, you can set up a Consumer, Kong Air. [Consumers](/gateway/entities/consumer/) let you identify the client that's interacting with {{site.base_gateway}}. Later in this guide, you'll be mapping this Consumer to a customer in Metering & Billing and assigning them to a Premium plan. Doing this allows you map existing Consumers that are already consuming your APIs to customers to make them billable.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We refer to the product here, no?
metering and billing => Metering & Billing

@@ -0,0 +1,164 @@
---
title: Meter LLM traffic in {{site.konnect_short_name}}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Title says to meter LLM traffic but we also setup pricing for it and even launch a subscription.
So either:

  • Rename to "Monetize LLM Traffic"
  • Or remove "3. Create a feature" and onward steps except validation and add a step to "Query Meter"

If we only focus to metering, the steps would look as:

  1. Create a Consumer
  2. Enable metering on Control Plane
  3. Validate: Send Traffic
  4. Validate: Query Usage on Meter

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also a docs structural question because we cover monetization here already: #3504 so technically we don't have to do it here and we could keep this more focused to metering.

{% endentity_examples %}
<!--vale on-->

## Create a meter
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This step will change this week :/

  • We will pre-create meters for users so they don't have to
  • Users have to "Enable Metering" on Control Plane similar to Advanced Analytics (or in M&B, see docs/figma)

See new experience: https://docs.google.com/document/d/1SKMyQBTFjKyLklofM0269G_0e1mcGnSIbFHQjzSh7hQ/edit?tab=t.0#heading=h.tyodobk39d3g

We are building lots of onboarding around this, so for now I think it would be enough to say in the docs:

"Enable metering for the Control Plane where you want to track usage on"

Because of this step title should change to "Enable Metering".
We can chat more on Zoom/Slack about this.


## Create a Consumer

Before you configure metering and billing, you can set up a Consumer, Kong Air. [Consumers](/gateway/entities/consumer/) let you identify the client that's interacting with {{site.base_gateway}}. Later in this guide, you'll be mapping this Consumer to a customer in Metering & Billing and assigning them to a Premium plan. Doing this allows you map existing Consumers that are already consuming your APIs to customers to make them billable.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Before you configure metering and billing, you can set up a Consumer, Kong Air. [Consumers](/gateway/entities/consumer/) let you identify the client that's interacting with {{site.base_gateway}}. Later in this guide, you'll be mapping this Consumer to a customer in Metering & Billing and assigning them to a Premium plan. Doing this allows you map existing Consumers that are already consuming your APIs to customers to make them billable.
Before you configure Metering & Billing, you can set up a Consumer, Kong Air. [Consumers](/gateway/entities/consumer/) let you identify the client that's interacting with {{site.base_gateway}}. Later in this guide, you'll be mapping this Consumer to a customer in Metering & Billing and assigning them to a Premium plan. Doing this allows you map existing Consumers that are already consuming your APIs to customers to make them billable.

Comment on lines +14 to +15
paths:
- /chat
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
paths:
- /chat
paths:
- /chat

This was being rendered with "" which was causing problems

Base automatically changed from release/konnect-metering-and-billing to main December 17, 2025 19:59
@Guaris
Copy link
Contributor Author

Guaris commented Dec 23, 2025

@cloudjumpercat I'm going to assign this to you while I'm on PTO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge Issues/ PRs whose changes should not be merged at this time

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants