Skip to content

Commit

Permalink
stray logs
Browse files Browse the repository at this point in the history
  • Loading branch information
tgeoghegan committed May 20, 2024
1 parent 3cb2207 commit a98adf6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ func main() {
var metricsFactory MetricsFactory

if prometheusConfigJSON := os.Getenv(prometheusConfigVariable); prometheusConfigJSON != "" {
log.Printf("prometheus config: %s", prometheusConfigJSON)
var prometheusConfig PrometheusConfig
if err := json.Unmarshal([]byte(prometheusConfigJSON), &prometheusConfig); err != nil {
log.Fatalf("Failed to parse Prometheus config: %s", err)
Expand All @@ -283,7 +282,6 @@ func main() {
metricsTimeout, err := strconv.ParseInt(getStringEnv(statsdTimeoutVariable, "100"), 10, 64)
if err != nil {
log.Fatalf("Failed parsing metrics timeout: %s", err)
metricsTimeout = 100
}
client, err := createStatsDClient(metricsHost, metricsPort, int(metricsTimeout))
if err != nil {
Expand Down
3 changes: 0 additions & 3 deletions prometheus_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"time"

"github.com/prometheus/client_golang/prometheus"
//"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/prometheus/client_golang/prometheus/promhttp"
)

Expand Down Expand Up @@ -47,8 +46,6 @@ type PrometheusMetricsFactory struct {
}

func NewPrometheusMetricsFactory(config PrometheusConfig) (MetricsFactory, error) {
log.Printf("prometheus config: %+v\n", config)

serveMux := http.NewServeMux()
serveMux.Handle(config.ScrapePath, promhttp.Handler())
server := http.Server{
Expand Down

0 comments on commit a98adf6

Please sign in to comment.