AgentSources
Sources
What the agent reads, what each source runs, and the access it needs.
Each source runs the vendor's own tool, without a shell, with the access of whoever runs the agent. Read access is enough everywhere. Several sources can run in one agent.
| Option | Runs | Needs |
|---|---|---|
--kubernetes | kubectl get … -A -o json, then Secrets | the built-in view role; Secrets optional |
--azure | az graph query (Azure Resource Graph) | az login, the Reader role |
--terraform <dir> | terraform show -json in that folder | terraform init has run there |
--nmap <range> | nmap -sV --traceroute | nmap; root for the traceroute |
--file <path> | a file you collected yourself | |
--demo | the sample environments built into the agent | nothing |
--grafana <url> | Grafana's data source API | a Viewer service-account token |
On a schedule
Add --every 15m (or 1h, 90s) to collect again on a schedule. Without it, the agent
collects once when it starts, then whenever FlowShape asks.
node flowshape-agent.mjs --key <key> --kubernetes --terraform ./infra --every 15m