forked from ncarlier/za
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzero-analytics.example.toml
59 lines (53 loc) · 1.84 KB
/
zero-analytics.example.toml
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
# ZerØ Analytics configuration file
[global]
## GeoIP database location. GeoIP is disabled if not set.
#geo_ip_database = "/var/opt/za/dbip-country-lite.mmdb"
# Global tags can be specified here in key="value" format.
#[global.tags]
# dc = "eu-west-1" # will tag all metrics with dc=eu-west-1
# ## Environment variables can be used as tags, and throughout the config file
# user = "$USER"
# List of trackers
[[trackers]]
## Tracking ID
tracking_id = "UA-XXXX-Y"
## Only HTTP request from this origin will be collected
## Supports '*' as wildcard. Ex: "*", "http://*.example.com", ...
origin = "http://localhost:8000"
## Badge configuration (<title>|<label>|<color>)
#badge = "zero|analytics|#00a5da"
# File output configuration
#[[outputs.file]]
# ## Files to write to, "stdout" is a specially handled file.
# files = ["stdout"]
# ## Data format to output ("json" or "template")
# data_format = "json"
# ## Go template used by the template data format. By defaut "Common Log Format".
# #data_format_template = "{{.ClientIP}} {{.HostName}} - [{{.FormattedTS}}] \"GET {{.DocumentPath}} {{.Protocol}}\" 200 1 \"{{.DocumentReferer}}\" \"{{.UserAgent}}\""
# Loki output configuration
#[[outputs.loki]]
# ## Loki URL
# url = "http://localhost:3100"
# ## Data format to output ("json" or "template")
# #data_format = "json"
# ## Timeout.
# timeout = "2s"
# ## Batch size.
# batch_size = 10
# ## Batch interval
# batch_interval = "10s"
# HTTP output configuration
#[[outputs.http]]
# ## URL is the address to send events to
# url = "http://127.0.0.1:8080/"
# ## Timeout for HTTP message
# # timeout = "5s"
# ## HTTP method, one of: "POST" or "PUT"
# # method = "POST"
# ## HTTP Basic Auth credentials
# # username = "username"
# # password = "pa$$word"
# ## Compress body request using GZIP
# # gzip = true
# ## Data format to output.
# data_format = "json"