Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Revert port number #32

Merged
merged 2 commits into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func main() {

flag.StringVar(&hostnameFlag, "hostname", "", "Hostname to use")
flag.IntVar(&pollIntervalFlag, "poll-interval", 20, "Polling interval in seconds")
flag.Uint64Var(&exporterPort, "port", 8080, "Port on which exporter will be running.")
flag.Uint64Var(&exporterPort, "port", 9064, "Port on which exporter will be running.")
flag.Parse()

if exporterPort < 1024 || exporterPort > 65535 {
Expand Down
2 changes: 1 addition & 1 deletion metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/sirupsen/logrus"
)

var SocketPath = "/var/run/dpdk/rte/dpdk_telemetry.v2"
const SocketPath = "/var/run/dpdk/rte/dpdk_telemetry.v2"

func queryTelemetry(conn net.Conn, log *logrus.Logger, command string, response interface{}) {
_, err := conn.Write([]byte(command))
Expand Down
Loading