mirror of https://github.com/statping/statping
vue
parent
9f4c74933d
commit
a889511c3d
|
@ -1,40 +0,0 @@
|
||||||
package main
|
|
||||||
|
|
||||||
import (
|
|
||||||
"github.com/hunterlong/statping/types"
|
|
||||||
"net/http"
|
|
||||||
)
|
|
||||||
|
|
||||||
type PluginObj types.PluginInfo
|
|
||||||
|
|
||||||
var Plugin = PluginObj{
|
|
||||||
Info: &types.Info{
|
|
||||||
Name: "Example Plugin",
|
|
||||||
Description: "This is an example plugin for Statping Status Page application. It can be implemented pretty quick!",
|
|
||||||
},
|
|
||||||
Routes: []*types.PluginRoute{{
|
|
||||||
Url: "/setuper",
|
|
||||||
Method: "GET",
|
|
||||||
Func: SampleHandler,
|
|
||||||
}},
|
|
||||||
}
|
|
||||||
|
|
||||||
func main() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
func SampleHandler(w http.ResponseWriter, r *http.Request) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
func (e *PluginObj) OnLoad() error {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (e *PluginObj) GetInfo() *types.Info {
|
|
||||||
return e.Info
|
|
||||||
}
|
|
||||||
|
|
||||||
func (e *PluginObj) Router() []*types.PluginRoute {
|
|
||||||
return e.Routes
|
|
||||||
}
|
|
|
@ -0,0 +1,34 @@
|
||||||
|
global:
|
||||||
|
scrape_interval: 15s
|
||||||
|
evaluation_interval: 15s
|
||||||
|
|
||||||
|
scrape_configs:
|
||||||
|
- job_name: 'statping'
|
||||||
|
scrape_interval: 15s
|
||||||
|
bearer_token: 'TESTAPISECRETKEY'
|
||||||
|
static_configs:
|
||||||
|
- targets: ['statping:8080']
|
||||||
|
|
||||||
|
- job_name: 'statping_mysql'
|
||||||
|
scrape_interval: 15s
|
||||||
|
bearer_token: 'TESTAPISECRETKEY'
|
||||||
|
static_configs:
|
||||||
|
- targets: ['statping_mysql:8080']
|
||||||
|
|
||||||
|
- job_name: 'statping_postgres'
|
||||||
|
scrape_interval: 15s
|
||||||
|
bearer_token: 'TESTAPISECRETKEY'
|
||||||
|
static_configs:
|
||||||
|
- targets: ['statping_postgres:8080']
|
||||||
|
|
||||||
|
- job_name: 'statping_latest'
|
||||||
|
scrape_interval: 15s
|
||||||
|
bearer_token: 'TESTAPISECRETKEY'
|
||||||
|
static_configs:
|
||||||
|
- targets: ['statping_latest:8080']
|
||||||
|
|
||||||
|
- job_name: 'statping_vue'
|
||||||
|
scrape_interval: 15s
|
||||||
|
bearer_token: 'TESTAPISECRETKEY'
|
||||||
|
static_configs:
|
||||||
|
- targets: ['statping_vue:8080']
|
Loading…
Reference in New Issue