Adding preliminary support for Prometheus metrics.

This commit is contained in:
James Wells 2021-10-14 10:08:39 -07:00
parent 00cd60ebec
commit f543276b82
Signed by: jwells
GPG key ID: 73196D10B8E65666
12 changed files with 209 additions and 31 deletions

View file

@ -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)
}