Skip to content

Commit

Permalink
remove snap stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
jtlisi committed Jan 18, 2018
1 parent 8c899dd commit ca9d31d
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 90 deletions.
14 changes: 11 additions & 3 deletions dist/components/clusters/clusterConfig.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/components/clusters/clusterConfig.js.map

Large diffs are not rendered by default.

24 changes: 6 additions & 18 deletions dist/dashboards/kubernetes-container.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,7 @@
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{ pod_name }}",
"refId": "A",
"target": "groupByNode(exclude(snap.$cluster.$node.grafanalabs.cadvisor.container.$namespace.$pod.*.mem.usage, 'POD'), 8, 'sum')",
"textEditor": false
"refId": "A"
}
],
"thresholds": [],
Expand Down Expand Up @@ -223,9 +221,7 @@
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{ pod_name }}",
"refId": "A",
"target": "groupByNode(perSecond(exclude(snap.$cluster.$node.grafanalabs.cadvisor.container.$namespace.$pod.*.cpu.total.usage, 'POD')), 8, 'sum')",
"textEditor": false
"refId": "A"
}
],
"thresholds": [],
Expand Down Expand Up @@ -316,9 +312,7 @@
"interval": "",
"intervalFactor": 1,
"legendFormat": "{{ pod_name }}",
"refId": "A",
"target": "groupByNode(perSecond(snap.$cluster.$node.grafanalabs.cadvisor.container.$namespace.$pod.*.iface.*.in_bytes), 7, 'sum')",
"textEditor": false
"refId": "A"
}
],
"thresholds": [],
Expand Down Expand Up @@ -408,9 +402,7 @@
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{ pod_name }}",
"refId": "A",
"target": "groupByNode(perSecond(snap.$cluster.$node.grafanalabs.cadvisor.container.$namespace.$pod.*.iface.*.out_bytes), 7, 'sum')",
"textEditor": false
"refId": "A"
}
],
"thresholds": [],
Expand Down Expand Up @@ -501,9 +493,7 @@
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{pod_name}}",
"refId": "A",
"target": "groupByNode(perSecond(exclude(snap.$cluster.$node.grafanalabs.cadvisor.container.$namespace.$pod.*.diskio.*.reads, 'POD')), 8, 'sum')",
"textEditor": false
"refId": "A"
}
],
"thresholds": [],
Expand Down Expand Up @@ -591,9 +581,7 @@
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{ pod_name }}",
"refId": "A",
"target": "groupByNode(perSecond(exclude(snap.$cluster.$node.grafanalabs.cadvisor.container.$namespace.$pod.*.diskio.*.writes, 'POD')), 8, 'sum')",
"textEditor": false
"refId": "A"
}
],
"thresholds": [],
Expand Down
28 changes: 7 additions & 21 deletions dist/dashboards/kubernetes-node.json
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,6 @@
"format": "time_series",
"intervalFactor": 1,
"refId": "A",
"target": "alias(averageSeries(snap.$cluster.$node.intel.procfs.load.min1_rel), 'short term')",
"textEditor": false
}
],
Expand Down Expand Up @@ -442,8 +441,7 @@
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{ nodename }} free",
"refId": "B",
"target": "aliasSub(groupByNode(snap.$cluster.$node.intel.procfs.filesystem.rootfs.space_used, 2, 'maxSeries'), '(.*)', '\\1 Usage')"
"refId": "B"
},
{
"expr": "(sum(node_filesystem_size{nodename=~\"$node\"}) by (nodename) - sum(node_filesystem_free) by (nodename))",
Expand Down Expand Up @@ -536,18 +534,14 @@
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Read",
"refId": "A",
"target": "alias(sumSeries(snap.$cluster.$node.intel.iostat.device.*.rkB_per_sec), 'Read Bps')",
"textEditor": false
"refId": "A"
},
{
"expr": "sum(rate(node_disk_bytes_written{nodename=~\"$node\"}[5m]))",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Write",
"refId": "B",
"target": "alias(sumSeries(snap.$cluster.$node.intel.iostat.device.*.wkB_per_sec), 'Write Bps')",
"textEditor": false
"refId": "B"
}
],
"thresholds": [],
Expand Down Expand Up @@ -630,18 +624,14 @@
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Reads",
"refId": "A",
"target": "alias(sumSeries(snap.$cluster.$node.intel.iostat.device.ALL.r_per_sec), 'rIOPS')",
"textEditor": false
"refId": "A"
},
{
"expr": "sum(rate(node_disk_writes_completed{nodename=~\"$node\"}[5m]))",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Writes",
"refId": "B",
"target": "alias(sumSeries(snap.$cluster.$node.intel.iostat.device.ALL.w_per_sec), 'wIOPS')",
"textEditor": false
"refId": "B"
}
],
"thresholds": [],
Expand Down Expand Up @@ -919,18 +909,14 @@
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "receive",
"refId": "A",
"target": "alias(sumSeries(perSecond(snap.$cluster.$node.intel.procfs.iface.{eth*,en*}.packets_recv)), 'in')",
"textEditor": false
"refId": "A"
},
{
"expr": "sum(rate(node_network_transmit_packets{nodename=~\"$node\"}[5m]))",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "transmit",
"refId": "B",
"target": "alias(sumSeries(perSecond(snap.$cluster.$node.intel.procfs.iface.{eth*,en*}.packets_sent)), 'out')",
"textEditor": false
"refId": "B"
}
],
"thresholds": [],
Expand Down
8 changes: 4 additions & 4 deletions src/components/clusters/clusterConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ export class ClusterConfigCtrl {

deploy() {
var question = !this.prometheusDeployed ?
'This action will deploy a DaemonSet to your Kubernetes cluster. It uses Intel Snap to collect health metrics. ' +
'This action will deploy Prometheus exporters to your Kubernetes cluster.' +
'Are you sure you want to deploy?' :
'This action will update the Config Map for the Snap DaemonSet and recreate the snapd pod on your Kubernetes cluster. ' +
'This action will update the Prometheus exporters on your Kubernetes cluster. ' +
'Are you sure you want to deploy?';
appEvents.emit('confirm-modal', {
title: 'Deploy to Kubernetes Cluster',
Expand Down Expand Up @@ -324,7 +324,7 @@ export class ClusterConfigCtrl {
this.alertSrv.set("Error", err, 'error');
}).then(() => {
this.prometheusDeployed = true;
this.alertSrv.set("Deployed", "Snap DaemonSet for Kubernetes metrics deployed to " + self.cluster.name, 'success', 5000);
this.alertSrv.set("Deployed", "Prometheus and exporters have been deployed to " + self.cluster.name, 'success', 5000);
});
}

Expand Down Expand Up @@ -357,7 +357,7 @@ export class ClusterConfigCtrl {
})
.then(() => {
this.prometheusDeployed = false;
this.alertSrv.set("Daemonset removed", "Snap DaemonSet for Kubernetes metrics removed from " + self.cluster.name, 'success', 5000);
this.alertSrv.set("Grafana K8s removed", "Prometheus and exporters removed from " + self.cluster.name, 'success', 5000);
});
}

