Skip to content

Commit

Permalink
Listen on port 7071 to match JMX exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse R. Adams committed Aug 14, 2017
1 parent 637e1ed commit 94e0059
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,12 @@ for os in $os_list; do
done
cd ..

cd prometheus
go get
for os in $os_list; do
echo "Building metrics_exporter for $os"
GOOS=$os go build -o ../build/metrics_exporter.${os}.amd64
done
cd ..

echo "Done"
2 changes: 1 addition & 1 deletion prometheus/metrics_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,5 @@ func RetrievePrometheusMetrics() {
func main() {
go RetrievePrometheusMetrics()
http.HandleFunc("/metrics", PublishPrometheusMetrics)
log.Fatal(http.ListenAndServe(":9045", nil))
log.Fatal(http.ListenAndServe(":7071", nil))
}

0 comments on commit 94e0059

Please sign in to comment.