Skip to content

Commit

Permalink
move from port 8080 to port 9400
Browse files Browse the repository at this point in the history
This is to hack around buggy gpu-operator deployment.
A better fix needs to come in to replace this change.

Signed-off-by: Jon Mayo <[email protected]>
  • Loading branch information
nvjmayo committed May 1, 2020
1 parent ce4bf87 commit f4f9929
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ Find the installation and run instructions [here](https://github.com/NVIDIA/gpu-

To gather metrics on a GPU node, simply start the dcgm-exporter container:
```
$ docker run -d --gpus all --rm -p 8080:8080 nvidia/dcgm-exporter:latest
$ curl localhost:8080/metrics
$ docker run -d --gpus all --rm -p 9400:9400 nvidia/dcgm-exporter:latest
$ curl localhost:9400/metrics
# HELP DCGM_FI_DEV_SM_CLOCK SM clock frequency (in MHz).
# TYPE DCGM_FI_DEV_SM_CLOCK gauge
# HELP DCGM_FI_DEV_MEM_CLOCK Memory clock frequency (in MHz).
Expand All @@ -44,8 +44,8 @@ $ kubectl create -f https://raw.githubusercontent.com/NVIDIA/gpu-monitoring-tool
$ NAME=$(kubectl get pods -l "app.kubernetes.io/name=dcgm-exporter, app.kubernetes.io/version=2.0.0-rc.0" \
-o "jsonpath={ .items[0].metadata.name}")
$ kubectl proxy --port=8080
$ curl http://localhost:8080/api/v1/namespaces/default/pods/$NAME:8080/proxy
$ kubectl proxy --port=9400
$ curl http://localhost:9400/api/v1/namespaces/default/pods/$NAME:9400/proxy
# HELP DCGM_FI_DEV_SM_CLOCK SM clock frequency (in MHz).
# TYPE DCGM_FI_DEV_SM_CLOCK gauge
# HELP DCGM_FI_DEV_MEM_CLOCK Memory clock frequency (in MHz).
Expand Down
2 changes: 1 addition & 1 deletion pkg/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func main() {
&cli.IntFlag{
Name: CLIPort,
Aliases: []string{"p"},
Value: 8080,
Value: 9400,
Usage: "Port",
EnvVars: []string{"DCGM_EXPORTER_PORT"},
},
Expand Down

0 comments on commit f4f9929

Please sign in to comment.