|
| 1 | +# Accessing Cerebras's Internal Grafana Dashboard |
| 2 | + |
| 3 | +The Cerebras Grafana dashboard is only accessible from systems within ALCF's internal networks. To access it you will need to open a SOCKS proxy to `cerebras.alcf.anl.gov` and then route your connection via the SOCKS proxy. Instructions on how to configure SOCKS proxies for your browser are at the end of the page. |
| 4 | + |
| 5 | +## Using Grafana Dashboard |
| 6 | +* Log in by going to [https://grafana.anl0.cerebras.internal](https://grafana.anl0.cerebras.internal/login){width=75%} |
| 7 | + * If you get an `Hmm. We’re having trouble finding that site.` or `We can’t connect to the server at grafana.anl0.cerebras.internal.` then likely your browser and proxy settings are not working. |
| 8 | + * {width=50%} |
| 9 | + * You will likely get a `Warning: Potential Security Risk Ahead` notification the first time you visit the site. This is due to the internal Grafana instance using a self-signed cert. Click `advanced` and then click `Accept the Risk and Continue`. |
| 10 | + * {width=50%} |
| 11 | +* Enter your ALCF username and MobilePass+ token. |
| 12 | + * It can take up to 10 seconds before you are let in. |
| 13 | + * {width=50%} |
| 14 | +* We make several read only dashboards available under the Dashboard folder [UserDashboards](https://grafana.anl0.cerebras.internal/dashboards/f/bfdit1mx49ypsc/?orgId=1) |
| 15 | + *  |
| 16 | +* If you wish to create your own dashboards, please email [support](mailto:support@alcf.anl.gov) and request write access for a Cerebras Grafana dashboard. |
| 17 | + |
| 18 | +## SOCKS proxies |
| 19 | +### Setup the socks proxy via SSH |
| 20 | +* SSH's `-D` option will open a local socks proxy at the specified port. In this example, we use port 5555 |
| 21 | + * `ssh -D5555 ${yourUsername}@cerebras.alcf.anl.gov` |
| 22 | + |
| 23 | +### Instuctions for setting up via Firefox GUI |
| 24 | +* Open Firefox's Application menu and click settings |
| 25 | + * {width=25%} |
| 26 | +* In search box, type `proxy`. Under `Network Settings` click `settings`. |
| 27 | + * {width=60%} |
| 28 | +* Under `Connection Settings` : |
| 29 | + * select `Manual proxy configuration` and `Proxy DNS when using SOCKS v5` |
| 30 | + * {width=60%} |
| 31 | + * For `SOCKS Host` put in `127.0.0.1` and for the `Port` put 5555 (Or whatever port you used for ssh's -D option |
| 32 | + * {width=75%} |
| 33 | + * Click "OK" to save" |
| 34 | +* Exit out of Firefox settings/preferences tab |
| 35 | + |
| 36 | +### Instuctions for setting up Chromium-based browsers (Chrome, Brave, Vivaldi) via the CLI on Linux or MacOS |
| 37 | +* Chromium-based browsers have a `--proxy` flag that lets you set a proxy for the new instance of that browser. However they do not have a flag in all version that lets you proxy your DNS queries through the proxy. Requiring you to update your hosts file. The paths to your browser's binary files will be different depending on distribution and browsers. |
| 38 | +* Update `/etc/hosts` with a text editor. You will need to be root or sudo. |
| 39 | + * Example: `sudo vim /etc/hosts` |
| 40 | + * Add the following as a new line : `10.125.8.2 grafana.anl0.cerebrassc.local grafana.anl0.cerebras.internal` |
| 41 | + * save with `:wq` |
| 42 | +* Open your browser from the cli and the flags `--no-first-run --user-data-dir=$(mktemp -d) --proxy-server="socks5://127.0.0.1:5555"` and url `https://grafana.anl0.cerebras.internal/login` |
| 43 | + * `--no-first-run`: Prevents browser from asking you to do a new setup of your profile. |
| 44 | + * `--user-data-dir=$(mktemp -d)`: sets a new profile so as to not interfere with an already opened browser. |
| 45 | + * `--proxy-server="socks5://127.0.0.1:5555"`: Tells the browser to use our SOCKS proxy from above. |
| 46 | + * Example paths to the browsers with flags: |
| 47 | +```bash linenums="1" |
| 48 | + /usr/bin/vivaldi-stable --no-first-run --user-data-dir=$(mktemp -d) --proxy-server="socks5://127.0.0.1:5555" https://grafana.anl0.cerebras.internal/login |
| 49 | + /usr/bin/google-chrome-stable --no-first-run --user-data-dir=$(mktemp -d) --proxy-server="socks5://127.0.0.1:5555" https://grafana.anl0.cerebras.internal/login |
| 50 | + /usr/bin/brave-browser-stable --no-first-run --user-data-dir=$(mktemp -d) --proxy-server="socks5://127.0.0.1:5555" https://grafana.anl0.cerebras.internal/login |
| 51 | + /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --no-first-run --user-data-dir=$(mktemp -d) --proxy-server="socks5://127.0.0.1:5555" https://grafana.anl0.cerebras.internal/login |
| 52 | +``` |
0 commit comments