Skip to content

Commit

Permalink
don't expose --namespace override
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-deboer committed Jan 11, 2017
1 parent a435c71 commit ecb2f8d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ var (
marathonUri = flag.String(
"marathon.uri", "http://marathon.mesos:8080",
"URI of Marathon")

namespace = flag.String(
"namespace", "marathon",
"Namespace -- used to prefix all metric names with '{namespace}_'")
)

func marathonConnect(uri *url.URL) error {
Expand Down Expand Up @@ -87,7 +83,7 @@ func main() {
time.Sleep(retryTimeout)
}

exporter := NewExporter(&scraper{uri}, *namespace)
exporter := NewExporter(&scraper{uri}, defaultNamespace)
prometheus.MustRegister(exporter)

http.Handle(*metricsPath, prometheus.Handler())
Expand Down

1 comment on commit ecb2f8d

@dylanmei
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, thanks. Nice work btw.

Please sign in to comment.