Closed lxyzhangqing closed 1 year ago
Yes, I guess there is something wrong with the description in our "README" about how to use exporter directly in the docker scene.
According to the yaml used in K8s, we has set env and hostPID , so in docker scene command should be like:
docker run -d -p 30108:30108 --pid=host -e ENV_NODE_NAME={nodeName} --privileged=true cambricon-mlu-exporter:v1.6.7
@lxyzhangqing Thanks a lot for pointing out this problem, would you please have a try with the command provided above and let us know if there is any problem
@rayroot PLS update our "README" ASAP
Yes, when I added --pid=host -e ENV_NODE_NAME={nodeName}
, it worked fine. Thanks. @YuxiJin-tobeyjin
1. Issue or feature description
An error occurred when I requested metrics, like below:
2. Steps to reproduce the issue
Download source code and build image
Run docker container
To get the metrics
3. Information
My environment:
I did some debugging and found that the cause of the problem was an error in the return value of the function
pkg/cndev/cndev.go -> GetDeviceProcessUtil
, the return value ofpids
is always the same value in the array.My debugging info like bellow: source code
output info