You are browsing as a guest. Sign up (or log in) to start making projects!

Open comments for this post

1h 9m 58s logged

heartbeats πŸ’“

now the lil bro (agent) can send heartbeats!
wow so i am new to go and just discovering the beautiful package based folder structure, makes a lot of sense!

so i made a function to send api request to, a function to construct heartbeat by getting system info and UUID is passed from GetConfig() function, and a function to get sys info which includes hostname, os name, and kernel version

at first i thought of adding os version instead but getting os version was kinda a pain so i just switched it to kernel version, might add os version later

image 1: heartbeats being sent
image 2: data from postgres, you can see the registered_at vs last_seen (which gets updated from heartbeats)

0
20

Comments 0

No comments yet. Be the first!