mirror of
https://github.com/dragonheim/gagent.git
synced 2025-04-26 02:18:59 -07:00
Adding preliminary support for Prometheus metrics.
This commit is contained in:
parent
00cd60ebec
commit
f543276b82
12 changed files with 209 additions and 31 deletions
|
@ -1,10 +1,11 @@
|
|||
package client
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"sync"
|
||||
"time"
|
||||
fmt "fmt"
|
||||
log "log"
|
||||
http "net/http"
|
||||
sync "sync"
|
||||
time "time"
|
||||
|
||||
gs "git.dragonheim.net/dragonheim/gagent/internal/gstructs"
|
||||
|
||||
|
@ -52,5 +53,9 @@ func Main(wg *sync.WaitGroup, config gs.GagentConfig, rid int, agent string) {
|
|||
// }
|
||||
// mu.Unlock()
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
|
||||
func pushAgent(config gs.GagentConfig) {
|
||||
http.Get(config.Routers[0].RouterAddr)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue