launcher icon indicating copy to clipboard operation
launcher copied to clipboard

The `kolide_launcher_info` should expose runtime.

Open directionless opened this issue 1 year ago • 5 comments

I often want to see what the launcher runtime is. We should add that to the kolide_launcher_info table

directionless avatar May 02 '24 13:05 directionless

Do we want a new column go_version set to runtime.Version() for this issue? Or something else?

RebeccaMahany avatar Oct 21 '24 17:10 RebeccaMahany

Heh, I guess runtime is pretty ambiguous. I was thinking about uptime -- how old is this process.

But maybe there are good values from runtime that we should expose too.

(and yes, I think new columns)

directionless avatar Oct 21 '24 17:10 directionless

Ah, I see we even already pull some of those runtime values in this table -- probably don't need to do anything other than the uptime here, then.

Proposed requirements for issue:

  • On launcher startup, store the startup time (in the knapsack, or potentially in a new store like the OsqueryHistoryInstanceStore store if we think we might want to store history in the future)
  • Modify the kolide_launcher_info table to add a new column, uptime, which should be the number of seconds since the launcher startup time

RebeccaMahany avatar Oct 21 '24 18:10 RebeccaMahany

Sounds right. But....

  • Not sure we need launcher_uptime_friendly
  • The table is already launcher I'd call the column uptime no need to repeat it

directionless avatar Oct 21 '24 18:10 directionless

Updated!

RebeccaMahany avatar Oct 21 '24 19:10 RebeccaMahany