Skip to content

Commit 792eced

Browse files
authored
Merge pull request #1116 from argonne-lcf/cerebras_grafana
Add page describing how to access Cerebras's Grafana dashboards
2 parents 78bfb21 + caabfbd commit 792eced

10 files changed

+53
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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+
* ![Firefox Page Not Found](files/grafanaproxy_05_firefox_page_not_found.png){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+
* ![Firefox Warning](files/grafanaproxy_08_self_signed_cert.png){width=50%}
11+
* Enter your ALCF username and MobilePass+ token.
12+
* It can take up to 10 seconds before you are let in.
13+
* ![Grafana Login Page](files/grafanaproxy_06_loginpage.png){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+
* ![Grafana User Dashboards](files/grafanaproxy_07_UserDashBoard.png)
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+
* ![Firefox Application Menu](files/grafanaproxy_01_firefox_settings.png){width=25%}
26+
* In search box, type `proxy`. Under `Network Settings` click `settings`.
27+
* ![Firefox Settings Proxy](files/grafanaproxy_02_firefox_settings_proxy.png){width=60%}
28+
* Under `Connection Settings` :
29+
* select `Manual proxy configuration` and `Proxy DNS when using SOCKS v5`
30+
* ![Firefox Connection Settings](files/grafanaproxy_03_firefox_conn_settings.png){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+
* ![Firefox Connection SOCKS Settings](files/grafanaproxy_04_firefox_con_settings_socks.png){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+
```
75.4 KB
Loading
60.8 KB
Loading
235 KB
Loading
67.3 KB
Loading
107 KB
Loading
123 KB
Loading
214 KB
Loading
211 KB
Loading

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ nav:
274274
- Tunneling and Forwarding Ports: ai-testbed/cerebras/tunneling-and-forwarding-ports.md
275275
- Miscellaneous: ai-testbed/cerebras/miscellaneous.md
276276
- CSL: ai-testbed/cerebras/csl.md
277+
- Grafana: ai-testbed/cerebras/accessing_cerebras_grafana_dashboard.md
277278
- Graphcore:
278279
- ai-testbed/graphcore/index.md
279280
- Getting Started: ai-testbed/graphcore/getting-started.md

0 commit comments

Comments
 (0)