Skip to content

Commit

Permalink
labelled temporary function
Browse files Browse the repository at this point in the history
  • Loading branch information
okankoAMZ committed Oct 14, 2024
1 parent e8e509d commit b67d022
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/inputs/prometheus/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ var (
func init() {
prometheus.MustRegister(v.NewCollector("prometheus"))
}

// @TODO: REMOVE BEFORE RELEASE
func debugScrapeManager(logger log.Logger, scrapeManager *scrape.Manager) {
for {
for key, targets := range scrapeManager.TargetsAll() {
Expand All @@ -94,6 +96,8 @@ func debugScrapeManager(logger log.Logger, scrapeManager *scrape.Manager) {
time.Sleep(5 * time.Second)
}
}

// @TODO: REMOVE BEFORE RELEASE
func debugChannelWrapper(logger log.Logger, in <-chan map[string][]*targetgroup.Group, out chan<- map[string][]*targetgroup.Group) {
for {
select {
Expand Down

0 comments on commit b67d022

Please sign in to comment.