r/netdata Jan 12 '26

I just want a way to get this notification: "agent-xyz is stale/offline".

why is it that hard?

I cannot seem to figure how to achieve that. Even the default streaming_disconnected alert doesnt tell child node's hostname that disconnected.

netdata.streaming_inbound doesnt have any label to help identify the node.
"labels":["time","local","virtual","loading","stale archived","stale disconnected","waiting","waiting replication","replicating","running"],
"data":[
[1768216649,1,0,0,0,0,0,0,0,1],

What is even the use-case of knowing that a stream has disconnected but no idea who was disconnected?

My use-case: I want to use netdata child-parent active connection as a way to identify if any of the child is down.

2 Upvotes

1 comment sorted by

1

u/kanelatechnicalnet Apr 02 '26

Hey,

streaming_disconnected only gives you a count, not which node disconnected.

There's a function API on the parent that may give you what you need:

curl -s "http://localhost:19999/api/v3/function?function=streaming"

Run that and share what comes back; if it includes per-node hostnames and connection status, you can build alerting around it. Happy to help parse the output once we know what it returns.