groupcache_datadog

module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2025 License: MIT

README

license Go Report Card Go Reference

groupcache_datadog

groupcache_datadog exports groupcache metrics to Datadog.

Usage

See example ./examples/groupcache-datadog-modernprogram/main.go.

Build example

git clone https://github.com/udhos/groupcache_datadog
cd groupcache_datadog
go install ./...

Running example

By default the example groupcache-datadog-modernprogram sends metrics to localhost:8125.

$ groupcache-datadog-modernprogram
2025/04/09 00:50:34 groupcache ttl: 30s
2025/04/09 00:50:34 groupcache my URL: http://127.0.0.1:5000
2025/04/09 00:50:34 INFO DD_AGENT_HOST=[] using DD_AGENT_HOST=localhost default=localhost
2025/04/09 00:50:34 groupcache server: listening on :5000
2025/04/09 00:50:34 INFO DD_AGENT_PORT=[] using DD_AGENT_PORT=8125 default=8125
2025/04/09 00:50:34 INFO DD_SERVICE=[] using DD_SERVICE=service-unknown default=service-unknown
2025/04/09 00:50:34 INFO DD_TAGS=[] using DD_TAGS= default=
2025/04/09 00:50:34 INFO NewDatadogClient host=localhost:8125 namespace=groupcache service=service-unknown tags=[service:service-unknown]
2025/04/09 00:50:34 getter: loading: key:/etc/passwd, ttl:30s
2025/04/09 00:50:34 INFO cache answer: bytes=2943 elapsed=50.548208ms, sleeping 5s

Directories

Path Synopsis
examples
groupcache-datadog-modernprogram command
Package main implements the example.
Package main implements the example.
Package exporter implements datadog exporter for groupcache.
Package exporter implements datadog exporter for groupcache.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL