Skip to content

Conversation

@nssherpa
Copy link
Collaborator

@nssherpa nssherpa commented Jan 28, 2026

Testing

go build -o cachewd ./cmd/cachewd
OTEL_METRICS_ENABLED=true OTEL_METRICS_PORT=9102 ./cachewd
INF Constructing disk cache limit-mb=250000 evict-interval=1m0s root=./state/cache max-ttl=8h0m0s
INF Constructing tiered cache tiers=1
INF Git strategy initialized mirror_root=./state/git-mirrors fetch_interval=15m0s ref_check_interval=10s bundle_interval=24h0m0s
WRN No token configured for github-releases strategy
INF Initialized Go module proxy strategy proxy=https://proxy.golang.org
INF OpenTelemetry metrics initialized with Prometheus exporter service=cachewd
INF Starting cachewd bind=127.0.0.1:8080
INF Starting metrics server port=9102

Metrics exposed

Screenshot 2026-01-27 at 6 19 56 PM Screenshot 2026-01-27 at 6 17 52 PM
Test Summary
Local Testing
Build and Run:


go build -o dist/cachewd ./cmd/cachewd
./dist/cachewd --config cachew-local.hcl
Health Checks:

Main server (port 8080): ✓ OK
Metrics server (port 9102): ✓ OK
Metrics Endpoint Verification:


curl -s http://localhost:9102/metrics | grep -v '^#' | cut -d'{' -f1 | cut -d' ' -f1 | sort -u
Output:


http_server_duration_milliseconds_bucket
http_server_duration_milliseconds_count
http_server_duration_milliseconds_sum
http_server_request_size_bytes_total
http_server_response_size_bytes_total
otel_scope_info
target_info
Docker Testing
Build and Run:


./bin/just docker::build
docker run -d --name cachew-test -p 8081:8080 -p 9103:9102 \
  -v $(pwd)/cachew-local.hcl:/app/cachew.hcl:ro \
  cachew:local --config /app/cachew.hcl
Health Checks:

Main server (port 8081): ✓ OK
Metrics server (port 9103): ✓ OK
Metrics Endpoint Verification:


curl -s http://localhost:9103/metrics | grep -v '^#' | cut -d'{' -f1 | cut -d' ' -f1 | sort -u
Output:


http_server_duration_milliseconds_bucket
http_server_duration_milliseconds_count
http_server_duration_milliseconds_sum
http_server_request_size_bytes_total
http_server_response_size_bytes_total
otel_scope_info
target_info

@nssherpa nssherpa force-pushed the otel branch 5 times, most recently from c208d5e to 8e2160b Compare January 28, 2026 02:16
@nssherpa nssherpa changed the title feat: Introduce otel metrics feat: Plumb in otel metrics Jan 28, 2026
@nssherpa nssherpa marked this pull request as ready for review January 28, 2026 02:20
@nssherpa nssherpa requested a review from a team as a code owner January 28, 2026 02:20
@nssherpa nssherpa requested review from alecthomas and removed request for a team January 28, 2026 02:20
@nssherpa nssherpa marked this pull request as draft January 28, 2026 03:01
@nssherpa nssherpa force-pushed the otel branch 3 times, most recently from 52b20dc to 909bf1d Compare February 3, 2026 21:00
@nssherpa nssherpa marked this pull request as ready for review February 3, 2026 21:02
@nssherpa
Copy link
Collaborator Author

nssherpa commented Feb 3, 2026

Trying to see what the License Compliance issue is.

nssherpa and others added 2 commits February 3, 2026 15:19
Add OTLP HTTP exporter alongside existing Prometheus exporter to support
OSS deployments. Both exporters can be enabled simultaneously, with
OTLP using configurable endpoint and export intervals.

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
@nssherpa nssherpa enabled auto-merge (squash) February 4, 2026 05:46
@nssherpa nssherpa merged commit 8f75de0 into main Feb 4, 2026
4 of 5 checks passed
@nssherpa nssherpa deleted the otel branch February 4, 2026 05:47
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.

4 participants