Skip to content

Commit

Permalink
Drop print statements
Browse files Browse the repository at this point in the history
Signed-off-by: eitah <eli@spantree.net>
  • Loading branch information
eitah committed Apr 7, 2022
1 parent 9cfdfb7 commit 1ad81b9
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions collectors/monitoring_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,6 @@ func (c *MonitoringCollector) reportMonitoringMetrics(ch chan<- prometheus.Metri
metricDescriptor.Type)
}

if metricDescriptor.DisplayName == "Stored bytes" {
fmt.Printf("\n start pre \n %+v \n\n\n\n", startTime.Format(time.RFC3339Nano))
fmt.Printf("\n\n end pre \n %+v \n\n\n\n", endTime.Format(time.RFC3339Nano))
}

if c.metricsIngestDelay &&
metricDescriptor.Metadata != nil &&
metricDescriptor.Metadata.IngestDelay != "" {
Expand All @@ -286,10 +281,6 @@ func (c *MonitoringCollector) reportMonitoringMetrics(ch chan<- prometheus.Metri
startTime = startTime.Add(ingestDelayDuration * -1)
}

if metricDescriptor.DisplayName == "Stored bytes" {
fmt.Printf("\n start post \n %+v \n\n\n\n", startTime.Format(time.RFC3339Nano))
fmt.Printf("\n\n end post \n %+v \n\n\n\n", endTime.Format(time.RFC3339Nano))
}
for _, ef := range c.metricsFilters {
if strings.Contains(metricDescriptor.Type, ef.Prefix) {
filter = fmt.Sprintf("%s AND (%s)", filter, ef.Modifier)
Expand Down Expand Up @@ -365,7 +356,6 @@ func (c *MonitoringCollector) reportMonitoringMetrics(ch chan<- prometheus.Metri
}

func (c *MonitoringCollector) reportTimeSeriesMetrics(

page *monitoring.ListTimeSeriesResponse,
metricDescriptor *monitoring.MetricDescriptor,
ch chan<- prometheus.Metric,
Expand Down

0 comments on commit 1ad81b9

Please sign in to comment.