Skip to content

Commit 13327e4

Browse files
committed
Restructure project
1 parent 3f41630 commit 13327e4

File tree

10 files changed

+6
-6
lines changed

10 files changed

+6
-6
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
/libvirt_exporter
1+
exporter/exporter
22

cmd/exporter/exporter

11.9 MB
Binary file not shown.
File renamed without changes.

handler.go renamed to cmd/exporter/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"net/http"
55

66
"github.com/prometheus/client_golang/prometheus/promhttp"
7-
"github.com/setlog/libvirt_exporter/metrics"
7+
"github.com/setlog/process_exporter/cmd/exporter/metrics"
88
)
99

1010
type httpHandler struct {

main.go renamed to cmd/exporter/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import (
55
"net/http"
66
"os"
77

8-
"github.com/setlog/libvirt_exporter/flags"
9-
"github.com/setlog/libvirt_exporter/metrics"
8+
"github.com/setlog/process_exporter/cmd/exporter/flags"
9+
"github.com/setlog/process_exporter/cmd/exporter/metrics"
1010
)
1111

1212
func main() {
1313
namespace, procBinaryName, argName := flags.Parse(os.Args[1:])
1414
http.Handle("/metrics", newHttpHandler(metrics.NewProcessMetricsSet(namespace, procBinaryName, argName)))
15-
log.Fatal(http.ListenAndServe(":http", nil))
15+
log.Fatal(http.ListenAndServe(":8771", nil))
1616
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/setlog/libvirt_exporter
1+
module github.com/setlog/process_exporter
22

33
go 1.13
44

0 commit comments

Comments
 (0)