Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.66 KB

README.md

File metadata and controls

40 lines (27 loc) · 1.66 KB

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.