longview icon indicating copy to clipboard operation
longview copied to clipboard

Question on implementation - constant_push?

Open kmansoft opened this issue 6 years ago • 3 comments

Hello,

I'm making a Go port of Longview client here: https://github.com/kmansoft/longview-go

Have a question about constant_push

What is the meaning of this function? What does it do?

It seems (I added logging) that the client always just sends the most recent snapshot to the server and all historical averaging is handled by the server.

And so data->payload is a one-element array containing only just the most recently collected data item. There is no historical data on the agent side.

Is this correct?

kmansoft avatar Jun 13 '19 18:06 kmansoft

Another question I have is "dm" and "md" names in disk stats, is that for LVM / dmcrypt (hope I got these right)?

I'm not familar with that (as a user I mean) at all, always used "direct" partitions myself. Any hints on what the code is doing (for "dm" / "md") would be appreciated.

kmansoft avatar Jun 14 '19 19:06 kmansoft

https://superuser.com/questions/131519/what-is-this-dm-0-device https://linux.die.net/man/4/md

displague avatar Jun 20 '19 19:06 displague

https://superuser.com/questions/131519/what-is-this-dm-0-device https://linux.die.net/man/4/md

Right, thanks, the question was more about what the Linode Longview agent is doing with these, i.e. they're treated somewhat differently from "basic sdX devices", how differently exactly?

kmansoft avatar Jun 20 '19 20:06 kmansoft