Closed danhngo-lx closed 10 months ago
When you extract the archive, how does the result directory structure look?
The directory looks like this:
prometheus-2.37.9.linux-amd64
├── LICENSE
├── NOTICE
├── console_libraries
│  ├── menu.lib
│  └── prom.lib
├── consoles
│  ├── index.html.example
│  ├── node-cpu.html
│  ├── node-disk.html
│  ├── node-overview.html
│  ├── node.html
│  ├── prometheus-overview.html
│  └── prometheus.html
├── prometheus
├── prometheus.yml
└── promtool
3 directories, 14 files
I was unable to reproduce this on a github hosted runner, so i suspect the issue is related to your self-hosted runner. Considering this closed, as unable to reproduce with a test
I use this to install promtool:
However when using promtool, the command is not found. I tried to echo $PATH and could see:
I think the path for prometheus should be
/opt/hostedtoolcache/prometheus/prometheus/v2.37.9/linux-amd64/prometheus-2.37.9.linux-amd64
instead of/opt/hostedtoolcache/prometheus/prometheus/v2.37.9/linux-amd64
? 🤔I'm using github runner self-hosted by the way.