-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathapi.configuration.example.json
55 lines (51 loc) · 1.36 KB
/
api.configuration.example.json
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
{
"AmbientWeather": {
"EnrichFromAmbientWeatherNetwork": true,
"UserApiKey": "<your api key>",
"ApplicationKey": "<your application key>",
"PollingFrequencySeconds": 60
},
"Observability": {
"Metrics": {
"Enabled": true
},
"Traces": {
"Enabled": true,
"AgentHost": "192.168.1.94",
"AgentPort": 6831
},
"Serilog": {
"Using": [ "Serilog.Sinks.File", "Serilog.Sinks.Console", "Serilog.Sinks.Grafana.Loki" ],
"MinimumLevel": {
"Default": "Information",
"Override": {
"Microsoft": "Error",
"System": "Error"
}
},
"WriteTo": [
{ "Name": "Console" },
{
"Name": "File",
"Args": { "path": "./output/logs.txt" }
},
{
"Name": "GrafanaLoki",
"Args": {
"uri": "http://192.168.1.94:3100",
"textFormatter": "Serilog.Sinks.Grafana.Loki.LokiJsonTextFormatter, Serilog.Sinks.Grafana.Loki",
"filtrationMode": "Include",
"filtrationLabels": [ "level" ],
"createLevelLabel": true,
"labels": [
{
"key": "container_name",
"value": "ambientweather-local-server"
}
]
}
}
]
}
}
}