func readHostname() string {
	hostname, _ := os.Hostname()
	return hostname
}
readHostname returns the system hostname
package iopipe
import (
	"os"
	"github.com/shirou/gopsutil/cpu"
	"github.com/shirou/gopsutil/disk"
	"github.com/shirou/gopsutil/host"
	"github.com/shirou/gopsutil/mem"
	"github.com/shirou/gopsutil/process"
)
type cpuTimes struct {
	idle uint64
	nice uint64
	sys  uint64
	user uint64
	irq  uint64
}
type diskInfo struct {
	totalMiB       float64
	usedMiB        float64
	usedPercentage float64
}
type memInfo struct {
	available      uint64
	free           uint64
	total          uint64
	totalMiB       float64
	used           uint64
	usedMiB        float64
	usedPercentage float64
}
type pidStat struct {
	cstime uint64
	cutime uint64
	stime  uint64
	utime  uint64
}
type pidStatus struct {
	fdSize  int32
	threads int32
	vmRss   uint64
}
func readBootID() string {
	info, _ := host.Info()
	return info.HostID
}
func readDisk() *diskInfo {
	stat, _ := disk.Usage("/tmp")
	return &diskInfo{
		totalMiB:       float64(stat.Total) / float64(1<<20),
		usedMiB:        float64(stat.Used) / float64(1<<20),
		usedPercentage: stat.UsedPercent,
	}
}