-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgrok_exporter.conf
54 lines (54 loc) · 1.47 KB
/
grok_exporter.conf
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
44
45
46
47
48
49
50
51
52
53
54
global:
config_version: 3
input:
type: webhook
webhook_path: /webhook
webhook_format: json_lines
webhook_json_selector: .url
webhook_text_bulk_separator: ""
metrics:
- type: counter
name: http_requests_total
help: Number of requests processed.
match: '.*'
labels:
path: '{{ index .extra "url" }}'
method: '{{ index .extra "method" }}'
status: '{{ index .extra "status" }}'
retention: 72h
- type: histogram
name: http_latency_seconds_bucket
help: Time taken to serve the request.
match: '.*'
value: '{{ divide (index .extra "duration") 1000000 }}'
buckets: [0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10]
labels:
path: '{{ index .extra "url" }}'
method: '{{ index .extra "method" }}'
status: '{{ index .extra "status" }}'
retention: 72h
- type: histogram
name: http_sent_bytes_bucket
help: Bytes sent, including headers.
match: '.*'
value: '{{ index .extra "bytes_out" }}'
buckets: [1000, 10000, 100000, 1000000]
labels:
path: '{{ index .extra "url" }}'
method: '{{ index .extra "method" }}'
status: '{{ index .extra "status" }}'
retention: 72h
- type: histogram
name: http_received_bytes_bucket
help: Bytes received, including request and headers.
match: '.*'
value: '{{ index .extra "bytes_in" }}'
buckets: [1000, 10000, 100000, 1000000]
labels:
path: '{{ index .extra "url" }}'
method: '{{ index .extra "method" }}'
status: '{{ index .extra "status" }}'
retention: 72h
server:
host: "[::]"
port: 9144