Discover Packages
gitee.com/super_sky/go_prometheus_basic_data
package
module
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Feb 7, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
go_prometheus_basic_data
介绍
向prometheus推送系统基础信息
软件架构
软件架构说明
安装教程
xxxx
xxxx
xxxx
使用说明
name
info
mem_sys
从系统获取到的总内存
mem_heap_idle
堆空闲(申请未使用)
mem_heap_inuse
使用中堆内存
mem_stack_sys
系统分配作为运行栈的内存
mem_stack_inuse
正在使用栈内存
mem_active_object
活跃的对象
sys_use_cpu
cpu使用情况平均值
sys_use_ram
内存使用情况平均值
sys_use_disk
磁盘使用情况平均值
mem_alloc
堆空间分配的字节数
参与贡献
Fork 本仓库
新建 Feat_xxx 分支
提交代码
新建 Pull Request
特技
使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md
Gitee 官方博客 blog.gitee.com
你可以 https://gitee.com/explore 这个地址来了解 Gitee 上的优秀开源项目
GVP 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
Gitee 官方提供的使用手册 https://gitee.com/help
Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 https://gitee.com/gitee-stars/
Expand ▾
Collapse ▴
Documentation
¶
type Cpu struct {
Cpus []float64 `json:"cpus"`
Cores int `json:"cores"`
UsedPercent float64 `json:"used_percent"`
}
type Disk struct {
UsedMB int `json:"usedMb"`
UsedGB int `json:"usedGb"`
TotalMB int `json:"totalMb"`
TotalGB int `json:"totalGb"`
UsedPercent float64 `json:"used_percent"`
}
type Ram struct {
UsedMB int `json:"usedMb"`
TotalMB int `json:"totalMb"`
UsedPercent float64 `json:"used_percent"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.