跳到主要內容

StackDriver for Ubuntu 15

StackDriver出了Ubuntu 15的映像檔,但StackDriver的安裝過程有些錯誤,經詢問Support後,下面是完整的Ubuntu 15的安裝流程,給大家參考


1. sudo su -
2. curl -o /etc/apt/sources.list.d/stackdriver.list https://repo.stackdriver.com/trusty.list
3. curl --silent https://app.google.stackdriver.com/RPM-GPG-KEY-stackdriver |apt-key add -
4. apt-get update
5. apt-get install stackdriver-agent
6. This will update the installation, prompt you for the API key, and start the agent. If you are installing the agent in an automated fashion [1], you can preset the API key in debconf to avoid being prompted for the key by running the following command, substituting your API key [2] for STACKDRIVER_API_KEY:

sudo echo "stackdriver-agent stackdriver-agent/apikey string STACKDRIVER_API_KEY" | debconf-set-selections

7. Continue with Verifying successful Linux installation [3].

[1]: https://cloud.google.com/monitoring/agent/install-agent#automated_installation
[2]: https://cloud.google.com/monitoring/agent/install-agent#api-key
[3]: https://cloud.google.com/monitoring/agent/install-agent#verify

留言

這個網誌中的熱門文章

Share a chrome plugin for manage google cloud platform

好玩意兒報報.... 同事的新作,把Google Project List在Chrome Plugin中! 對一次管理多個專案的人來說,真得超方便的拉! 下載: https://chrome.google.com/webstore/detail/gdclauncher/bicgkglnnilldakpenngnblekooejnpg 使用說明: 1. Use browser url bar to quick search: Type "gdcl" in browser Press "TAB" to start search Type the project id key word then select the search result... 2. Using quick launch bar... You can search by keyword or click project name to go to the project or gae link to go to gae or go to billing page....

透過Google Apps Script結合Google Form做即時郵件通知

體驗過Google Apps Script的功能後,也發現他結合GmailApps的模組 GmailApps的應用可以用在表單填寫完成後,做發信的通知 例如您開立了一個訂購的表單,為了要在第一時間通知商家有訂單進入 就可以直接呼叫Gmail做發信的通知,讓手持Smart Phone的我們可以很快的知道生意上門了! 下面規劃三個function,其中: onCommit():為form commit時候觸發的function,需要掛載於form commit trigger上 jsonArrToTable():目的將json array解析成為一個Table getLastRowTable():目的將整個table的回傳過濾為剩下第一筆(表頭,含有Form的欄位說明)與最後一筆(原則上就是剛剛送出的那一筆表單) 完整程式碼如下: function onCommit(){   var sheet = SpreadsheetApp.getActiveSheet();   var rows = sheet.getDataRange();   var numRows = rows.getNumRows();   var values = rows.getValues();   var content = getLastRowTable(values);   var htmlBody = "Hi Admin: <br/><br/>有訂單拉,檢查一下吧! <br/><br/>" + content + '<br/><br/>Send by Google Apps';   GmailApp.sendEmail(     " your-email-address@gmail.com ",      "Order Confirm Notice",      htmlBody,      {from: ' from-email-...

Cloud Monitor嚐鮮

GCP上,我們非常想要的一個功能,終於問世.... Cloud Monitor來了!