Skip to content

Commit

Permalink
prometheus port as parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
cha87de committed Feb 1, 2019
1 parent c22e1ec commit 1fec642
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func main() {

// Initialize connectors to TSDBs
if *exportPrometheus {
prometheusConnector := connectors.NewPrometheusConnector(":8383")
prometheusConnector := connectors.NewPrometheusConnector(*exportPrometheusBind)
prometheusConnector.Initialize()
}
if *exportInflux {
Expand Down
4 changes: 3 additions & 1 deletion options.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ var (

// prometheus options
// TODO listen on addr
exportPrometheus = flag.Bool("export.prometheus", false, "enable prometheus export endpoint")
exportPrometheus = flag.Bool("export.prometheus", false, "enable prometheus export endpoint")
exportPrometheusBind = flag.String("export.prometheusBind", ":8080", "Host/Port to bind prometheus exporter")

exportInflux = flag.Bool("export.influx", false, "enable influxdb push (requires further endpoint params)")
exportInfluxURL = flag.String("export.influxUrl", "", "Path to Influx DB")
exportInfluxUser = flag.String("export.influxUser", "", "Username for Influx")
Expand Down

0 comments on commit 1fec642

Please sign in to comment.