DevOpsDay
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # From Observability to Observability Driven Development - 董淳吉 (Marcus Tung) {%hackmd @DevOpsDay/B1cnefOI0 %} #### 》[議程介紹](https://devopsdays.tw/2024/speaker-page/700) #### 》[填寫議程滿意度問卷|回饋建言給辛苦的講者](https://forms.gle/fu2tNHxsngmpfUNHA) #### 作者補充資訊 - 鐵人賽文章 : [Observability 101](https://ithelp.ithome.com.tw/users/20162577/ironman/6448) - Github : [Observability in DevOps](https://github.com/marcustung/Observability-in-DevOps) - 講師 facebook : [m@rcus 學習筆記]( https://www.facebook.com/marcustung.tech) - 講師 blog : [m@rcus 學習筆記]( https://marcus116.blogspot.com/) > 共筆從這開始 ###### tags: `DevOpsDays Taipei 2024` 服務突然在週末下班時間crashed, 這時候會怎麼做? ![621753](https://hackmd.io/_uploads/BJga43jPA.jpg) > 人 * 架構 * 基礎建設 * 流程 * 雲端 = 系統複雜度 ![621754](https://hackmd.io/_uploads/SkigH2iD0.jpg) 300 多位高階管理者,50%有觀測性的60%縮短當機時間90%覺得有策略性價值 ## 可觀測性演進的歷史 ![621755](https://hackmd.io/_uploads/r1lNS3jPC.jpg) 基於時間點的不同, 可觀測性也隨著時間演進 ## o11y 1.0 to 2.0 ![621756](https://hackmd.io/_uploads/S1QdS3sDC.jpg) ### o11y 1.0 : 請求打到server 把經過路徑遙測出來:是慢的?壞的? 目的用於瞭解系統狀態, 簡短MTTR 三種基本遙測資料 ![image](https://hackmd.io/_uploads/HJSr3WRD0.png) - Metrics, Trace, Log - Is Promble?, Where, What #### Metrics ![image](https://hackmd.io/_uploads/SJsU3-APA.png) - 外部: SLA - 內部: SLO SLI SLS Error bufget 建立 metrics 的目的是為了滿足對外的承諾. #### Distributed Trace ![image](https://hackmd.io/_uploads/Hyha2-ADA.png) 追蹤的目的用來知道請求的節點路徑 #### Structured Log (結構化日誌) ![image](https://hackmd.io/_uploads/r1xd3bCwA.png) - 透過結構化讓機器讀,會有更多細節和統計 - 通過標準化的結構來記錄資料以及便於頗析. - 結構化log - Application Logs - Security Logs - System Log - Audit log #### 問題排除流程 ![image](https://hackmd.io/_uploads/r1kSp-RPR.png) Alert ->. 查看dashboard -> 查詢 Adhoc -> ??? -> 查看追蹤資料 -> ??? 哭啊 太快 ![621760](https://hackmd.io/_uploads/H1VxPhsP0.jpg) o11y 1.0 延伸問題: - 技術堆疊複雜度提高 - 遙測數據暴增 - 造成成本問題 蒐集這麼多資料, 不一定具備價值, 能達成成本效益. ### o11y 2.0 O11y signals 進化, 新增以下遙測資料類型 - profiles - dumps CNCF (雲端原生運算基金會)出白皮書 ### Profiling 深入應用程式得知cpu, mem stack, gc等情況 ## Shift Left ![image](https://hackmd.io/_uploads/Skav6bCDA.png) 過往關注的是發布後的維運(Operate)情況. 開發流程是左移的重點 左移到哪?左移到 CI/CD, 左移到 coding 1. 通過對程式碼行為進行假設開發 2. 使用signals 紀錄 ### Deploy stage CI/CD - pipeline 一定要穩 - 透過工具檢查 pipeline 各 stage 健康狀況 ## 可觀測性驅動開發 ODD ![image](https://hackmd.io/_uploads/BJVYTZADA.png) Plan -> design -> develop -> test 目的 1. 建立有效的反饋機制 2. 打破開發和維運之間的隔閡 3. 培養數據驅動的決策文化 RD 主要面對是已知的未知 RD 培養數據決策化 ![image](https://hackmd.io/_uploads/ByT8ohovC.png) ### ODD framework 定義 KPI -> 設計階段時考慮可觀測性 -> 蒐集遙測資料 -> 建立即時反饋機制 -> 持續優化與調整 Goal : 確保在開發週期時就具備良好的可觀測性 ### ODD 衡量指標 (有點抽象) 監控指標(系統健康) - R.E.D. - U.S.E. - Latency, traffic, erros, saturation (google 4 golden signals) 系統架構:外部服務有? 關鍵服務是? 服務之間關係是? 識別關鍵服務, 外部服務, 釐清依賴關係, 識別重要情境 系統框架: MBMP(metrics-based process management) Goal : SLA, SLOs, SLIs ### ODD 衡量指標,以AI智能客服為例 監控指標: 系統架構: 系統框架: (看投影片) Goal : 回答是 :+1: :-1: ## o11y 3.0 ![image](https://hackmd.io/_uploads/BJme2WCvR.png) 3.0 A.B.C + OTel AI : 很大的挑戰 Big Data : OpenTelemetry : 各大廠商一起訂的,目前訂到四個信號 Cloud : 實際框架運行 ## 小結 ![621784](https://hackmd.io/_uploads/H19852jDR.jpg) ---- ## 共筆聊天室: Excel 數據師 有投影片嗎? > 正在補圖片連結中,整理完會放在 [這裡](https://www.facebook.com/marcustung.tech) 喔 謝謝

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully