mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-26 14:46:35 +00:00
Merge pull request #8 from carlpett/new-port
Change default port to 9182
This commit is contained in:
@@ -29,7 +29,7 @@ See [Wiki](https://github.com/martinlindhe/wmi_exporter/wiki/TODO)
|
|||||||
go build .
|
go build .
|
||||||
.\wmi_exporter.exe
|
.\wmi_exporter.exe
|
||||||
|
|
||||||
The prometheus metrics will be exposed on [localhost:9129](http://localhost:9129)
|
The prometheus metrics will be exposed on [localhost:9182](http://localhost:9182)
|
||||||
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ func (c *WmiExporter) Collect(ch chan<- prometheus.Metric) {
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
var (
|
var (
|
||||||
addr = flag.String("telemetry.addr", ":9129", "host:port for WMI exporter")
|
addr = flag.String("telemetry.addr", ":9182", "host:port for WMI exporter")
|
||||||
metricsPath = flag.String("telemetry.path", "/metrics", "URL path for surfacing collected metrics")
|
metricsPath = flag.String("telemetry.path", "/metrics", "URL path for surfacing collected metrics")
|
||||||
)
|
)
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|||||||
Reference in New Issue
Block a user