Safe Haskell | None |
---|---|
Language | Haskell2010 |
Creates a scribe as a Custom Forwarder for Datadog that sends log messages over TCP via their TLS endpoint.
Synopsis
- newtype APIKey = APIKey {}
- data DatadogScribeSettings = DatadogScribeSettings {}
- data DatadogAuth
- directAPIConnectionParams :: ConnectionParams
- localAgentConnectionParams :: PortNumber -> ConnectionParams
- mkDatadogScribeSettings :: ConnectionParams -> DatadogAuth -> IO DatadogScribeSettings
- mkDatadogScribe :: DatadogScribeSettings -> PermitFunc -> Verbosity -> IO Scribe
Types
When writing directly to the main intake API, you must specify an API key
data DatadogScribeSettings Source #
DatadogScribeSettings | |
|
data DatadogAuth Source #
NoAuthLocal | Writing to the local agent, no auth required |
DirectAuth APIKey | Writing directly to the main intake API over TLS . API Key is required. Using a local agent is recommended. |
directAPIConnectionParams :: ConnectionParams Source #
Configured for secure TLS communication to the main intake API at intake.logs.datadoghq.com:10516. Must be combined with DirectAuth authentication.
localAgentConnectionParams :: PortNumber -> ConnectionParams Source #
Configure to talk to a local Datadog agent at 127.0.0.1. TLS is not utilized. This is the preferred type of connection because authentication, buffering, and other more advanced features are handled by the agent configuration.
Scribe construction
mkDatadogScribeSettings :: ConnectionParams -> DatadogAuth -> IO DatadogScribeSettings Source #
Reasonable defaults. Sets a 30s connection timeout, 1 stripe of
connections with a number of connections per stripe equal to
getNumCapabilities
. Retry policy will do an exponential backoff
with a 25ms base delay for up to 5 retries for a total cumulative delay of 775ms
:: DatadogScribeSettings | |
-> PermitFunc | Function on whether to permit items, e.g. |
-> Verbosity | Verbosity level to observe |
-> IO Scribe |