Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BackupCornJobExecCount = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "backup_corn_job_exec_count", Help: "Corn Job执行次数", }, []string{"type"}) BackupCornSpendSecond = prometheus.NewSummaryVec(prometheus.SummaryOpts{ Name: "backup_corn_spend_second", Help: "执行corn所花费时间", }, []string{"type"}) BackupDataBackupCount = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "backup_data_backup_count", Help: "所有数据备份次数", }, []string{"type", "name"}) BackupDataBackupFailedCount = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "backup_data_backup_failed_count", Help: "所有数据备份失败次数", }, []string{"type", "name", "error"}) BackupDataBackupSpendSecond = prometheus.NewSummaryVec(prometheus.SummaryOpts{ Name: "backup_data_backup_spend_second", Help: "数据备份花费的时间", }, []string{"type", "name"}) BackupDirCreateCount = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "backup_dir_create_count", Help: "文件夹创建次数", }, []string{"type"}) BackupDirCreateFailedCount = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "backup_dir_create_failed_count", Help: "文件夹创建失败次数", }, []string{"type", "error"}) BackupDirRemoveCount = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "backup_dir_remove_count", Help: "文件夹删除次数", }, []string{"type"}) BackupDirRemoveFailedCount = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "backup_dir_remove_failed_count", Help: "文件夹删除失败次数", }, []string{"type", "error"}) BackupDirTotal = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Name: "backup_dir_total", Help: "文件夹存在的总数", }, []string{"type"}) )
Functions ¶
This section is empty.
Types ¶
type PromHttpServer ¶
type PromHttpServer struct {
Addr string `json:"addr"`
}
func (*PromHttpServer) Start ¶
func (phs *PromHttpServer) Start() error
Source Files
¶
- metrics.go
- server.go
Click to show internal directories.
Click to hide internal directories.