Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thmshmm/xk6-opentelemetry

k6 extension to generate OpenTelemetry signals for load testing
https://github.com/thmshmm/xk6-opentelemetry

k6 k6-extension opentelemetry xk6

Last synced: 4 months ago
JSON representation

k6 extension to generate OpenTelemetry signals for load testing

Awesome Lists containing this project

README

        

# xk6-opentelemetry logo xk6-opentelemetry

The xk6-opentelemetry project is a [k6 extension](https://k6.io/docs/extensions/guides/what-are-k6-extensions/) that enables k6 users to generate random [OpenTelemetry signals](https://opentelemetry.io/docs/reference/specification/glossary/#signals) (metrics, logs, traces) for testing purposes.

Check the [examples](./examples/) directory which contains some scripts to get started.

## Features

- Generate
- ExportLogsServiceRequest
- ExportMetricsServiceRequest (Types: gauge, sum, histogram)
- ExportTraceServiceRequest
- Set resource attributes

## Usage

### Docker

The easiest way to get started is to build the provided Docker image and run k6 scripts inside the container.

Build the image:
```
docker build -t xk6-opentelemetry .
```

Run a local k6 script:
```
docker run --rm -i xk6-opentelemetry run - .js
```

Run all examples:
```
task run-examples
```