Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prometheus Remote Write Exporter (2/7) #9

Closed

Conversation

AzfaarQureshi
Copy link

@AzfaarQureshi AzfaarQureshi commented Nov 20, 2020

Description

This is PR 2/7 of adding a Prometheus Remote Write Exporter in Python SDK and address Issue open-telemetry/opentelemetry-python#1302

Part 1/7

  • Adds class skeleton
  • Adds all function signatures

👉 Part 2/7

  • Adds validation of exporter constructor commands
  • Add unit tests for validation

Part 3/7

  • Adds conversion methods from OTel metric types to Prometheus TimeSeries
  • Add unit tests for conversion

Part 4/7

  • Adds methods to export metrics to Remote Write endpoint
  • Add unit tests for exporting

Part 5/7

  • Add support for optional request parameters (timeout, proxy)
  • Add support for tls config

Part 6/7

  • Add integration tests using sample app and instance of Cortex

Part 7/7

  • Add README, Design Doc and other necessary documentation.

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

  • Added class TestValidation in test_prometheus_remote_write_exporter.py

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

  • Followed the style guidelines of this project
  • Changelogs have been updated (change logs will be updated when PR 7/7 is merged and the RW exporter is complete)
  • Unit tests have been added
  • Documentation has been updated
    cc- @shovnik, @alolita

@AzfaarQureshi AzfaarQureshi force-pushed the 1-prometheus-remote-write branch from e4d0c7d to e164355 Compare November 20, 2020 00:31
@AzfaarQureshi AzfaarQureshi changed the base branch from master to SetupPrometheusRWExporter November 20, 2020 00:31
@AzfaarQureshi AzfaarQureshi force-pushed the 1-prometheus-remote-write branch from e164355 to 7f668f8 Compare November 20, 2020 00:37
@shovnik shovnik force-pushed the SetupPrometheusRWExporter branch from fd01931 to 1e035c1 Compare November 20, 2020 00:37
@AzfaarQureshi AzfaarQureshi force-pushed the 1-prometheus-remote-write branch from 7f668f8 to a32026b Compare November 20, 2020 00:39
@AzfaarQureshi AzfaarQureshi changed the title 1 prometheus remote write Prometheus Remote Write Exporter (2/7) Nov 20, 2020
@shovnik shovnik force-pushed the 1-prometheus-remote-write branch from a32026b to 6ab3822 Compare November 20, 2020 01:04
@AzfaarQureshi AzfaarQureshi force-pushed the 1-prometheus-remote-write branch from 6ab3822 to 20055b8 Compare November 20, 2020 18:00
@shovnik shovnik force-pushed the SetupPrometheusRWExporter branch from c709a39 to 17997d5 Compare November 20, 2020 18:13
@AzfaarQureshi AzfaarQureshi force-pushed the 1-prometheus-remote-write branch from 20055b8 to a2b265b Compare November 20, 2020 18:20
@shovnik shovnik force-pushed the SetupPrometheusRWExporter branch from 17997d5 to a1f5c7d Compare November 20, 2020 18:26
@AzfaarQureshi AzfaarQureshi force-pushed the 1-prometheus-remote-write branch from a2b265b to e56a4da Compare November 20, 2020 18:27
@shovnik shovnik force-pushed the 1-prometheus-remote-write branch from e56a4da to 18a25f4 Compare November 20, 2020 18:34
Copy link

@alolita alolita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants