-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Description
Problem
I need to push metrics that requires mutual TLS authentication with client certificates. The current implementation in push.go
uses a private HTTP client that can't be customized from outside the package.
This creates a dilemma:
- Either modify the global HTTP DefaultTransport (which affects all HTTP clients in the application)
- Or create a custom pusher with a custom HTTP client with specific TLS configuration
Question
Has anyone else needed to push metrics to the storage endpoint requiring client certificates or custom TLS configurations? How have you solved this problem?
Potential Solutions
I see a few possible ways to address this:
- Add a
CustomClient
field to the existingPushOptions
struct - Create new functions that accept a custom HTTP client
I'd appreciate any guidance on the best approach that aligns with the project's design philosophy before submitting a pull request.
emuntean-godaddy
Metadata
Metadata
Assignees
Labels
No labels