Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BackupSize = prometheus.NewCounter( prometheus.CounterOpts{ Name: "prom_backup_size_count", Help: "The size in bytes of the latest snapshot", }, ) )
Functions ¶
Types ¶
type App ¶
type App struct {
ServerUrl string
SnapPath string
SnapDir string
SecondsToZero int // After SecondsToZero set the metric back to zero bytes
TarBallName string
ListenPort int
S3Region string
S3Bucket string
}
func (*App) CreateSnapShot ¶
func (*App) RunSnapShot ¶
func (app *App) RunSnapShot()
func (*App) UploadFile ¶
type SnapResponse ¶
Click to show internal directories.
Click to hide internal directories.