Skip to content

Commit d461780

Browse files
author
Adi
committed
Remove the datasource deployment and use http://grafana instead of IP
1 parent 6c055c1 commit d461780

File tree

1 file changed

+25
-27
lines changed

1 file changed

+25
-27
lines changed

demos/stocks/grafana.ipynb

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,32 @@
1616
},
1717
{
1818
"cell_type": "code",
19-
"execution_count": null,
19+
"execution_count": 1,
2020
"metadata": {},
21-
"outputs": [],
21+
"outputs": [
22+
{
23+
"name": "stdout",
24+
"output_type": "stream",
25+
"text": [
26+
"Collecting git+https://github.com/v3io/grafwiz.git\n",
27+
" Cloning https://github.com/v3io/grafwiz.git to /tmp/pip-req-build-fwkh1tj4\n",
28+
"Requirement already satisfied (use --upgrade to upgrade): grafwiz==0.1.0 from git+https://github.com/v3io/grafwiz.git in /User/.pythonlibs/lib/python3.6/site-packages\n",
29+
"Requirement already satisfied: grafanalib in /User/.pythonlibs/lib/python3.6/site-packages (from grafwiz==0.1.0) (0.5.3)\n",
30+
"Requirement already satisfied: attrs in /conda/lib/python3.6/site-packages (from grafanalib->grafwiz==0.1.0) (19.1.0)\n",
31+
"Building wheels for collected packages: grafwiz\n",
32+
" Running setup.py bdist_wheel for grafwiz ... \u001b[?25ldone\n",
33+
"\u001b[?25h Stored in directory: /tmp/pip-ephem-wheel-cache-0jnpcojn/wheels/8f/07/f3/185d8b497806aae5db86574055449669bd6c6658be2a5f9ec4\n",
34+
"Successfully built grafwiz\n"
35+
]
36+
}
37+
],
2238
"source": [
2339
"!pip install git+https://github.com/v3io/grafwiz.git"
2440
]
2541
},
2642
{
2743
"cell_type": "code",
28-
"execution_count": 1,
44+
"execution_count": 2,
2945
"metadata": {},
3046
"outputs": [],
3147
"source": [
@@ -35,38 +51,20 @@
3551
},
3652
{
3753
"cell_type": "code",
38-
"execution_count": 2,
54+
"execution_count": 3,
3955
"metadata": {},
40-
"outputs": [
41-
{
42-
"name": "stdout",
43-
"output_type": "stream",
44-
"text": [
45-
"Datasource iguazio created successfully\n"
46-
]
47-
}
48-
],
56+
"outputs": [],
4957
"source": [
5058
"# Grafana internal cluster address (will be http://grafana)\n",
51-
"grafana_url = 'http://10.97.225.197'\n",
59+
"grafana_url = 'http://grafana'\n",
5260
"# External URL of the demo's stream-viewer Nuclio serverless function\n",
53-
"streamview_url = 'https://stream-view.iguazio.app.vjszzjiaingr.iguazio-cd0.com/'"
61+
"# Replace the string after the app. with the dashboard URL (e.g. stream-view.iguazio.app.product4.iguazio-cd2.com)\n",
62+
"streamview_url = 'https://stream-view.iguazio.app.<Dashboard URL string>/'"
5463
]
5564
},
5665
{
5766
"cell_type": "code",
58-
"execution_count": null,
59-
"metadata": {},
60-
"outputs": [],
61-
"source": [
62-
"# Deploy the \"iguazio\" datasource with default paramaters/credentials.\n",
63-
"# You need to do this only once.\n",
64-
"ds=DataSource().deploy(grafana_url)"
65-
]
66-
},
67-
{
68-
"cell_type": "code",
69-
"execution_count": 3,
67+
"execution_count": 4,
7068
"metadata": {},
7169
"outputs": [
7270
{

0 commit comments

Comments
 (0)