Connect Netdata to Toolspoke
Query metrics, find anomalies and correlations, and review alert configuration across the nodes in a Netdata Cloud space. Toolspoke gives your agents 9 of its actions, and you decide which ones each project allows.
- Connection
- Provider REST API
- Authentication
- Cloud API token
- Actions exposed
- 9
- What a call bills
- Nothing
- Adapter
- Maintained by Toolspoke
- Category
- Observability
Connected in three steps
Install Netdata
Open the marketplace in your workspace, add Netdata to the project your agents work in, and it appears on the gateway immediately.
Connect the credential
Provide the credential Netdata asks for. Where to get it, and what it has to be able to reach, is the next section.
Give it to an agent
Describe the job in one sentence and the builder proposes the instructions, the toolkits it needs, a schedule and where it should answer, or start from a catalogue agent. It can use every Netdata action the project leaves on.
Where the agent answers
Slack
Ask it in a channel or a thread, and it replies in the thread it was asked in.
Email
Email it. Each write waits for a person's go-ahead unless that action is allowed in advance.
GitHub
Mention it on a pull request, and it answers there.
Schedule
A routine wakes it on a schedule, or when a new item matches.
Any agent in the project can use Netdata, and only the actions the project leaves on.
What Netdata asks for
Cloud API token. You provide it once, when you install the connector. Toolspoke encrypts it at rest and decrypts it only for the length of a single call, and the gateway attaches it to the outbound request itself, so it is never part of the arguments an agent sends.
- Cloud API tokenRequired
- Netdata Cloud → your profile picture (bottom left) → User Settings → API Tokens → create a token with scope:all. It is shown once. It has the same permissions as your own account.
- ndc.…
- Netdata Cloud URLOptional
- Leave blank for Netdata Cloud. Set it only for a Netdata Cloud On-Prem installation; it has to be publicly reachable.
- https://app.netdata.cloud
What an agent can do in Netdata
9 actions, each one declared by name in the connector. A workspace policy grants a person all of them, a hand-picked selection, everything on the read side, everything on the write side, or none.
7 read, 1 write, 1 destructive
Reads
7Fetches data and changes nothing.
list_spacesList the Netdata Cloud spaces this token's user belongs to, with their ids. Every other call takes a space id, and a token without API access fails here, which is why an install tests itself with it.
list_roomsList the rooms in a space, with their ids. Rooms group nodes; data, node and alert calls are scoped to one room.
list_room_nodesList every node in a room with its id, hostname, state (live, stale, offline), Netdata version and host details.
query_dataQuery time-series data for one or more metric contexts (e.g. system.cpu, disk.io) across a room's nodes, aggregated over time and grouped by dimension, instance, node or label. after and before are seconds, negative means relative to now, e.g. after -3600 for the last hour. Returns Netdata's json2 format.
find_correlated_metricsRank the metrics in a room by how much they changed in a window compared with a baseline. Netdata's metric correlations. Use it to answer 'what else changed when this spiked'. method volume is fast; ks2 compares distributions and is slower.
list_misconfigured_alertsList a room's alerts that are badly tuned, firing too often, stuck raised, silenced too long, or never dispatched to anyone. A good starting point for cleaning up alert noise.
list_silencing_rulesList a space's alert notification silencing rules, which alerts, nodes or rooms are muted, when, and until when.
Writes
1Creates or updates something on the other side.
create_silencing_ruleMute alert notifications for a time window, for maintenance, say, scoped by alert name, context, node, room or host label. Alerts still evaluate; only the notifications stop. A write rather than destructive because it expires at lasts_until and delete_silencing_rules removes it, but while it is active nobody is paged, so scope it narrowly.
Destructive
1Deletes or permanently alters something. Worth granting on purpose.
delete_silencing_rulesDelete silencing rules by id. Notifications they muted resume at once, and the rules cannot be restored, create them again if needed.
What it will not do
The gateway enforces each of these, so they can be stated flatly.
- It cannot call anything else
- The 9 actions above are the whole of it. A call to any other name is refused before it reaches Netdata rather than forwarded on, and connecting your account does not add to the list: it is fixed by the connector, not discovered at run time.
- It reaches no further than your credential
- Toolspoke holds no access to Netdata of its own. Every call carries the credential you stored and nothing besides, so whatever that credential cannot reach, this connector cannot reach either.
- It never hears from Netdata
- Nothing is pushed to it. There is no webhook, no subscription and no polling, so this connector cannot notice by itself that something changed in Netdata. An agent has to ask.
- It does not smooth over provider limits
- Toolspoke does not retry, queue or back off around Netdata's own rate limits. A call that Netdata refuses comes back to the agent as a failed call.
Before you connect it
What can an agent do in Netdata?
9 named actions: 7 that only read, 1 that write and 1 that delete or permanently alter something. They include list_spaces, list_rooms and list_room_nodes. Nothing outside that list is reachable: the connector declares each operation by name rather than proxying whatever an agent asks for.
What credentials does the Netdata connector need?
Cloud API token. The connector asks for cloud api token, and optionally netdata cloud url. Values are encrypted at rest and attached to the outbound request by the gateway, so they are never part of the arguments an agent sends and never reach the audit log.
How does an agent get to use Netdata?
Install Netdata in a project and every agent in that project can use the actions the project leaves on. Describe a job in one sentence and the builder proposes the instructions, the toolkits it needs, a schedule and where it should answer, or start from a catalogue agent. The agent answers when someone asks it in Slack, emails it or mentions it on a GitHub pull request, or when its routine wakes it.
What does the Netdata connector not do?
The 9 actions above are the whole of it. A call to any other name is refused before it reaches Netdata rather than forwarded on, and connecting your account does not add to the list: it is fixed by the connector, not discovered at run time. Toolspoke holds no access to Netdata of its own. Every call carries the credential you stored and nothing besides, so whatever that credential cannot reach, this connector cannot reach either. Nothing is pushed to it. There is no webhook, no subscription and no polling, so this connector cannot notice by itself that something changed in Netdata. An agent has to ask. Toolspoke does not retry, queue or back off around Netdata's own rate limits. A call that Netdata refuses comes back to the agent as a failed call.
Can I limit which actions an agent can call?
Yes, in two places. The project switches Netdata's actions on and off one at a time, for everyone in the project at once, and the screen groups them by read, write and destructive so turning off everything that deletes is one click. An individual agent key can then be narrowed further, to particular toolkits in a project and to particular actions in a toolkit. Whatever it was granted, a key never reaches a project its owner cannot.
What gets recorded when an agent calls Netdata?
Every attempt, with the agent that made it and the person that agent belongs to, the full request payload, the response payload, the status, the duration, and what the call cost in sandbox time and model tokens. Values whose key names a secret are masked out before the record is shown to anyone. An operation the connector marks as not retained never has its response body written at all, so the gateway keeps no second copy of what was read.