jenningsloy318 / redfish_exporter

exporter to get metrics from redfish based hardware such as lenovo/dell/superc servers
Apache License 2.0
70 stars 62 forks source link

Unable to create Docker image #31

Closed deepankersharmaa closed 2 years ago

deepankersharmaa commented 2 years ago

Hi can you please help me to create docker image. Please share proper steps.

getting below error...

Complete! fatal: not a git repository (or any parent up to mount point /go/src/github.com/jenningsloy318) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). fatal: not a git repository (or any parent up to mount point /go/src/github.com/jenningsloy318) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

jenningsloy318 commented 2 years ago

hello,

you can simply create the bindary on localhost, then create a Dockerfile to copy the binary into container.

and the dockerfiles in the repo are used to create the bindary builder not the binary itself

deepankersharmaa commented 2 years ago

Thanks for your prompt response. Actually i am not that much familiar to GO and Docker images. really grateful to you can you please create docker image using below settings and share image.

hosts: 10.237.220.237: username: admin password: root123 default: username: admin password: root123

deepankersharmaa commented 2 years ago

Thanks for your prompt response. Actually i am not that much familiar to GO and Docker images. really grateful to you can you please create docker image using below settings and share image.

hosts: 10.237.220.237: username: admin password: root123 default: username: admin password: root123

deepankersharmaa commented 2 years ago

I have created Go build and using it as systemd services and getting below attached metricrs. I am using it to extract H/W metrics on PowerEdge R730 and Firmware Version: 2.50.50.50. Also enabled redfish interface from Dell iDRAC but in metrics it shows:

HELP redfish_up redfish up

TYPE redfish_up gauge

redfish_up 0

No H/W related Informatio redfish-exporter.txt n exported.

jenningsloy318 commented 2 years ago

curl http://localhost:9610/redfish?target=172.17.40.250

jenningsloy318 commented 2 years ago

Hi, I also add a Dockerfile, you can build a docker image and running it via container now.

deepankersharmaa commented 2 years ago

@jenningsloy318 Thank you so much for helping me out here, its working as i want. will surely bother you if need your help again.