Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/grafana-cloud/testing/k6/author-run/cloud-scripting-extras/cloud-tags.md, or by sending Accept: text/markdown to https://grafana.com/docs/grafana-cloud/testing/k6/author-run/cloud-scripting-extras/cloud-tags/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at https://grafana.com/llms-full.txt.
Cloud tags
When a test runs in k6 Cloud, k6 adds two tags to all metrics. As with all tags in k6, you can use cloud tags to filter results.
| Tag name | Type | Description |
|---|---|---|
load_zone | string | The load zone from where the metric was collected. Values are in the form: amazon:us :ashburn. |
instance_id | number | A unique number that represents the ID of a load-generator server taking part in the test. |
By default, k6 only preserves instance_id in the following metrics: iterations, load_generator_cpu_percent, load_generator_file_handles,
load_generator_memory_percent, vus and vus_max.
You can use the keep_tags configuration option to retain it on other metrics.
The cloud tags are automatically added when collecting test metrics. They work as regular tags do. For example, you can filter the results for a particular load zone, or define a Threshold based on the results of a load zone.
import http from 'k6/http';
export const options = {
vus: 50,
duration: '30s',
thresholds: {
'http_req_duration{load_zone:amazon:us:ashburn}': ['p(95)<500'],
'http_req_duration{load_zone:amazon:ie:dublin}': ['p(95)<800'],
},
cloud: {
distribution: {
ashburnDistribution: { loadZone: 'amazon:us:ashburn', percent: 50 },
dublinDistribution: { loadZone: 'amazon:ie:dublin', percent: 50 },
},
},
};
export default function () {
http.get('https://quickpizza.grafana.com');
}Was this page helpful?
Related resources from Grafana Labs


