You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/_how-tos/get-started-with-metering-and-billing.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Get started with {{site.metering_and_billing}} in {{site.konnect_short_name}}
3
-
description: Learn how to...
3
+
description: Learn how to meter and monetize API Gateway requests with {{site.konnect_short_name}} and {{site.metering_and_billing}}.
4
4
content_type: how_to
5
5
6
6
permalink: /metering-and-billing/get-started/
@@ -36,7 +36,7 @@ prereqs:
36
36
inline:
37
37
- title: "{{site.konnect_short_name}} roles"
38
38
content: |
39
-
You need the [? role](/konnect-platform/teams-and-roles/#service-catalog) in {{site.konnect_short_name}} to configure {{site.metering_and_billing}}.
39
+
You need the [{{site.metering_and_billing}} Admin role](/konnect-platform/teams-and-roles/#metering-billing) in {{site.konnect_short_name}} to configure {{site.metering_and_billing}}.
40
40
icon_url: /assets/icons/kogo-white.svg
41
41
42
42
cleanup:
@@ -158,7 +158,7 @@ In this guide, you'll create a feature for the `example-service` you created in
158
158
1. In the {{site.metering_and_billing}} sidebar, click **Product Catalog**.
159
159
1. Click **Create Feature**.
160
160
1. In the **Name** field, enter `example-service`.
161
-
1. From the **Meter** dropdown menu, select "kong_konnect_api_request".
161
+
1. From the **Meter** dropdown menu, select "API Gateway Requests".
162
162
1. Click **Add group by filter**.
163
163
The group by filter ensures you only bill for traffic to `example-service`, not all {{site.base_gateway}} traffic. This lets you offer different pricing for different APIs.
164
164
1. From the **Group by** dropdown menu, select "service_name".
@@ -183,11 +183,10 @@ In this section, you'll create a Premium plan that grants paying customers acces
183
183
1. Click **Save**.
184
184
1. Click **Add Rate Card**.
185
185
1. From the **Feature** dropdown menu, select "example-service".
186
-
1. Click **Next**.
187
-
1. From the **Pricing model** dropdown menu, select "Usage Based".
188
-
1. In the **Price per package** field, enter `1`.
189
-
1. In the **Quantity per package** field, enter `5000`.
190
-
1. Click **Next**.
186
+
1. Click **Next Step**.
187
+
1. From the **Pricing model** dropdown menu, select "Usage based".
188
+
1. In the **Price per unit** field, enter `1`.
189
+
1. Click **Next Step**.
191
190
1. Click **Save Rate Card**.
192
191
1. Click **Publish Plan**.
193
192
@@ -204,7 +203,7 @@ Customers are the entities who pay for the consumption. In many cases, it's equa
204
203
1. Click the **Subscriptions** tab.
205
204
1. Click **Create a Subscription**.
206
205
1. From the **Subscribed Plan** dropdown, select "Premium".
207
-
1. Click **Next**.
206
+
1. Click **Next Step**.
208
207
1. Click **Create Subscription**.
209
208
210
209
<!--Note: Want to delete a customer? Cancel their subscription first and then you can delete them.-->
@@ -214,12 +213,13 @@ Customers are the entities who pay for the consumption. In many cases, it's equa
214
213
You can run the following command to test the that the Kong Air Consumer is invoiced correctly:
215
214
216
215
<!--vale off-->
217
-
{% validation rate-limit-check %}
218
-
iterations: 6
219
-
url: '/anything'
220
-
headers:
221
-
- 'apikey:air-key'
222
-
{% endvalidation %}
216
+
```sh
217
+
for_in {1..6};do
218
+
curl -i $KONNECT_PROXY_URL/anything \
219
+
-H "apikey:air-key"
220
+
echo
221
+
done
222
+
```
223
223
<!--vale on-->
224
224
225
225
This will generate six requests. Now, check the invoice that was created in {{site.metering_and_billing}}:
0 commit comments