Intro to Prometheus - With a dash of operations & observabilityservice from the outside (Does the server answer to HTTP requests?) White-box monitoring: Instrumention code from the inside (How much time does this subroutine take?) Every service should have its own metrics are usually merged into counters and/or histograms Changing values are recorded as gauges Typical examples Access rates to a webserver (counter) Temperatures in a datacenter (gauge) Richard Hartmann & http_requests_total{env=" prod" ,method=" post" ,code=" 200" } 1027 http_requests_total{env=" prod" ,method=" post" ,code=" 400" } 3 http_requests_total{env=" prod" ,method=" post" ,code=" 500" } 12 http_requests_total{env="0 码力 | 19 页 | 63.73 KB | 1 年前3
PromQL 从入门到精通method_code:http_errors:rate5m{method="get", code="500"} 24 method_code:http_errors:rate5m{method="get", code="404"} 30 method_code:http_errors:rate5m{method="put", code="501"} 3 method_code:http_ method_code:http_errors:rate5m{method="post", code="500"} 6 3 1 2 3 1 2 3 1 2 3 4 5 method_code:http_errors:rate5m{method="post", code="404"} 21 method:http_requests:rate5m{method="get"} 600 method:htt "} 34 method:http_requests:rate5m{method="post"} 120 ## promql method_code:http_errors:rate5m{code="500"} / ignoring(code) method:http_requests:rate5m ## result {method="get"} 0.040 码力 | 16 页 | 2.77 MB | 1 年前3
OpenMetrics - Standing on the shoulders of Titanshttp_requests_total{env=" prod" ,method=" post" ,code=" 200" } 1027 http_requests_total{env=" prod" ,method=" post" ,code=" 400" } 3 http_requests_total{env=" prod" ,method=" post" ,code=" 500" } 12 http_requests_total{env=" http_requests_total{env=" prod" ,method=" get" ,code=" 200" } 20 http_requests_total{env=" test" ,method=" post" ,code=" 200" } 372 http_requests_total{env=" test" ,method=" post" ,code=" 400" } 75 Richard Hartmann, RichiH@{freenode http_requests_total{env=" prod" ,method=" post" ,code=" 200" } 1027 http_requests_total{env=" prod" ,method=" post" ,code=" 400" } 3 http_requests_total{env=" prod" ,method=" post" ,code=" 500" } 12 http_requests_total{env="0 码力 | 21 页 | 84.83 KB | 1 年前3
Prometheus Deep Dive - Monitoring. At scale.Intro 2.0 to 2.2.1 2.4 - 2.6 Beyond Outro Stability Security & quality CNCF sponsored external code review by Cure53 Focussed on security, but this always means looking at stability as well Keep in August at Google London Independent CNCF member project, IETF RFC, test suite, etc We are writing code in Prometheus and the Python client library https://github.com/OpenObservability/OpenMetrics Prometheus0 码力 | 34 页 | 370.20 KB | 1 年前3
共 4 条
- 1













