<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Emily Gu on Medium]]></title>
        <description><![CDATA[Stories by Emily Gu on Medium]]></description>
        <link>https://medium.com/@CandySmurfy?source=rss-696299bdeb6f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*vCrh_tCBmzaMhqEb.png</url>
            <title>Stories by Emily Gu on Medium</title>
            <link>https://medium.com/@CandySmurfy?source=rss-696299bdeb6f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 20:46:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@CandySmurfy/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Monitor the Systems You Love on Kubernetes]]></title>
            <link>https://medium.com/@CandySmurfy/monitor-the-systems-you-love-on-kubernetes-6dcb256bd63c?source=rss-696299bdeb6f------2</link>
            <guid isPermaLink="false">https://medium.com/p/6dcb256bd63c</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[snap-telemetry]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Emily Gu]]></dc:creator>
            <pubDate>Tue, 25 Oct 2016 17:56:54 GMT</pubDate>
            <atom:updated>2016-10-25T18:50:16.807Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hsEztsqvWjMT7r4g9Ru_8w.png" /></figure><p>Services shift from the monolithic to microservices, containerization and orchestration in cloud computing. Monitoring the health of both hardware and software systems at scale with ease becomes crucial to ensure the minimal downtime of our applications. How can we ensure the interoperability of so much different software, dashboards/tools and the underlying platforms and architectures? How do we make sense of data when we measure data in petabytes and zettabytes? There are so many analytics and monitoring tools out there. For this blog post, we focus on how Snap can simplify your analytic and monitoring solution with Kubernetes.</p><p><a href="http://snap-telemetry.io/">Snap</a> is an open source telemetry framework written in Go. Its gRPC server and client communication pattern allows interoperability among different languages. The Snap ecosystem comprises of hardware and software collector, processor and publisher plugins. You can check out the available plugins in the <a href="http://snap-telemetry.io/plugins.html">plugin catalog</a>. Here are some features worth noting:</p><ul><li>Collected data can be published to different data stores</li><li>Containerizable and packaged as microservices</li><li>Extendable to create your own automated monitoring solution</li></ul><p>In this blog post, we will collect sample metrics from <a href="https://github.com/intelsdi-x/snap-plugin-collector-cpu">CPU</a>, <a href="https://github.com/intelsdi-x/snap-plugin-collector-meminfo">Memory</a>, <a href="https://github.com/intelsdi-x/snap-plugin-collector-disk">Disk</a>, <a href="https://github.com/intelsdi-x/snap-plugin-collector-psutil">psutil</a> and <a href="https://github.com/intelsdi-x/snap-plugin-collector-elasticsearch">Elasticsearch</a> to monitor the health of an Elasticsearch cluster and the the underlying system at the same time.</p><p>Elasticsearch is similar to a distributed document-based NoSQL database or data warehouse with lightning speed full-text search capability. It’s a very popular project for monitoring other systems, but how do we monitor Elasticsearch itself and its underlying system?</p><p>For this blog post we explore 2 different tools, docker-compose and Minikube to simplify monitoring the health of an Elasticsearch cluster and the underlying system utilizing the <a href="https://github.com/intelsdi-x/snap">Snap Framework</a>. We will use both tools to run an instance of Snap with plugins that collect the health data of Elasticsearch nodes in a cluster and the health data of system cpu, memory, disks and psutil. Then we will use influxDB and Grafana to visualize the data collected.</p><p>All scripts used in this blog are available on Github:</p><p><a href="https://github.com/candysmurf/snap-elasticsearch-monitor">candysmurf/snap-elasticsearch-monitor</a></p><h3><strong>Monitoring with docker-compose</strong></h3><p>First, let’s run the example using docker-compose on your laptop. Docker-compose is ideal for development. This will help us understand how to deploy the example to Kubernetes later. You can see the similarities and differences between <a href="https://github.com/candysmurf/snap-elasticsearch-monitor/tree/docker-compose/docker-compose">docker-compose</a> and <a href="https://github.com/candysmurf/snap-elasticsearch-monitor/tree/docker-compose/kubernetes/deployment">Kubernetes</a> in their respective deployment YAML files.</p><blockquote>Before you start, you need <a href="https://docs.docker.com/machine/install-machine/"><strong>docker/docker-machine</strong></a> and <a href="https://docs.docker.com/compose/install/"><strong>docker-compose</strong></a> installed on your laptop. Then you can proceed:</blockquote><p><strong>1. Start the example.</strong> This starts an instance of Snap with the Elasticsearch collector, cpu, meminfo, disk and psutil plugins pre-loaded collecting sample metrics, an instance of InfluxDB, an instance of Grafana and one Elasticsearch master node and one data node on start.</p><pre>▶ cd snap-elasticsearch-monitor/docker-compose/<br>▶ <strong>docker-compose -f snap-es-monitor.yml up -d</strong><br>Creating network &quot;dockercompose_default&quot; with the default driver<br>Creating dockercompose_snap-elasticsearch_1<br>Creating influxdb<br>Creating dockercompose_es-node_1<br>Creating grafana<br>Creating snap-elasticsearch-monitor<br>Creating dockercompose_master_1<br>Creating dockercompose_node_1</pre><p><strong>2. View Grafana dashboard.</strong> Go to <em>http://[dockerhost]:3000</em> to view live metric collection visualization. There are two pre-created dashboard panels: Snap Elasticsearch Monitor and Snap System Monitor.</p><p>To see the IP address of your Docker host if you use docker-machine:</p><pre>▶ <strong>echo $DOCKER_HOST</strong><br>tcp://192.168.99.100:2376</pre><p>For example: <a href="http://192.168.99.100:3000.">http://192.168.99.100:3000.</a> Otherwise it’s <a href="http://localhost:3000/">http://127.0.0.1:3000</a> if you use Docker.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*Sl9fyVlVJ62pJDIg9YekVg.png" /></figure><p><strong>3. Scale Elasticsearch cluster. </strong>The example Elasticsearch cluster has one master and one data node. You can scale your cluster up or down. For example, to scale up to 5 data nodes:</p><pre><strong>▶ docker-compose -f snap-es-monitor.yml scale snap-elasticsearch=1 es-node=5</strong><br>Desired container number already achieved<br>Creating and starting dockercompose_es-node_2 ... done<br>Creating and starting dockercompose_es-node_3 ... done<br>Creating and starting dockercompose_es-node_4 ... done<br>Creating and starting dockercompose_es-node_5 ... done</pre><p>After scaling up you can view your updated docker containers:</p><pre><strong>▶ docker ps</strong><br>CONTAINER ID        IMAGE                    COMMAND                  CREATED             STATUS              PORTS                                            NAMES<br>8ead4c2c3e88        elasticsearch:latest     &quot;/docker-entrypoint.s&quot;   2 minutes ago       Up 2 minutes        9200/tcp, 9300/tcp                               <strong>dockercompose_es-node_4</strong><br>e680486b0642        elasticsearch:latest     &quot;/docker-entrypoint.s&quot;   2 minutes ago       Up 2 minutes        9200/tcp, 9300/tcp                               <strong>dockercompose_es-node_3</strong><br>49807affc8f7        elasticsearch:latest     &quot;/docker-entrypoint.s&quot;   2 minutes ago       Up 2 minutes        9200/tcp, 9300/tcp                               <strong>dockercompose_es-node_2</strong><br>34821be64e08        elasticsearch:latest     &quot;/docker-entrypoint.s&quot;   2 minutes ago       Up 2 minutes        9200/tcp, 9300/tcp                               <strong>dockercompose_es-node_5</strong><br>3ca984da410c        dockercompose_main       &quot;sh -c &#39;/usr/local/bi&quot;   3 minutes ago       Up 3 minutes        8181/tcp                                         snap-elasticsearch-monitor<br>24b5dc5bcb35        elasticsearch:latest     &quot;/docker-entrypoint.s&quot;   3 minutes ago       Up 3 minutes        9200/tcp, 9300/tcp                               <strong>dockercompose_es-node_1</strong><br>d800fa7a2c4e        grafana/grafana:latest   &quot;/run.sh&quot;                3 minutes ago       Up 3 minutes        0.0.0.0:3000-&gt;3000/tcp                           grafana<br>ebe9c2397e1a        tutum/influxdb:latest    &quot;/run.sh&quot;                3 minutes ago       Up 3 minutes        0.0.0.0:8083-&gt;8083/tcp, 0.0.0.0:8086-&gt;8086/tcp   influxdb<br>55f9ef583fba        elasticsearch:latest     &quot;/docker-entrypoint.s&quot;   3 minutes ago       Up 3 minutes        0.0.0.0:9200-&gt;9200/tcp, 9300/tcp                 <strong>dockercompose_snap-elasticsearch_1</strong></pre><p>There are now 5 Elasticsearch data nodes and 1 master node.</p><p><strong>4. Stop running containers. </strong>Once you are done, you can stop running the example containers. This will allow you to re-start later if you wish.</p><pre>▶ <strong>docker-compose -f snap-es-monitor.yml stop</strong><br>Stopping dockercompose_es-node_4 ... done<br>Stopping dockercompose_es-node_3 ... done<br>Stopping dockercompose_es-node_2 ... done<br>Stopping dockercompose_es-node_5 ... done<br>Stopping snap-elasticsearch-monitor ... done<br>Stopping dockercompose_es-node_1 ... done<br>Stopping grafana ... done<br>Stopping influxdb ... done<br>Stopping dockercompose_snap-elasticsearch_1 ... done</pre><p>If you want to stop and remove the containers.</p><pre>▶<strong> docker-compose -f snap-es-monitor.yml down</strong><br>Stopping dockercompose_es-node_4 ... done<br>Stopping dockercompose_es-node_3 ... done<br>Stopping dockercompose_es-node_2 ... done<br>Stopping dockercompose_es-node_5 ... done<br>Stopping snap-elasticsearch-monitor ... done<br>Stopping dockercompose_es-node_1 ... done<br>Stopping grafana ... done<br>Stopping influxdb ... done<br>Stopping dockercompose_snap-elasticsearch_1 ... done<br>Removing dockercompose_es-node_4 ... done<br>Removing dockercompose_es-node_3 ... done<br>Removing dockercompose_es-node_2 ... done<br>Removing dockercompose_es-node_5 ... done<br>Removing snap-elasticsearch-monitor ... done<br>Removing dockercompose_es-node_1 ... done<br>Removing grafana ... done<br>Removing influxdb ... done<br>Removing dockercompose_snap-elasticsearch_1 ... done<br>Removing network dockercompose_default</pre><h3><strong>Monitoring with Kubernetes</strong></h3><p>Second, we can try running the example inside Kubernetes with Minikube on your laptop. With just a few steps you’ll have the example running inside an enterprise grade container management.</p><blockquote>Before you start you should have either <a href="http://kubernetes.io/docs/whatisk8s/">Kubernetes</a> or <a href="http://kubernetes.io/docs/getting-started-guides/minikube/">Minikube and kubectl</a> installed. This example uses Minikube.</blockquote><ol><li><strong>Start MiniKube.</strong></li></ol><pre>▶ <strong>minikube start</strong><br>Starting local Kubernetes cluster...<br>Kubectl is now configured to use the cluster.</pre><p><strong>2. Setup your console docker environment.</strong> This allows you to run docker commands on your console.</p><pre><strong>▶ eval $(minikube docker-env)</strong></pre><p><strong>3. Start the example inside Kubernetes. </strong>This creates and starts an Elasticsearch cluster with one master and one data node. Also, this creates and starts an instance of Snap with the Elasticsearch collector, cpu, meminfo, disk, psutil plugins pre-loaded, an instance of Grafana, and an instance of InfluxDB.</p><pre>▶ cd snap-elasticsearch-monitor/kubernetes/<br>▶ <strong>kubectl create -f deployment --namespace kube-system</strong><br>deployment &quot;snap-elasticsearch&quot; created<br>You have exposed your service on an external port on all nodes in your<br>cluster.  If you want to expose this service to the external internet, you may<br>need to set up firewall rules for the service port(s) (tcp:31527,tcp:31462) to serve traffic.</pre><pre>See <a href="http://releases.k8s.io/release-1.3/docs/user-guide/services-firewalls.md">http://releases.k8s.io/release-1.3/docs/user-guide/services-firewalls.md</a> for more details.<br>service &quot;elasticsearch&quot; created<br>replicationcontroller &quot;es-data&quot; created<br>You have exposed your service on an external port on all nodes in your<br>cluster.  If you want to expose this service to the external internet, you may<br>need to set up firewall rules for the service port(s) (tcp:32657) to serve traffic.</pre><pre>See <a href="http://releases.k8s.io/release-1.3/docs/user-guide/services-firewalls.md">http://releases.k8s.io/release-1.3/docs/user-guide/services-firewalls.md</a> for more details.<br>service &quot;monitoring-grafana&quot; created<br>replicationcontroller &quot;heapster&quot; created<br>replicationcontroller &quot;influxdb-grafana&quot; created<br>service &quot;monitoring-influxdb&quot; created</pre><p><strong>4. Forward the Influxdb and Grafana ports to your local machine.</strong> Because we are running the example in a container, if you want to view the Influxdb and Grafana dashboard locally you need to forward the ports of the influxdb-grafana pod.</p><p>Start by finding the pod name when they are all in <em>Running</em> status:</p><pre>▶ <strong>kubectl get pods --namespace kube-system</strong><br>NAME                                        READY     STATUS    RESTARTS   AGE<br>snap-elasticsearch-3470735521-w8p5p   2/2       Running   0          2m<br>es-data-6rdi6                               1/1       Running   0          2m<br>heapster-yf7eu                              1/1       Running   0          2m<br><strong>influxdb-grafana-jsatd</strong>                      2/2       Running   0          2m<br>kube-addon-manager-minikubevm               1/1       Running   39         6d<br>kubernetes-dashboard-sllpy                  1/1       Running   20         6d</pre><p>Here the pod is named: <strong>influxdb-grafana-jsatd</strong></p><blockquote><strong>Note:</strong> you will need to wait for all containers to be in a Running state before proceeding.</blockquote><p><strong>5. Create a Snap sample task to run the sample metrics.</strong></p><p>Start by finding the running container ID:</p><pre>▶ <strong>docker ps</strong><br>CONTAINER ID        IMAGE                                                        COMMAND                  CREATED             STATUS              PORTS               NAMES<br>9c6d4c240bf1        kubernetes/heapster:canary                                   &quot;/heapster --source=k&quot;   12 minutes ago      Up 12 minutes                           k8s_heapster.6c2648e6_heapster-irt4k_kube-system_d3659d5f-9169-11e6-96f0-8203398eff0a_92f9930c<br>20558b9581bb        elasticsearch:latest                                                                  <br><strong>07b00720507f        candysmurfhub/snap-es-mon-k8s:latest </strong>                        &quot;sh -c &#39;/usr/local/bi&quot;   12 minutes ago      Up 12 minutes                           k8s_main.d6053766_snap-elasticsearch-1681843414-q3oyc_kube-system_d347e719-9169-11e6-96f0-8203398eff0a_e7d7dcac<br>cf5504f9b2f1        gcr.io/google_containers/pause-amd64:3.0                     &quot;/pause&quot;                 12 minutes ago      Up 12 minutes                           k8s_POD.d8dbe16c_influxdb-grafana-xilzh_kube-system_d36fdf75-9169-11e6-96f0-8203398eff0a_e9e6d561<br>7bfd879ea011        gcr.io/google_containers/pause-amd64:3.0                     &quot;/pause&quot;                 12 minutes ago      Up 12 minutes                           k8s_POD.69a02673_snap-elasticsearch-1681843414-q3oyc_kube-system_d347e719-9169-11e6-96f0-8203398eff0a_fe3f64b2<br>51756b97c8f8        gcr.io/google_containers/pause-amd64:3.0  <br>...                   </pre><p>Then go into the container and check if plugins are loaded:</p><pre><strong>▶ docker exec -it 07b007 bash</strong></pre><pre>bash-4.3# <strong>snapctl plugin list</strong><br>NAME    VERSION   TYPE    SIGNED   STATUS <br>file    2         publisher   false    loaded <br>influxdb  15      publisher   false    loaded<br>cpu     6         collector   false    loaded <br>disk    3         collector   false    loaded <br>elasticsearch   3 collector   false    loaded <br>meminfo   3       collector   false    loaded  <br>psutil    8       collector   false    loaded</pre><p>If you see the following, don’t panic! It takes time to start. Check back in a bit.</p><pre>bash-4.3# <strong>snapctl plugin list</strong><br>Error: URL target is not available. Get <a href="http://localhost:8181/v1/plugins">http://localhost:8181/v1/plugins</a>: dial tcp [::1]:8181: getsockopt: connection refused</pre><p>Create Snap tasks in the container:</p><pre>bash-4.3#<strong> ./usr/local/bin/create_tasks</strong></pre><blockquote><strong>Note:</strong> Snap supports auto-discovery to automatically load plugins and create tasks; however, at the time of writing this post, Kubernetes does not support pod dependencies. Once adding the <a href="http://kubernetes.io/docs/user-guide/production-pods/#handling-initialization">initialization containers</a> to specify dependencies, step 6 can be skipped.</blockquote><p>Then exit out of the container.</p><p><strong>6. View Grafana dashboard locally. </strong>First, run the command to forward the ports:</p><pre>▶ <strong>kubectl port-forward influxdb-grafana-jsatd 8083:8083 3000:3000 --namespace kube-system</strong><br>Forwarding from 127.0.0.1:8083 -&gt; 8083<br>Forwarding from [::1]:8083 -&gt; 8083<br>Forwarding from 127.0.0.1:3000 -&gt; 3000<br>Forwarding from [::1]:3000 -&gt; 3000</pre><p>Now login to the Grafana dashboard at <a href="http://127.0.0.1:3000/">http://127.0.0.1:3000/</a> (username/password is admin/admin). The dashboard has 4 pre-created panels: Cluster, Pod, Snap Elasticsearch Monitor and Snap System Monitor.</p><p><strong>7. Scale up Elasticsearch Cluster. </strong>This example code scales Elasticsearch data pod from 1 to 3 pods:</p><pre>▶ <strong>kubectl scale --replicas=3 rc es-data --namespace kube-system</strong><br>replicationcontroller &quot;es-data&quot; scaled</pre><p>After Scaling, there are three Elasticsearch data pods.</p><pre><strong>▶ kubectl get pods --namespace kube-system</strong><br>NAME READY STATUS RESTARTS AGE<br>snap-elasticsearch-3470735521–1b7a7 2/2 Running 0 3m<br><strong>es-data-86o1d 1/1 Running 0 3m<br>es-data-kqz1w 1/1 Running 0 33s<br>es-data-yplqe 1/1 Running 0 33s</strong><br>heapster-y792r 1/1 Running 0 3m<br>influxdb-grafana-uq759 2/2 Running 0 3m<br>kube-addon-manager-minikubevm 1/1 Running 39 6d<br>kubernetes-dashboard-sllpy 1/1 Running 20 6d</pre><p><strong>8. Remove example deployment.</strong> Once you’re finished you should cleanup your kubernetes pods, services, replication controllers, and deployments.</p><pre><strong>▶ ./kubernetes/cleanup.sh</strong><br>deployment &quot;snap-elasticsearch&quot; deleted<br>replicationcontroller &quot;es-data&quot; deleted<br>replicationcontroller &quot;heapster&quot; deleted<br>replicationcontroller &quot;influxdb-grafana&quot; deleted<br>service &quot;elasticsearch&quot; deleted<br>service &quot;monitoring-grafana&quot; deleted<br>service &quot;monitoring-influxdb&quot; deleted</pre><p><strong>9. Stop minikube.</strong></p><pre><strong>▶ minikube stop</strong><br>Stopping local Kubernetes cluster...<br>Machine stopped.</pre><p>And reset your Docker environmental variables:</p><pre><strong>▶ eval $(minikube docker-env -u)</strong></pre><h3><strong>Using kubectl to check Kubernetes cluster</strong></h3><p>If you like to monitor the Kubenetes cluster health, you can use kubectl. Here are a few kubectl commands to explore:</p><p>1. Check what deployments you have running:</p><pre>▶ <strong>kubectl get deployments --namespace kube-system</strong><br>NAME                 DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE<br>snap-elasticsearch   1         1         1            1           32s</pre><p>2. Check what pods you have running:</p><pre>▶ <strong>kubectl get pods --namespace kube-system</strong><br>NAME                                        READY     STATUS    RESTARTS   AGE<br>snap-elasticsearch-3470735521-w8p5p   2/2       Running   0          2m<br>es-data-6rdi6                               1/1       Running   0          2m<br>heapster-yf7eu                              1/1       Running   0          2m<br>influxdb-grafana-jsatd                      2/2       Running   0          2m<br>kube-addon-manager-minikubevm               1/1       Running   39         6d<br>kubernetes-dashboard-sllpy                  1/1       Running   20         6d</pre><p>3. Check what services you have running:</p><pre>▶ <strong>kubectl get svc --namespace kube-system</strong><br>NAME                   CLUSTER-IP   EXTERNAL-IP   PORT(S)             AGE<br>elasticsearch          10.0.0.64    &lt;nodes&gt;       9200/TCP,9300/TCP   3m<br>kube-dns               10.0.0.10    &lt;none&gt;        53/UDP,53/TCP       4d<br>kubernetes-dashboard   10.0.0.63    &lt;nodes&gt;       80/TCP              6d<br>monitoring-grafana     10.0.0.27    &lt;nodes&gt;       80/TCP              3m<br>monitoring-influxdb    10.0.0.178   &lt;none&gt;        8083/TCP,8086/TCP   3m</pre><p>4. Check what replication controllers you have running:</p><pre>▶ <strong>kubectl get rc --namespace kube-system</strong><br>NAME                   DESIRED   CURRENT   AGE<br>es-data                1         1         4m<br>heapster               1         1         4m<br>influxdb-grafana       1         1         4m<br>kubernetes-dashboard   1         1         6d</pre><p>5. To get more details on a pod:</p><pre>▶<strong> kubectl describe pods es-data-kqz1w --namespace kube-system</strong><br>Name:  es-data-kqz1w<br>Namespace: kube-system<br>Node:  minikubevm/10.0.2.15<br>Start Time: Thu, 29 Sep 2016 08:49:08 -0700<br>Labels:  name=esdata<br>Status:  Running<br>IP:  172.17.0.7<br>Controllers: ReplicationController/es-data<br>Containers:<br>  esdata:<br>    Container ID: docker://32810123e5cd381769eb1b3be9316a67713a1e5fbaca1b0a0accc230ed4f5b6b<br>    Image:  elasticsearch:latest<br>    Image ID:  docker://sha256:22287ab1f811bd81eaaf3a9c112a8100b6532996a0a3a428ec5bcace8802db59<br>    Port:<br>    State:  Running<br>      Started:  Thu, 29 Sep 2016 08:49:15 -0700<br>    Ready:  True<br>    Restart Count: 0<br>    Environment Variables:<br>      DISCOVERY_ZEN_PING_UNICAST_HOSTS: elasticsearch<br>Conditions:<br>  Type  Status<br>  Initialized  True<br>  Ready  True<br>  PodScheduled  True<br>Volumes:<br>  default-token-c0kys:<br>    Type: Secret (a volume populated by a Secret)<br>    SecretName: default-token-c0kys<br>QoS Tier: BestEffort<br>Events:<br>  FirstSeen LastSeen Count From   SubobjectPath  Type  Reason  Message<br>  --------- -------- ----- ----   -------------  -------- ------  -------<br>  47m  47m  1 {default-scheduler }    Normal  Scheduled Successfully assigned es-data-kqz1w to minikubevm<br>  47m  47m  1 {kubelet minikubevm} spec.containers{esdata} Normal  Pulling  pulling image &quot;elasticsearch:latest&quot;<br>  46m  46m  1 {kubelet minikubevm} spec.containers{esdata} Normal  Pulled  Successfully pulled image &quot;elasticsearch:latest&quot;<br>  46m  46m  1 {kubelet minikubevm} spec.containers{esdata} Normal  Created  Created container with docker id 32810123e5cd<br>  46m  46m  1 {kubelet minikubevm} spec.containers{esdata} Normal  Started  Started container with docker id 32810123e5cd</pre><h3>Next</h3><p>In this blog post we learned how to use docker-compose and Minikube to run an example of Snap with plugins that collect the health data of Elasticsearch nodes in a cluster and the health data of system cpu, memory, disks and network statistics. We also used InfluxDB and Grafana to visualize the data collected. Hopefully these instructions were easy for you to run and spark your imagination moving forward. We could explore running this example in GCP, Amazon, or Digital Ocean and publishing to different sources such as KairosDB, Cassandra, or Heka utilizing the <a href="http://snap-telemetry.io/">Snap Framework</a>.</p><p>Do you want to apply different securities considerations to different Kubernetes pods? Do you want to separate Docker containers into different network layers while they can still talk to each other? If you have any suggestions for improving this example please feel free to <a href="https://github.com/candysmurf/snap-elasticsearch-monitor">open a PR</a>. I look forward to your feedback!</p><h3>Acknowledgements</h3><p>I’d like to thank the following people for helping make this blog post possible: <a href="https://medium.com/u/e20fef9ee8b6">Nan Liu</a>, <a href="https://medium.com/u/92bb092049f7">sarahjhh</a> and <a href="https://medium.com/u/7bf3aa2523e4">Matthew Brender</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6dcb256bd63c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>