forked from muety/json-log-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjson_log_exporter.yml
65 lines (65 loc) · 1.49 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
62
63
64
65
namespace: jsonlog
labels:
foo: bar
exports:
- name: export1
path: /metrics/counts-and-gauges
- name: anotherexport
path: /metrics/histo-and-summ
log_groups:
- name: requests
subsystem: requests
use_polling: false
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
subsystem: actions
use_polling: false
files:
- /var/log/actions.log
labels:
domain: "{{.domain}}"
actor: "{{.user_id}}"
metrics:
- name: count_total
type: counter
export_to: export1