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
    • 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 Versions and GitHub Sync Note Insights 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
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Observability with Grafana - 劉宇哲(Ben Liu) {%hackmd @DevOpsDay/B1cnefOI0 %} #### 》[議程介紹](https://devopsdays.tw/2024/speaker-page/1500) #### 》[填寫議程滿意度問卷|回饋建言給辛苦的講者](https://forms.gle/xNaC9XEcDb6LwPXY7) > [今日的 Slide](https://github.com/ben-liu-ikala/devopsdays_observability_with_grafana) > 共筆從這開始 ## LGTM L: Loki:對應到 Log G: Grafana: Dashboard 的 UI 工具,在 Grafana 8.0 後的版本就有導入 Alert T: Tempo:對應到 Trace M: Mimir:將 Prometheus 包在裡面,Prometheus 本身沒有對 Long-Term Storage 做優化, 但 Mimir 可以選擇更便宜的OSS(例如 AWS S3, GCP GCS等)作為長期持久性的替代方案 > 或許可以考慮 [Thanos](https://landscape.cncf.io/?item=observability-and-analysis--observability--thanos)? > 黑科技之一。XD ## Observability 通過在火箭內設置很多 sensor, 能即時傳出很多遙測資料進行監測. ![624211](https://hackmd.io/_uploads/rJC7PbTvC.jpg) 資料可行性與理解認知程度的四象限圖 - Known Ubknowns 假設我是一個 oncall 人員,不知道程式內容,但是可以觀測到狀態,可以做即時的預防 - Unknown Knowns 假設我是一個開發人員,我知道程式和流量不能超過 100 RPS,可以設定阻擋策略(熔斷機制)例如70就先斷掉 - Unknown Unknowns 有個程式完全壞掉了,但是完全不知道為什麼,那怎麼辦?盡可能讓 Unknown Unknowns 問題越來越少 ## Lunch Choice Simulator ![624227](https://hackmd.io/_uploads/rkDkuWpw0.jpg) 在公司,中午的時候,大家坐電梯一起去吃飯,這個 team 有四個人,每個人都要想,今天要吃什麼,其他人去決定,同意還是不同意,會得到 API response, true or false,開出三隻 endpoint,透過按鈕的方式 - 如果多數同意的店家會變成綠色 - 不然就是紅色 - 平手就不會變色 ![624228](https://hackmd.io/_uploads/rk3EO-aD0.jpg) Lunch Choice Simulator 模擬快速地發出同意跟請求 Dashboards 看到什麼? ![624243](https://hackmd.io/_uploads/r1gPt-6DC.jpg) - 什麼食物在這間公司最受歡迎 - 團隊的決策效益好不好? - 是不是大家都有投票 - 每個食物被提出來的次數 ![624249](https://hackmd.io/_uploads/Skc6YWpPC.jpg) Grafana Tempo 產生的 R.E.D.指標以及 Service map ![624267](https://hackmd.io/_uploads/r1mW9-6PC.jpg) 通過 Tempo 的 span metric generator 產生的 metrics data ![624271](https://hackmd.io/_uploads/Hy7_qW6wA.jpg) 通過 Tempo 查詢系統的 trace 資料 ![624272](https://hackmd.io/_uploads/SkJ99ZTv0.jpg) 某個 trace 的 span 細節 ![624277](https://hackmd.io/_uploads/SJfhqW6PA.jpg) 通過 span 連結至對應的 log ![624278](https://hackmd.io/_uploads/BkT-jbTw0.jpg) - 為什麼不用 Datadog? - 我很抱歉,我沒錢 - Grafana 是相對有性價比的 ###### tags: `DevOpsDays Taipei 2024` ---- 共筆聊天室

    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