forked from prometheus/node_exporter
-
Notifications
You must be signed in to change notification settings - Fork 18
/
example.prom
executable file
·43 lines (43 loc) · 2.08 KB
/
example.prom
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
## # Below is an example of a full-fledged Prometheus metric exposition,
## # including comments, HELP and TYPE expressions, a histogram, a summary,
## # character escaping examples, and more. It is taken from:
## # https://prometheus.io/docs/instrumenting/exposition_formats/#text-format-example
## # More details about textfile collector you can find at:
## # https://github.com/prometheus/node_exporter#textfile-collector
## #
## # HELP http_requests_total The total number of HTTP requests.
## # TYPE http_requests_total counter
## http_requests_total{method="post",code="200"} 1027 1395066363000
## http_requests_total{method="post",code="400"} 3 1395066363000
##
## # Escaping in label values:
## msdos_file_access_time_seconds{path="C:\\DIR\\FILE.TXT",error="Cannot find file:\n\"FILE.TXT\""} 1.458255915e9
##
## # Minimalistic line:
## metric_without_timestamp_and_labels 12.47
##
## # A weird metric from before the epoch:
## something_weird{problem="division by zero"} +Inf -3982045
##
## # A histogram, which has a pretty complex representation in the text format:
## # HELP http_request_duration_seconds A histogram of the request duration.
## # TYPE http_request_duration_seconds histogram
## http_request_duration_seconds_bucket{le="0.05"} 24054
## http_request_duration_seconds_bucket{le="0.1"} 33444
## http_request_duration_seconds_bucket{le="0.2"} 100392
## http_request_duration_seconds_bucket{le="0.5"} 129389
## http_request_duration_seconds_bucket{le="1"} 133988
## http_request_duration_seconds_bucket{le="+Inf"} 144320
## http_request_duration_seconds_sum 53423
## http_request_duration_seconds_count 144320
##
## # Finally a summary, which has a complex representation, too:
## # HELP rpc_duration_seconds A summary of the RPC duration in seconds.
## # TYPE rpc_duration_seconds summary
## rpc_duration_seconds{quantile="0.01"} 3102
## rpc_duration_seconds{quantile="0.05"} 3272
## rpc_duration_seconds{quantile="0.5"} 4773
## rpc_duration_seconds{quantile="0.9"} 9001
## rpc_duration_seconds{quantile="0.99"} 76656
## rpc_duration_seconds_sum 1.7560473e+07
## rpc_duration_seconds_count 2693