Menu

Milestone 4 Complete — OTLP HTTP Exporter for Heka Insights Agent
🖼️

Milestone 4 Complete — OTLP HTTP Exporter for Heka Insights Agent

DEV Community·Farhan Munir·7 months ago
#ILR79t7D
#unit#integration#python#opensource#tests
Reading 0:00
15s threshold

In this milestone, I completed the OTLP HTTP exporter implementation for Heka Insights Agent and validated it with both unit tests and Docker-backed integration tests.

Repo: https://github.com/ronin1770/heka-insights-agent

What was implemented in Milestone 4

Milestone 4 includes:

OTLP HTTP exporter wiring

OTLP metric payload mapping

OTLP auth header support

OTLP resource attribute mapping

Retry/backoff behavior for transient failures

Unit test coverage for config + sender + exporter + mapping

Docker integration tests against a real OpenTelemetry Collector

Configuration added

OTLP configuration is environment-driven through .env :

LOG_LOCATION=./log/heka_agent.log CPU_POLL_INTERVAL_SECONDS=10 EXPORTER_TYPE=otlp_http OTLP_HTTP_ENDPOINT=http://localhost:4318/v1/metrics OTLP_HTTP_HEADERS=key=Bearer abcd1234 OTLP_RESOURCE_ATTRIBUTES=service.name=heka-insights-agent,host.name=localhost OTLP_HTTP_TIMEOUT_SECONDS=10 OTLP_HTTP_RETRY_MAX_ATTEMPTS=5 OTLP_HTTP_RETRY_INITIAL_BACKOFF_SECONDS=1…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.