Skip to content

Commit

Permalink
Make StatsD configurable
Browse files Browse the repository at this point in the history
Agent StatsD server is now configurable using the new `enableStatsd`
config option. It's disabled by default.
  • Loading branch information
luismiramirez committed Oct 27, 2021
1 parent 67d7fc1 commit 1e35cf8
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 14 deletions.
26 changes: 13 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
bump: "patch"
---

Add new config option to enable/disable StatsD server in the AppSignal agent. This new config option is called `enableStatsd` and is set to `false` by default. If set to `true`, the AppSignal agent will start a StatsD server on port 8125 on the host.
3 changes: 3 additions & 0 deletions packages/nodejs/src/config/configmap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const ENV_TO_KEY_MAPPING: { [key: string]: string } = {
APPSIGNAL_WORKING_DIRECTORY_PATH: "workingDirectoryPath",
APPSIGNAL_ENABLE_HOST_METRICS: "enableHostMetrics",
APPSIGNAL_ENABLE_MINUTELY_PROBES: "enableMinutelyProbes",
APPSIGNAL_ENABLE_STATSD: "enableStatsd",
APPSIGNAL_SKIP_SESSION_DATA: "skipSessionData",
APPSIGNAL_FILES_WORLD_ACCESSIBLE: "filesWorldAccessible",
APPSIGNAL_REQUEST_HEADERS: "requestHeaders",
Expand All @@ -47,6 +48,7 @@ export const PRIVATE_ENV_MAPPING: { [key: string]: string } = {
_APPSIGNAL_WORKING_DIR_PATH: "workingDirPath",
_APPSIGNAL_WORKING_DIRECTORY_PATH: "workingDirectoryPath",
_APPSIGNAL_ENABLE_HOST_METRICS: "enableHostMetrics",
_APPSIGNAL_ENABLE_STATSD: "enableStatsd",
_APPSIGNAL_HOSTNAME: "hostname",
_APPSIGNAL_CA_FILE_PATH: "caFilePath",
_APPSIGNAL_DNS_SERVERS: "dnsServers",
Expand All @@ -71,6 +73,7 @@ export const JS_TO_RUBY_MAPPING: { [key: string]: string } = {
workingDirPath: "working_dir_path",
workingDirectoryPath: "working_directory_path",
enableHostMetrics: "enable_host_metrics",
enableStatsd: "enable_statsd",
hostname: "hostname",
caFilePath: "ca_file_path",
dnsServers: "dns_servers",
Expand Down
1 change: 1 addition & 0 deletions packages/nodejs/src/interfaces/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export interface AppsignalOptions {
workingDirectoryPath: string
enableHostMetrics: boolean
enableMinutelyProbes: boolean
enableStatsd: boolean
skipSessionData: boolean
filesWorldAccessible: boolean
requestHeaders: string[]
Expand Down
2 changes: 1 addition & 1 deletion test/integration/diagnose

0 comments on commit 1e35cf8

Please sign in to comment.