Menu
Grafana Cloud
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. |
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.
JavaScript
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'],
},
ext: {
loadimpact: {
distribution: {
ashburnDistribution: { loadZone: 'amazon:us:ashburn', percent: 50 },
dublinDistribution: { loadZone: 'amazon:ie:dublin', percent: 50 },
},
},
},
};
export default function () {
http.get('https://test.k6.io/');
}
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:

Getting started with your metrics, logs, and traces in Grafana Cloud
Learn to use the best open source observability software (Grafana, Prometheus, Loki, and Tempo) without the overhead of managing and scaling your own stack.

Kubernetes monitoring, out-of-the-box with Grafana Cloud
In this webinar you’ll learn how Grafana offers developers and SREs a simple and quick-to-value solution for monitoring their Kubernetes infrastructure.

Unify your data with Grafana plugins: Datadog, Splunk, MongoDB, and more
In this webinar, learn how to leverage Grafana's plugin ecosystem for access to 80+ data sources, including plugins for Datadog, Splunk, MongoDB, and more.