Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SongLee24/prometheus-exporter
/ functions
Functions
6 in github.com/SongLee24/prometheus-exporter
⨍
Functions
6
◇
Types & classes
1
↓ 2 callers
Function
newGlobalMetric
** * 函数:newGlobalMetric * 功能:创建指标描述符 */
collector/my_collector.go:29
↓ 1 callers
Method
GenerateMockData
** * 函数:GenerateMockData * 功能:生成模拟数据 */
collector/my_collector.go:79
Method
Collect
** * 接口:Collect * 功能:抓取最新的数据,传递给channel */
collector/my_collector.go:61
Method
Describe
** * 接口:Describe * 功能:传递结构体中的指标描述符到channel */
collector/my_collector.go:51
Function
NewMetrics
** * 工厂方法:NewMetrics * 功能:初始化指标信息,即Metrics结构体 */
collector/my_collector.go:38
Function
main
()
prometheus-exporter.go:25