Skip to content

Commit

Permalink
update main readme and notebooks with usage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
gsunner committed Mar 27, 2018
1 parent 81e5c3b commit 331fd45
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 549 deletions.
79 changes: 21 additions & 58 deletions notebooks/advanced_graphs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"!kubectl -n kube-system create sa tiller\n",
Expand All @@ -37,20 +35,16 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"!helm install ../helm-charts/seldon-core-crd --name seldon-core-crd"
"!helm install ../helm-charts/seldon-core-crd --name seldon-core-crd --set usage_metrics.enabled=true"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"!kubectl create namespace graphs"
Expand All @@ -60,7 +54,6 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false,
"scrolled": false
},
"outputs": [],
Expand All @@ -75,9 +68,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"!kubectl get svc -n seldon seldon-apiserver -n graphs"
Expand Down Expand Up @@ -174,9 +165,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"!kubectl get pods -n graphs"
Expand All @@ -192,9 +181,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"get_graph(\"resources/model.json\")"
Expand All @@ -210,9 +197,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"!kubectl apply -f resources/model.json -n graphs"
Expand All @@ -221,9 +206,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"!kubectl get seldondeployments seldon-deployment-example -o jsonpath=\"{.status}\" -n graphs"
Expand All @@ -232,9 +215,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"rest_request()"
Expand All @@ -243,9 +224,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"grpc_request()"
Expand All @@ -254,9 +233,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"!kubectl delete -f resources/model.json -n graphs"
Expand Down Expand Up @@ -563,9 +540,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"get_graph(\"resources/outlier_detector.json\")"
Expand All @@ -589,9 +564,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"json.load(open(\"./resources/outlier_detector.json\",'r')).get(\"spec\").get(\"predictors\")[0].get(\"graph\")"
Expand All @@ -600,9 +573,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"!kubectl apply -f resources/outlier_detector.json -n graphs"
Expand All @@ -611,9 +582,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"!kubectl get seldondeployments seldon-deployment-example -o jsonpath='{.status}' -n graphs"
Expand All @@ -622,9 +591,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"rest_request()"
Expand All @@ -633,9 +600,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"grpc_request()"
Expand All @@ -644,9 +609,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"!kubectl delete -f resources/outlier_detector.json -n graphs"
Expand Down Expand Up @@ -777,7 +740,7 @@
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Python [default]",
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
Expand All @@ -791,7 +754,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.12"
"version": "2.7.13"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 331fd45

Please sign in to comment.