@deliciousmonster/datadog-agent-binary 7.82.1-next.4 → 7.82.1-next.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +5 -5
  2. package/runtime/config.js +27 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deliciousmonster/datadog-agent-binary",
3
- "version": "7.82.1-next.4",
3
+ "version": "7.82.1-next.6",
4
4
  "description": "Harper component that runs the Datadog trace-agent and core-agent alongside a node, with pre-built binaries installed per platform",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -68,10 +68,10 @@
68
68
  },
69
69
  "homepage": "https://github.com/deliciousmonster/datadog-agent-binary#readme",
70
70
  "optionalDependencies": {
71
- "@deliciousmonster/datadog-agent-binary-linux-x86_64": "7.82.1-next.4",
72
- "@deliciousmonster/datadog-agent-binary-linux-arm64": "7.82.1-next.4",
73
- "@deliciousmonster/datadog-agent-binary-macos-arm64": "7.82.1-next.4",
74
- "@deliciousmonster/datadog-agent-binary-windows-x86_64": "7.82.1-next.4"
71
+ "@deliciousmonster/datadog-agent-binary-linux-x86_64": "7.82.1-next.6",
72
+ "@deliciousmonster/datadog-agent-binary-linux-arm64": "7.82.1-next.6",
73
+ "@deliciousmonster/datadog-agent-binary-macos-arm64": "7.82.1-next.6",
74
+ "@deliciousmonster/datadog-agent-binary-windows-x86_64": "7.82.1-next.6"
75
75
  },
76
76
  "lint-staged": {
77
77
  "*.{ts,js,json}": [
package/runtime/config.js CHANGED
@@ -78,6 +78,12 @@ function renderDatadogYaml(paths, ports) {
78
78
  "# Pinned because the core-agent verify reads expvar off this port. Measured on 7.82.1: the environment",
79
79
  "# outranks this file, so a set DD_EXPVAR_PORT wins and this only pins the port against a default that moves.",
80
80
  `expvar_port: ${ports.expvar}`,
81
+ "# Live Processes: every process on the node with its CPU, memory and command line, Harper and the agents",
82
+ "# included. Go, so it runs in this Python-free build; DD_PROCESS_CONFIG_PROCESS_COLLECTION_ENABLED=false",
83
+ "# turns it off, since the environment outranks this file.",
84
+ "process_config:",
85
+ " process_collection:",
86
+ " enabled: true",
81
87
  "apm_config:",
82
88
  " enabled: true",
83
89
  ` receiver_port: ${ports.receiver}`,
@@ -94,16 +100,27 @@ function renderDatadogYaml(paths, ports) {
94
100
 
95
101
  const HARPER_LOG_CHECK = "harper.d";
96
102
 
97
- /** A logs source for Harper's own log file: `logging.root` is `log` under the root path unless a node moved it. */
98
- function renderHarperLogSource(logFile) {
103
+ /**
104
+ * Log sources for what runs on this node: every log Harper writes under its log directory (`logging.root`
105
+ * is `log` under the root path unless a node moved it; the HTTP request log `http.logging` enables lands
106
+ * there too, under its own name), and the two agents' and the reaper's, which are the first thing an
107
+ * operator wants when the node stops reporting. Tailed only while logs are enabled (DD_LOGS_ENABLED=true).
108
+ */
109
+ function renderLogSources(harperLog, paths) {
110
+ const source = (path, service, source) => [
111
+ " - type: file",
112
+ ` path: ${yamlString(path)}`,
113
+ ` service: ${service}`,
114
+ ` source: ${source}`,
115
+ ];
99
116
  return [
100
117
  "# GENERATED by resources.js on every Harper worker start. Edits are overwritten.",
101
118
  "# Tailed only while logs are enabled (DD_LOGS_ENABLED=true).",
102
119
  "logs:",
103
- " - type: file",
104
- ` path: ${yamlString(logFile)}`,
105
- " service: harper",
106
- " source: harper",
120
+ ...source(join(dirname(harperLog), "*.log"), "harper", "harper"),
121
+ ...source(paths.coreLog, "datadog-agent", "datadog-agent"),
122
+ ...source(paths.traceLog, "datadog-trace-agent", "datadog-agent"),
123
+ ...source(paths.reaperLog, "datadog-agent-reaper", "harper-process-guard"),
107
124
  "",
108
125
  ].join("\n");
109
126
  }
@@ -179,11 +196,12 @@ export function prepareRuntime(componentDir, { ports, log }) {
179
196
  check.body;
180
197
  }
181
198
  const owned = new Set(checks.map((check) => check.dir));
182
- // Harper's own log as a log source, written whenever the root is known. The agent tails it only
183
- // when logs are on, which is DD_LOGS_ENABLED=true in the environment; off, this file costs nothing.
199
+ // Harper's own log and the agents' as log sources, written whenever the root is known. The agent
200
+ // tails them only when logs are on, which is DD_LOGS_ENABLED=true in the environment; off, this
201
+ // file costs nothing.
184
202
  if (root) {
185
203
  configFiles[join(paths.confd, HARPER_LOG_CHECK, "conf.yaml.default")] =
186
- renderHarperLogSource(join(root, "log", "hdb.log"));
204
+ renderLogSources(join(root, "log", "hdb.log"), paths);
187
205
  owned.add(HARPER_LOG_CHECK);
188
206
  }
189
207
  removeStaleDefaults(paths.confd, owned);