monitor

package module
v0.0.0-...-28a4d68 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2022 License: MIT Imports: 5 Imported by: 0

README

monitor

介绍

集成监控工具,方便项目调试、监控资源

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(port int)

Init 初始化监控 port 监控访问端口 pprof: 使用命令查看 http://$host:$port/debug/pprof

可视化需要graphviz支持,下载:http://www.graphviz.org/download/,bin加入到环境变量
使用命令查看 go tool pprof -http=:8081 http://$host:$port/debug/pprof/heap

charts: 访问 http://$host:$port/debug/charts/ prometheus: 访问 http://$host:$port/metrics 方案来源参考:https://blog.csdn.net/qq_39787367/article/details/107505006

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL