summary refs log tree commit diff
path: root/scripts/cqlmetrics
diff options
context:
space:
mode:
authorFranck Cuny <fcuny@twitter.com>2018-11-23 09:27:06 -0800
committerFranck Cuny <fcuny@twitter.com>2018-11-23 09:27:06 -0800
commit4492c5cfbe0e99666afed6780b674beaa670d1a1 (patch)
tree0b60557a2640f364ddeef4cbca9d72b2358e618b /scripts/cqlmetrics
parent[tmux] Small change to binding + fix terminal (diff)
downloademacs.d-4492c5cfbe0e99666afed6780b674beaa670d1a1.tar.gz
[bash] Let's try to use emacs tty
Diffstat (limited to '')
-rwxr-xr-xscripts/cqlmetrics11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/cqlmetrics b/scripts/cqlmetrics
new file mode 100755
index 0000000..db3db6a
--- /dev/null
+++ b/scripts/cqlmetrics
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+service=$1
+
+if [ -z "${service}" ]; then
+  exit 1
+fi
+
+zone="${2:-smf1}"
+
+echo $(cql -z "${zone}" k "${service}" "sd.${service}" | fzf)