跳到主要內容

Nodefly

一個線上監控雲端伺服器服務的網站,透過簡單的指令安裝Agent後即可監控主機上的服務,目前監控看起來滿多樣化的∼
下面是網站上的介紹:

NodeFly - Providing real-time monitoring across cloud instances

  • Fast Set up - One line install so you can be monitoring in literally seconds
  • Unified Dashboard - Visualize all your data in one location
  • Supporting multiple clouds + physical hardware
  • Monitor what is important to ensure applications stay up and running
  • Gain real-time insight into capacity utilization and instantly see how changing usage affects performance
  • Ensure instances aren't over or underutilized
  • Dig deep into you services layer to optimize your app performance

Simplicity is the key. NodeFly has developed "active discovery" which will proactively find and setup monitors for all of your available services.

We allow our users to gain detailed, real-time performance monitoring of cloud and application services so they can see everything that is happening, as it happens. From understanding system usage at every moment in time to uncovering and resolving issues within the application as they arise.

NodeFly makes adding servers from any of our 8 supported clouds takes seconds. All you do is add your API details and we pull all your details for you. Adding physical servers is also a snap; just install the NodeFly Agent.


這個網誌中的熱門文章

使用 minikube 輕鬆上手 kubernetes

安裝minikube
macOS只需要透過brew即可快速安裝...
brew cask install minikube
Linux環境可以直接下載執行檔,放到環境變數可以吃到的路徑即可...
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && \ chmod +x minikube && \
sudo mv minikube /usr/local/bin/
Windows的下載網址如下: https://storage.googleapis.com/minikube/releases/latest/minikube-windows-amd64.exe
如果您的kubectl尚未安裝,可以直接使用google cloud sdk來安裝:
curl https://sdk.cloud.google.com | bash
gcloud components install kubectl
安裝完成後,原則上minikube會在本地端加入minikube的k8s context,我們可以透過下面指令來使用該context…
kubectl config use-context minikube
然後,可檢查一下您的minikube node是否正常運作....

Oracle LISTAGG

同事介紹的一個Oracle的好用查詢:LISTAGG
SELECT A.GROUP_ID,A.KEY, LISTAGG(A.VALUE,'; ')WITHINGROUP(ORDERBYA.VALUE)as GG  fromSYS_PROPERTIESaGROUP byA.GROUP_ID,A.KEY
LISTAGG可以將group後的結果會總顯示於一個欄位 上述SQL原本A.VALUE會是一個row一個row的排列 使用LISTAGG之後,可以將A.VALUE顯示在同一個row中 並且可以指定間隔符號(在此設定為';') 針對某一些報表查詢非常有用唷 :D

Bash判斷參數是否存在

早上看到nixCraft的文章後,決定在這邊記錄一下...
透過之前提過的 -z "$var"可以判斷var這個變數是否存在 而很多的shell希望判斷可以再精簡一點... 所以會有結合[ test ]跟&&, ||來做流程的方式 其中: [ ] 裡面可以放test語句,執行完會傳出結果為true或false || 我比較不常用,看起來是如果前面為非則執行後面的程式段落 && 這個後面接的是當前面段落執行無錯誤時候,則執行後面程式段落
透過上面說明,使用"||"組句的話,我們可以把判斷是這樣寫:
[ -z "$var" ] || echo "Empty"     #如果var存在為非,則echo Empty
[[ -z "$var" ]] || echo "Empty"   #同上
反之,使用"&&"組句的話,可以:
[ ! -z "$var" ] && echo "Empty"   #如果var存在為是,則echo Empty
[[ ! -z "$var" ]] && echo "Empty" #同上
參考自: http://www.cyberciti.biz/faq/unix-linux-bash-script-check-if-variable-is-empty/