原创 nginx location匹配順序總結

以下是自己總結的nginx location匹配順序,在第2和第3的順序上和官網文檔相左,有時間再仔細研究下 1、首先是精確匹配,用 = 表示,例如: location =  /test { ... } 2、其次是前綴匹配 ,用^~表示

原创 7. Prometheus-安裝

原文:https://prometheus.io/docs/prometheus/latest/installation/ 使用預編譯的二進制文件 我們爲大多數官方Prometheus組件提供了預編譯的二進制文件。 請查看下載部分,以獲取

原创 14. Prothetheus查詢

原文:https://prometheus.io/docs/prometheus/latest/querying/basics/ Prometheus提供了一種稱爲PromQL(Prometheus查詢語言)的功能查詢語言,使用戶可以實時

原创 6. Prometheus入門

原文:https://prometheus.io/docs/prometheus/latest/getting_started/ 本指南是一種“ Hello World”風格的教程,它通過簡單的設置示例展示瞭如何安裝、配置和使用Prome

原创 10. Prometheus-配置-報警規則

原文:https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/ 警報規則使您可以基於Prometheus表達式語言定義警報條件,並將有關觸發警報的

原创 5. Prometheus概念-Jobs和Instances

用Prometheus術語來說,您抓取的endpoint稱爲instance,通常對應於單個進程。 具有相同目的的實例的集合(例如爲提高可伸縮性或可靠性而複製的過程)稱爲job。 例如,具有四個複製實例的API服務器作業: job: ap

原创 33. Prometheus-報警-通知模板參考

原文:https://prometheus.io/docs/alerting/notifications/ Prometheus創建警報並將其發送到Alertmanager,警報管理器隨後根據報警的標籤將通知發送到不同的接收者。接收方可以

原创 12. Prometheus-配置-模板參考文檔

Prometheus支持在警報的註釋和標籤以及服務的控制檯頁面(如/consoles/index.html.example)中進行模板化。模板具有對本地數據庫運行查詢,遍歷數據,使用條件,格式化數據等功能。Prometheus模板語言基於

原创 31. Prometheus-報警-Alertmanager

原文:https://prometheus.io/docs/alerting/alertmanager/ Alertmanager處理由客戶端應用程序發送過來的報警,例如Prometheus server。它負責對報警的重複數據刪除、分組

原创 Prometheus-查詢-常用函數

原文:https://prometheus.io/docs/prometheus/latest/querying/functions/#rate 1、rate函數是專門搭配 counter類型數據使用的函數。它的功能是按照設置一個時間段,

原创 4. Prometheus概念-指標類型

Prometheus客戶端庫提供了4種核心指標類型。 當前僅在客戶端庫(以啓用針對特定類型的使用量身定製的API)和有線協議中進行區分。 Prometheus server尚未使用類型信息,而是將所有數據展平作爲未鍵入的時間序列。 將來可

原创 11. Prometheus-配置-模板示例

原文:https://prometheus.io/docs/prometheus/latest/configuration/template_examples/ Prometheus支持對警報的註釋和標籤以及服務的控制檯頁面進行模板化。

原创 33. Prometheus-報警-通知模板示例

以下是報警和相應的Alertmanager配置文件(alertmanager.yml)設置的所有不同示例。每個都使用Go模板系統。 自定義Slack通知 在此示例中,我們自定義了Slack通知,以向組織的Wiki發送有關如何處理已發送的特

原创 3. Prometheus概念-數據模型

Prometheus從根本上將所有數據存儲爲時間序列:帶有時間戳值的數據流屬於同一度量標準和同一組標籤維度。除了存儲的時間序列,Prometheus可能會生成臨時的導出時間序列作爲查詢的結果。 指標名稱和標籤 每個時間序列都由其 metr

原创 0. Prometheus總覽

原文:https://prometheus.io/docs/introduction/overview/ 什麼是Prometheus? Prometheus是最初在SoundCloud上構建的開源系統監視和告警工具包。 自2012年成立以