Repository navigation
Releases
Releases · theharithsa/dt-mac-agent
dt-mac-agent 0.1.5
Fixed
- Installer and auto-update could hang for minutes at "Downloading" when the network cannot reach one of
GitHub's CDN nodes (curl waited about 45s per attempt). All GitHub downloads now use an 8s connect timeout
with retries, so they move to a reachable node within seconds. Documented install commands do the same.
dt-mac-agent 0.1.4
Added
- MacOS Health Center dashboard (
Dashboard/) shipped with the agent and installed under<prefix>/dashboards/. - Installer can upload the dashboard to Dynatrace (prompt, or
DTMA_DASHBOARD=1+DTMA_DASHBOARD_TOKEN).
It uses the Document API with a fixed ID (dt-mac-agent-health-center), so re-uploads update in place.
Requires a platform token withdocument:documents:write. The token is used once and never stored. sudo dtmacctl dashboardto upload or refresh the dashboard at any time.- Troubleshooting guide entries for dashboard upload.
dt-mac-agent 0.1.3
Changed
DT_ENV_URLexamples, prompts and docs usehttps://<env-id>.live.dynatrace.com. The agent accepts.live.or
.apps.and derives the correct host for the token type (API token → live, platform token → apps).- README: token section lists the required scopes per feature (
metrics.ingest,settings.write,logs.ingest).
dt-mac-agent 0.1.2
Added
- Metric definitions now declare their dimensions, with display names (e.g.
process.executable.name→ "Process"),
through the Settings API (builtin:metric.metadata). Dimensions appear in the metric definition and in
Notebook/Data Explorer split pickers. The dimension catalog lives inlib/dimensions.tsv. - Needs
settings.write(API token) orsettings:objects:write(platform token). Without it, the agent logs a
warning and falls back to metadata lines (name, description and unit only).
dt-mac-agent 0.1.1
Added
- Installer verifies end-to-end connectivity after starting the agent: it waits for the first real metric batch,
reportsSuccessfully connected to Dynatrace environment <url>, and only then prints the success summary.
If log shipping is enabled, the first log upload is verified as well. Fails with a clear error if Dynatrace rejects the batch.
dt-mac-agent 0.1.0
Added
- Metric metadata: every metric is sent with a display name, description and unit (
dt.meta.*) at start-up,
after upgrades and daily. The catalog lives inlib/metrics.tsv, anddtmacctl metricslists it. - Auto-update: the watchdog checks GitHub releases once a day and installs newer versions after SHA-256
verification (AUTO_UPDATE=1, default). Manual:sudo dtmacctl update [--check]. - Optional shipping of the agent's own logs to Dynatrace Logs (
SEND_LOGS=1), with original timestamps,
log levels andservice.name=dt-mac-agent. - Installer prompts for install location, log shipping and auto-update (or
DTMA_PREFIX,DTMA_SEND_LOGS,
DTMA_AUTO_UPDATE). Installing to a custom location is validated for safe, root-owned parent directories. - New metrics:
process.instances,app.threads,app.memory.percent. New dimension:app.bundle.id.
Changed (breaking: metric keys and dimensions)
- Processes are grouped by executable name and owner. The
rank,top.byandpiddimensions are removed;
they split one process into many short, gappy series. The agent reports the union of the topTOP_Ngroups
by CPU and by memory. - Dimensions renamed to semantic names:
process.name→process.executable.name,user→process.owner,
mount/device→disk.mount/disk.device,disk→disk.device,interface→network.interface,
arch/hw.model→host.arch/host.model; addedos.typeandprocess.executable.path. agent.collect.seconds→agent.collect.duration;disk.io.*.time_ns.count→disk.io.*.time.count(unit NanoSecond).- Installer log lines use the same format as the other logs.
dt-mac-agent 0.0.2
Added
ingest.log: one line per batch sent to Dynatrace with line count, size, HTTP result, accepted/invalid lines,
collect/send duration, spool size and a per-category breakdown. Re-sent buffered batches are logged too.last-payload.txt: the most recent batch exactly as sent;dtmacctl payloadprints it.LOG_PAYLOADS=1option to append every full batch topayloads.log.install.log: the full installer output with timestamps.- The watchdog logs the result of every check, not only restarts.
dtmacctl logs [agent|ingest|watchdog|install] [-f].
Changed
- Logs moved from
/var/log/dt-mac-agentto/Library/Logs/dt-mac-agent, so they are visible in Console.app.
Runtime logs are readable withoutsudo(they never contain the token);install.logis readable by admin users. - Log timestamps use local time with the UTC offset.
dt-mac-agent 0.0.1
Added
- Collector daemon (
dt-mac-agent) that pushes metrics to the Dynatrace metrics ingest API every 60 s:
CPU, load, memory, swap, memory pressure, disk usage, inodes, disk I/O, network, TCP connections,
power and battery, thermal state, top 10 processes by CPU and by memory, and per-app aggregation of all running.appbundles. - Watchdog daemon (
dt-mac-watchdog) that restarts the agent when it is unloaded, stopped or hung (stale heartbeat). - On-disk spool that retries failed batches for up to 55 minutes.
- Support for platform tokens (
dt0s16.) and classic API tokens (dt0c01.). dtmacctlCLI: status, start, stop, restart, logs, test, send-test, config, uninstall.- One-line installer with SHA-256 release verification and a connection test before start-up.
- Log rotation via
newsyslog. - CI (shellcheck + macOS dry-run) and tag-based GitHub release workflow.