Expand Down
4 changes: 2 additions & 2 deletions src/components/config/config.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<h3 class="page-heading">Kubernetes App</h3>
This app integrates the data collected from <a href="https://hub.docker.com/r/raintank/snap_k8s/" target="_blank">Snap running in Kubernetes</a> with data available via the Kubernetes API.
This app integrates the data collected from <a href="https://github.com/google/cadvisor" target="_blank">Kubelet</a>, <a href="https://github.com/kubernetes/kube-state-metrics" target="_blank">Kube-State Metrics</a>, and <a href="https://github.com/prometheus/node_exporter" target="_blank">Node Exporter</a> with data available via the Kubernetes API.
<div class="pluginconfig-message" ng-if="ctrl.appModel.enabled">
<i class="icon-gf icon-gf-check k8s-icon-success"></i> Dashboards imported. <strong>Next up: </strong><a href="plugins/raintank-kubernetes-app/page/cluster-config" class="external-link">Connect to your Kubernetes Cluster and deploy metric collectors</a>
<i class="icon-gf icon-gf-check k8s-icon-success"></i> Dashboards imported. <strong>Next up: </strong><a href="plugins/raintank-kubernetes-app/page/cluster-config" class="external-link">Connect to your Kubernetes Cluster and deploy metric exporters</a>
</div>
24 changes: 6 additions & 18 deletions src/dashboards/kubernetes-container.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,7 @@
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{ pod_name }}",
"refId": "A",
"target": "groupByNode(exclude(snap.$cluster.$node.grafanalabs.cadvisor.container.$namespace.$pod.*.mem.usage, 'POD'), 8, 'sum')",
"textEditor": false
"refId": "A"
}
],
"thresholds": [],
Expand Down Expand Up @@ -223,9 +221,7 @@
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{ pod_name }}",
"refId": "A",
"target": "groupByNode(perSecond(exclude(snap.$cluster.$node.grafanalabs.cadvisor.container.$namespace.$pod.*.cpu.total.usage, 'POD')), 8, 'sum')",
"textEditor": false
"refId": "A"
}
],
"thresholds": [],
Expand Down Expand Up @@ -316,9 +312,7 @@
"interval": "",
"intervalFactor": 1,
"legendFormat": "{{ pod_name }}",
"refId": "A",
"target": "groupByNode(perSecond(snap.$cluster.$node.grafanalabs.cadvisor.container.$namespace.$pod.*.iface.*.in_bytes), 7, 'sum')",
"textEditor": false
"refId": "A"
}
],
"thresholds": [],
Expand Down Expand Up @@ -408,9 +402,7 @@
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{ pod_name }}",
"refId": "A",
"target": "groupByNode(perSecond(snap.$cluster.$node.grafanalabs.cadvisor.container.$namespace.$pod.*.iface.*.out_bytes), 7, 'sum')",
"textEditor": false
"refId": "A"
}
],
"thresholds": [],
Expand Down Expand Up @@ -501,9 +493,7 @@
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{pod_name}}",
"refId": "A",
"target": "groupByNode(perSecond(exclude(snap.$cluster.$node.grafanalabs.cadvisor.container.$namespace.$pod.*.diskio.*.reads, 'POD')), 8, 'sum')",
"textEditor": false
"refId": "A"
}
],
"thresholds": [],
Expand Down Expand Up @@ -591,9 +581,7 @@
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{ pod_name }}",
"refId": "A",
"target": "groupByNode(perSecond(exclude(snap.$cluster.$node.grafanalabs.cadvisor.container.$namespace.$pod.*.diskio.*.writes, 'POD')), 8, 'sum')",
"textEditor": false
"refId": "A"
}
],
"thresholds": [],
Expand Down
28 changes: 7 additions & 21 deletions src/dashboards/kubernetes-node.json
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,6 @@
"format": "time_series",
"intervalFactor": 1,
"refId": "A",
"target": "alias(averageSeries(snap.$cluster.$node.intel.procfs.load.min1_rel), 'short term')",
"textEditor": false
}
],
Expand Down Expand Up @@ -442,8 +441,7 @@
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{ nodename }} free",
"refId": "B",
"target": "aliasSub(groupByNode(snap.$cluster.$node.intel.procfs.filesystem.rootfs.space_used, 2, 'maxSeries'), '(.*)', '\\1 Usage')"
"refId": "B"
},
{
"expr": "(sum(node_filesystem_size{nodename=~\"$node\"}) by (nodename) - sum(node_filesystem_free) by (nodename))",
Expand Down Expand Up @@ -536,18 +534,14 @@
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Read",
"refId": "A",
"target": "alias(sumSeries(snap.$cluster.$node.intel.iostat.device.*.rkB_per_sec), 'Read Bps')",
"textEditor": false
"refId": "A"
},
{
"expr": "sum(rate(node_disk_bytes_written{nodename=~\"$node\"}[5m]))",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Write",
"refId": "B",
"target": "alias(sumSeries(snap.$cluster.$node.intel.iostat.device.*.wkB_per_sec), 'Write Bps')",
"textEditor": false
"refId": "B"
}
],
"thresholds": [],
Expand Down Expand Up @@ -630,18 +624,14 @@
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Reads",
"refId": "A",
"target": "alias(sumSeries(snap.$cluster.$node.intel.iostat.device.ALL.r_per_sec), 'rIOPS')",
"textEditor": false
"refId": "A"
},
{
"expr": "sum(rate(node_disk_writes_completed{nodename=~\"$node\"}[5m]))",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Writes",
"refId": "B",
"target": "alias(sumSeries(snap.$cluster.$node.intel.iostat.device.ALL.w_per_sec), 'wIOPS')",
"textEditor": false
"refId": "B"
}
],
"thresholds": [],
Expand Down Expand Up @@ -919,18 +909,14 @@
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "receive",
"refId": "A",
"target": "alias(sumSeries(perSecond(snap.$cluster.$node.intel.procfs.iface.{eth*,en*}.packets_recv)), 'in')",
"textEditor": false
"refId": "A"
},
{
"expr": "sum(rate(node_network_transmit_packets{nodename=~\"$node\"}[5m]))",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "transmit",
"refId": "B",
"target": "alias(sumSeries(perSecond(snap.$cluster.$node.intel.procfs.iface.{eth*,en*}.packets_sent)), 'out')",
"textEditor": false
"refId": "B"
}
],
"thresholds": [],
Expand Down
Loading

0 comments on commit ca9d31d

Please sign in to comment.