Log agent activity
When an agent
connects on the server, it should be logged in the TSDB :
- the measurement should be named
activity
+(organization UUID) - two fields should be:
-
agent
with the UUID of the agent -
type
with the RPC name
-
On the other hand, the agent
message in the API should include a last_activity
field containing the timestamp of the last event from this activity table for the agent
.
See discussion for details.
-
Create Unary Interceptor to log incoming connection from agent only -
Inject log in the TSDB -
Add last_activity
inagent
API message
Edited by Julien Andrieux