Skip to content

fix(metering-and-billing): Correct meter payloads and UI steps in M&B onboarding guides [OM-426] - #6533

Open
gergely-kurucz-konghq wants to merge 8 commits into
mainfrom
fix/OM-426-mb-onboarding-guides
Open

fix(metering-and-billing): Correct meter payloads and UI steps in M&B onboarding guides [OM-426]#6533
gergely-kurucz-konghq wants to merge 8 commits into
mainfrom
fix/OM-426-mb-onboarding-guides

Conversation

@gergely-kurucz-konghq

@gergely-kurucz-konghq gergely-kurucz-konghq commented Aug 1, 2026

Copy link
Copy Markdown

Description

Corrects content errors in the two Konnect Metering & Billing onboarding guides found during an onboarding audit.

What

  • Meter payloads in both "Create a meter" steps rewritten to match the events the M&B plugin actually emits.
    • get-started: event_type: kong.api_request + full dimension set.
    • LLM traffic: event_type: kong.llm_request + full dimension set.
  • "Create a feature" steps: Meter dropdown now names an existing meter ("API requests" / "LLM Tokens"); Value field corrected to an entry, not a select.
  • "Create Customer" steps: added the mandatory Key field.
  • get-started subscription: button label fixed to Start Subscription.

Why

The old payloads used invalid event_types (request, prompt) with missing dimensions, so metering would not match plugin events and the tutorials would not produce billable usage. UI labels referenced meters and buttons that don't exist, and the mandatory Key field was omitted.

How

Payloads verified against the plugin source cloudevent.lua (kong.api_request / kong.llm_request and their emitted data fields) and the api_requests / llm_tokens meter templates. Both pages render-checked locally at 127.0.0.1:4000.

Files:

  • app/_how-tos/gateway/get-started-with-metering-and-billing.md
  • app/_how-tos/ai-gateway/meter-llm-traffic.md

Fixes https://konghq.atlassian.net/browse/OM-426

Preview Links

Checklist

  • Tested how-to docs. Render-verified both pages locally; not run as a full live traffic/invoice flow (automated_tests: false).
  • 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). — N/A, no new pages.

@netlify

netlify Bot commented Aug 1, 2026

Copy link
Copy Markdown

Deploy Preview for kongdeveloper ready!

Name Link
🔨 Latest commit b605c09
🔍 Latest deploy log https://app.netlify.com/projects/kongdeveloper/deploys/6a707859dca752000888f7e8
😎 Deploy Preview https://deploy-preview-6533--kongdeveloper.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

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

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

The "Create a meter" step used event_type `request` with only `method`
and `route` dimensions, which does not match the events emitted by the
Metering & Billing plugin for API Gateway traffic.

Update the payload to match the `api_requests` meter template
(Kong-env branch): event_type `kong.api_request` and the full dimension
set the plugin emits (request/response metadata plus Kong Gateway
identifiers). Verified against the plugin source cloudevent.lua
(create_api_event, type "kong.api_request").
In the "Create a feature" step, the Meter dropdown referenced a meter
name ("API Gateway Requests") that does not exist; update it to
"API requests" to match the meter created in the previous step.

Also correct the Value field instruction: it is a free-text entry, not
a select, so use "In the Value dropdown menu, enter" instead of
"From the Value dropdown menu, select".
The "Create Customer" flow omitted the mandatory Key field; add a step
to enter `kong-air` in the Key field.

Also fix the final button label: it reads "Start Subscription", not
"Create Subscription" (this also aligns with the LLM traffic guide).
The "Create a meter" step used event_type `prompt` with only `model`
and `type` dimensions, which does not match the events emitted by the
Metering & Billing plugin for LLM traffic.

Update the payload to match the `llm_tokens` meter template (Kong-env
branch): event_type `kong.llm_request` and the full dimension set the
plugin emits (request/LLM metadata plus Kong Gateway identifiers), with
`$.tokens` as the value property. Verified against the plugin source
cloudevent.lua (create_ai_event, type "kong.llm_request").
In the "Create a feature" step, the Meter dropdown referenced a meter
name ("AI Gateway Tokens") that does not exist; update it to
"LLM Tokens" to match the meter created in the previous step.
The "Create Customer" flow omitted the mandatory Key field; add a step
to enter `kong-air` in the Key field.
@gergely-kurucz-konghq
gergely-kurucz-konghq force-pushed the fix/OM-426-mb-onboarding-guides branch from e8faa2c to b605c09 Compare August 3, 2026 11:15
@gergely-kurucz-konghq
gergely-kurucz-konghq marked this pull request as ready for review August 3, 2026 11:50
@gergely-kurucz-konghq
gergely-kurucz-konghq requested a review from a team as a code owner August 3, 2026 11:50
@lena-larionova lena-larionova self-assigned this Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants