remote_write

module
v0.0.0-...-6d63e44 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2021 License: Apache-2.0

README

Prometheus Remote Write Compliance Test

This repo contains a set of tests to check compliance with the Prometheus Remote Write specification.

The test suit works by forking an instance of the sender with some config to scrape the test running itself and send remote write requests to the test suite for a fixed period of time. The test suit than examines the received requests for compliance.

Running the test

The test is a vanilla Golang unit test, and can be run as such. To run all the tests:

$ go test --tags=compliance -v ./

To run all the tests for a single target:

$ go test --tags=compliance -run "TestRemoteWrite/prometheus/.+" -v ./

To run a single test across all the targets:

$ go test --tags=compliance -run "TestRemoteWrite/.+/Counter" -v ./

Remote Write Senders

The repo tests the following remote write senders:

If you want to test a dev version of your sender, simply put your binary in bin/.

To add another sender, see the examples in the targets director and recreate that pattern in a PR.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL