-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathjson-log-exporter.yml
61 lines (61 loc) · 1.4 KB
/
json-log-exporter.yml
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
55
56
57
58
59
60
61
---
labels:
foo: bar
exports:
- name: export1
path: /metrics/counts-and-gauges
- name: anotherexport
path: /metrics/histo-and-summ
log_groups:
- name: requests
source_files:
- /var/log/thread1.log
- /var/log/thread2.log
labels:
foo: bar
user_agent: "{{.user_agent}}"
client_ip: "{{.x_forwarded_for}}"
metrics:
- name: count_total
type: counter
export_to: export1
labels:
referer: "{{.referer}}"
- name: response_bytes_total
type: counter
value: "{{.response_bytes}}"
export_to: export1
labels:
foo: override
- name: response_time_seconds
type: histogram
value: "{{.response_time}}"
export_to: anotherexport
buckets:
- 0.001
- 0.05
- 0.1
labels:
key1: value1
- name: remaining_credits
type: gauge
value: "{{.credits}}"
export_to: export1
- name: request_time_seconds
type: summary
value: "{{.request_time}}"
export_to: anotherexport
objectives:
0.5: 0.05
max_age: 600
age_buckets: 10
- name: actions
source_files:
- /var/log/actions.log
labels:
domain: "{{.domain}}"
actor: "{{.user_id}}"
metrics:
- name: count_total
type: counter
export_to: export1