Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sh -> bash #873

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions scripts/grafana/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ Alternatively one can start [pcm-sensor-server as a container from docker hub](.
Installation of the grafana front-end (can be on any *host* system with connectivity to the target system):
1. Make sure curl and docker are installed on the *host*
2. In PCM source directory on the *host*: `cd scripts/grafana`
3. (Download once and) start docker containers on the *host*: `sudo sh start.sh http://target_system_address:9738`
3. (Download once and) start docker containers on the *host*: `sudo bash start.sh http://target_system_address:9738`
- `start.sh` script starts telegraf/influxdb/grafana containers
- `start-prometheus.sh` is an alternative script which starts prometheus + grafana containers: `sudo sh start-prometheus.sh target_system_address:9738`
- `start.sh` and `start-prometheus.sh` can also be used to monitor multiple hosts running pcm-sensor-server containers:`sudo sh start.sh targets.txt` or `sudo sh start-prometheus.sh targets.txt`. Here `targets.txt` should be of the following format:
- `start-prometheus.sh` is an alternative script which starts prometheus + grafana containers: `sudo bash start-prometheus.sh target_system_address:9738`
- `start.sh` and `start-prometheus.sh` can also be used to monitor multiple hosts running pcm-sensor-server containers:`sudo bash start.sh targets.txt` or `sudo bash start-prometheus.sh targets.txt`. Here `targets.txt` should be of the following format:
```properties
host1_ipaddress:pcmport
host2_ipaddress:pcmport
Expand All @@ -30,7 +30,7 @@ Installation of the grafana front-end (can be on any *host* system with connecti
```
- Don't use `localhost` to specify the `target_system_address` if the *host* and the target are the same machine because `localhost` resolves to the own private IP address of the docker container when accessed inside the container. The external IP address or hostname should be used instead.
4. Start your browser at http://*host*:3000/ and then login with admin user, password admin . Change the password and then click on "**Home**" (left top corner) -> "**Dashboards**" -> "Intel® Performance Counter Monitor (Intel® PCM) Dashboard"
5. You can also stop and delete the containers when needed: `sudo sh stop.sh`
5. You can also stop and delete the containers when needed: `sudo bash stop.sh`


![pcm grafana output](https://raw.githubusercontent.com/wiki/intel/pcm/pcm-dashboard-full.png)
2 changes: 1 addition & 1 deletion scripts/grafana/clean.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

sh stop.sh
bash stop.sh
rm -rf provisioning/datasources
rm -rf *_volume
Loading