Commit Graph

15 Commits

Author SHA1 Message Date
Tyler Yahn 1c687598a6
Release v0.17.0 (#580)
* Release v0.17.0

* Update CHANGELOG
2021-02-18 07:26:39 -08:00
Tyler Yahn bc8b54dea6
Update default branch name to main (#567)
* Update default branch name to main

* Update README.md
2021-02-04 19:24:20 -05:00
Anthony Mirabella 65367f2b37
Prepare v0.16.0 release (#523)
* Prepare v0.16.0 release

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* Fix Cortex exporter histogram sumamrization

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* Avoid double closing a done channel

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* Treat cortex histogram bucket counts as floats since they will be coerced to float64 anyways

* Remove unused test helper

* Fix datadog example test

* Fix TraceState comparisons in propagator tests
2021-01-14 22:20:00 -05:00
Tyler Yahn f284e2828c
Release v0.14.0 (#461)
* Bump version to v0.14.0

* Update code to use otel v0.14.0

* Go mod tidy

* Update changelog
2020-11-20 18:03:45 -08:00
Anthony Mirabella e84d6d6575
Update to API v0.12.0 (#363)
* Update to API v0.12.0

* Update CHANGELOG.md

* Fix references to contrib/propagators module
2020-09-25 12:04:47 -04:00
Eric Lee b7beb0f53b
[Prometheus Remote Write Exporter for Cortex] Add Enhancements and Fixes (#326)
* Add default quantiles, update config tests, and add quantile tests

* Change sendRequest test to use non-empty request and verify the payload

* Refactor createLabelSet to use label.KeyValue instead of strings

* Refactor ConvertToTimeSeries to add the correct labels for histogram and distribution timeseries

* Change createTimeSeries to use specified NumberKind and update conversion functions

* Remove validCheckpointSet test

* Change mock time to milliseconds for conversion tests

* Fix error where results in TestConvertToTimeSeries weren't being compared

* Update convertFromSum, convertFromLastValue tests to use multiple values

* Add tests for quantiles and distributions in utils module

* Update docker-compose and reduce sleep time in main.go for example project

* Fix docker-compose to pass CI test

* Run make precommit

* Update default Config quantiles

* Update tests to match new quantile defaults

* Run make precommit
2020-09-08 13:23:29 -07:00
Eric Lee 1f7546cabd
[Prometheus Remote Write Exporter for Cortex] Add TLS Support and Default HTTP Client (#255)
* Start buildClient for creating a default HTTP client

* Add TestBuildClient and first subtest

* Update TestBuildClient with TLS server, TLS Config, and Proxy URL

* Add methods for loading user-supplied certificates

* Add buildTLSConfig for creating a new TLS Config struct

* Add TLS Config and Proxy URL to buildClient, and update TestBuildClient

* Add additional tests for TestBuildClient

* Add helper function for generating certificate files

* Add helper function for generating CA certificate files

* Add helper function for generating serving certificate files

* Add helper function for generating client certificate files

* Add part of integration test with certificate creation and TLS server

* Add helper function for creating the test server's TLS Config struct

* Update TestMutualTLS by adding TLS Config to server and client

* Run make precommit and fix lint errors

* Adjust test for BuildClient

* Change certificate loading functions into inline conditionals

* Change ProxyURL to be a url.URL instead of a string

* Add check for InsecureSkipVerify to avoid parse errors

* Change client Transport to use http.DefaultTransport as base

* Change require.Nil to require.NoError for error checks

* Change require.Error to assert.Error in some areas

* Write certificate and key files directly instead of to memory first

* Update DialContext timeout and KeepAlive for retrying CI test

* Revert increase to DialContext timeout and keepalive to retry CI test
2020-08-26 16:35:31 -07:00
Anthony Mirabella 7e7d7798a8
Release v0.11.0 (#282)
* Fix non-portable sed invocation in pre_release.sh

* Fixes due to API changes

* Update CHANGELOG.md
2020-08-25 11:46:24 -04:00
Eric Lee f2ec169abb
[cortex] Authentication Implementation and Timestamp Fix (#246)
* Create auth.go, auth_test.go and add copyright and license

* Add helper function to create files for testing

* Setup authentication tests and add first test for BasicAuth

* Add BasicAuth and error definitions

* Add additional tests for BasicAuth

* Add file creation to pass basic auth tests

* Add bearer token tests

* Add bearer token authentication

* Adjust timestamp to milliseconds and remove debugging print statement

* Run make precommit and fix lint issues

* Changed error strings to start with lowercase letter

* Add explicit base time unit to timestamp

* Moved basic auth validation and validation tests to config.go

* Update comments for clarity
2020-08-20 15:29:02 -07:00
Connor Lindsey 453f28e704
Cortex: Add support for histogram and distribution (#237)
* Cortex: Add support for histogram and distribution

* Cortex: Switch to HistogramDistribution Processor

* Update exporters/metric/cortex/cortex.go

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>

* Update exporters/metric/cortex/cortex.go

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>

* Update exporters/metric/cortex/cortex.go

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>

* Update exporters/metric/cortex/cortex.go

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>

* Fix comment and remove count map

* Make precommit

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2020-08-18 11:43:22 -07:00
Connor Lindsey 818b3374b7
Cortex: Remove sanitize call (#215)
Remove sanitize call for Prometheus reserved labels like __name__.
2020-08-13 10:41:09 -07:00
Connor Lindsey b948cd3708
Add convertToTimeseries (#211) 2020-08-12 21:19:38 -07:00
Eric Lee 6fd38b9586
Cortex Exporter Send Pipeline (#210)
* Add addHeaders for adding headers to a HTTP request and TestAddHeaders

* Add buildMessage for creating a compressed protobuf message and tests

* Add buildRequest for creating the HTTP request and TestBuildRequest

* Add sendRequest, TestSendRequest, and test helper function

* Run make precommit

* Change test helper function name, adjust comments, run make precommit
2020-08-12 10:42:32 -07:00
Eric Lee 020b7b5f90
Cortex Exporter Setup Pipeline and Configuration (#205)
* Add Config struct definition, test files, and testing data

* Add tests for Validate method

* Implement Validate method

* Add Config utility files and testing data

* Add helper function to create YAML files for testing

* Add NewConfig function, Options interface, and tests

* Add Viper tags to Config struct and two With functions

* Add test for WithFilepath

* Add WithClient and test for WithClient

* Remove default for http client and adjust tests

* Add check for conflicting authentication types and update tests

* Update README.md

* Run make precommit

* Add example Config struct

* Add NewRawExporter for creating an Exporter and TestNewRawExporter

* Add NewExportPipeline for creating a controller and TestNewExportPipeline

* Add InstallNewPipeline and TestInstallNewPipeline

* Update README and run make precommit
2020-08-11 23:20:09 -07:00
Connor Lindsey 8daa8cbb44
Cortex Exporter Project setup (#202)
* Add Exporter interface

* Add sanitize and license to all source files

* Run make precommit
2020-08-11 08:02:52 -07:00