diff options
| author | Shulhan <ms@kilabit.info> | 2023-04-01 15:34:34 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-07-27 00:40:14 +0700 |
| commit | a91993b95c88cf489e2503b6c8c03cbd7e67e207 (patch) | |
| tree | 7b7679cbaf3e5d7226ead6a9f1678a0c28dc69fc /environment.go | |
| parent | 631dd476ac3fd7d7c8045b6e6ca59b63955bca67 (diff) | |
| download | rescached-a91993b95c88cf489e2503b6c8c03cbd7e67e207.tar.xz | |
[wip] cmd/rescached: add telemetry using questdbdev-telemetry
The telemetry collect the Go runtime/metrics and forward it to questdb
instance in localhost.
Diffstat (limited to 'environment.go')
| -rw-r--r-- | environment.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/environment.go b/environment.go index 1068ea9..85e584a 100644 --- a/environment.go +++ b/environment.go @@ -73,6 +73,12 @@ type Environment struct { FileResolvConf string `ini:"rescached::file.resolvconf"` WUIListen string `ini:"rescached::wui.listen"` + // Telemetry define the URI for sending telemetry. + // Format: "<forwarder>+<url>". + // For example, collecting telemetry to store in questdb at localhost, + // "questdb+tcp://127.0.0.1:9009" + Telemetry string `ini:"rescached::telemetry"` + HostBlockd map[string]*Blockd `ini:"block.d"` hostBlockdFile map[string]*dns.HostsFile hostsd map[string]*dns.HostsFile |
