Skip to content

Commit

Permalink
add environment NRI_PLUGIN_SOCKET
Browse files Browse the repository at this point in the history
  • Loading branch information
yylt committed May 9, 2024
1 parent a1b3977 commit 2aaf480
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/daemon/cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,17 @@ var envInfo = []envConf{
{"GIT_COMMIT_TIME", "", false, &controllerContext.Cfg.CommitTime, nil, nil},
{"VERSION", "", false, &controllerContext.Cfg.AppVersion, nil, nil},
{"GOLANG_ENV_MAXPROCS", "8", false, nil, nil, &controllerContext.Cfg.GoMaxProcs},

// environ also used in nri library
{"NRI_PLUGIN_SOCKET", "/var/run/nri/nri.sock", false, &controllerContext.Cfg.NriSockPath, nil, nil},
}

type Config struct {
CommitVersion string
CommitTime string
AppVersion string
GoMaxProcs int
NriSockPath string

// flags
GopsListenPort string
Expand Down

0 comments on commit 2aaf480

Please sign in to comment.