mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-12-21 07:56:07 +01:00
deadfef4c9
* Update vendor github.com/coreos/go-systemd/dbus@v15 * Update vendor github.com/ema/qdisc * Update vendor github.com/godbus/dbus * Update vendor github.com/golang/protobuf/proto * Update vendor github.com/lufia/iostat * Update vendor github.com/matttproud/golang_protobuf_extensions/pbutil@v1.0.0 * Update vendor github.com/prometheus/client_golang/... * Update vendor github.com/prometheus/common/... * Update vendor github.com/prometheus/procfs/... * Update vendor github.com/sirupsen/logrus@v1.0.3 Adds vendor golang.org/x/crypto * Update vendor golang.org/x/net/... * Update vendor golang.org/x/sys/... * Update end to end output.
33 lines
514 B
C
33 lines
514 B
C
typedef struct DriveStats DriveStats;
|
|
typedef struct CPUStats CPUStats;
|
|
|
|
enum {
|
|
NDRIVE = 16,
|
|
NAMELEN = 31
|
|
};
|
|
|
|
struct DriveStats {
|
|
char name[NAMELEN+1];
|
|
int64_t size;
|
|
int64_t blocksize;
|
|
|
|
int64_t read;
|
|
int64_t written;
|
|
int64_t nread;
|
|
int64_t nwrite;
|
|
int64_t readtime;
|
|
int64_t writetime;
|
|
int64_t readlat;
|
|
int64_t writelat;
|
|
};
|
|
|
|
struct CPUStats {
|
|
natural_t user;
|
|
natural_t nice;
|
|
natural_t sys;
|
|
natural_t idle;
|
|
};
|
|
|
|
extern int readdrivestat(DriveStats a[], int n);
|
|
extern int readcpustat(CPUStats *cpu);
|