Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
Clean up a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
idiamond-stripe committed Jul 7, 2018
1 parent be2f63d commit a4088c0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions pkg/aws/metadata/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ func NewWebServer(config *ServerConfig, finder k8s.RoleFinder, credentials sts.C

func buildHTTPServer(config *ServerConfig, finder k8s.RoleFinder, credentials sts.CredentialsProvider, policy server.AssumeRolePolicy) (*http.Server, error) {
router := mux.NewRouter()
// TODO: Fix this
router.Handle("/metrics", exp.ExpHandler(metrics.DefaultRegistry))
router.Handle("/ping", http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) { fmt.Fprint(w, "pong") }))

h := &healthHandler{config.MetadataEndpoint}
Expand Down
5 changes: 0 additions & 5 deletions pkg/prometheus/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package prometheus

import (
"context"
"fmt"
"net/http"
"time"

Expand All @@ -18,10 +17,6 @@ type TelemetryServer struct {
sync time.Duration
}

func prometheusMetrics(w http.ResponseWriter, req *http.Request) {
fmt.Fprintf(w, "This is a test!")
}

// NewServer creates a prometheus text format HTTP metrics server
func NewServer(subsystem, listenAddr string, syncInterval time.Duration) *TelemetryServer {
mux := http.NewServeMux()
Expand Down

0 comments on commit a4088c0

Please sign in to comment.