This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
/
appsettings.json.clean
137 lines (127 loc) · 5.15 KB
/
appsettings.json.clean
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
"Logging": {
"IncludeScopes": false,
"LogLevel": { // For Local internal logger only
"Console": "Debug",
"LocalTraceFile": "None"
}
},
"ApplicationInsights": {
"InstrumentationKey": "{{Secret:AIInstrumentationKey}}",
"TelemetryServiceEndpoint": "https://dc.services.visualstudio.com/v2/track",
"InMemoryPublishingChannel": {
"maxBacklog": 1000,
"maxWindowCount": 500,
"windowSize": "00:00:15"
},
"LogLevel": { // For ILogger implementation, ConfigureLogger() or ConfigureLogger() with category name
"Default": "Information",
"SampleAppCore": "Information"
},
// ITelemetryInitializer Assemblies added to TelemetryConfiguration.Active.TelemetryInitializers
"TelemetryInitializer": [
{
"name": "ConfigurationEnrichment",
"classAssembly": "Microsoft.AzureCAT.AppInsights.EnrichmentTelemetryInitializerFactory, Microsoft.AzureCAT.AppInsights.EnrichmentInitializer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null",
"enrichmentProperties": {
"MachineRole": "SampleApp.Test",
"Environment": "local-dev"
}
}
],
// IPopulateTelemetry Assemblies called by ILogger.Log<TState>
"PopulateTelemetry": [
{
"name": "PopulateTelemetry",
"classAssembly": "Sample.OpenSchemas.PopulateTelemetry, Sample.OpenSchemas"
}
],
// TelemetryProcessorSinks are added to the ITelemetryProcessor pipeline, TelemetryProcessorChainBuilder.Use()
"TelemetryProcessorSinks": [
{
"name": "AggMetrics",
"classAssembly": "Microsoft.AzureCAT.AppInsights.AppInsightAggMetricSinkFactory, Microsoft.AzureCAT.AppInsights.Sink.AggregatedMetric, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null",
"maxBacklog": 10000,
"maxWindowCount": 1000,
"windowSize": "00:00:15"
},
{
"name": "graphite",
"classAssembly": "Microsoft.AzureCAT.AppInsights.AppInsightGraphiteSinkFactory, Microsoft.AzureCAT.AppInsights.Sink.Graphite, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null",
"server": "{{Secret:GraphiteServer}}",
"port": 2003,
"maxBacklog": 1000,
"maxWindowCount": 1000,
"windowSize": "00:00:05",
"EventTelemetryProperties": [
"Environment",
"MachineRole",
"MachineName"
]
},
{
"name": "elasticsearch",
"classAssembly": "Microsoft.AzureCAT.AppInsights.AppInsightElasticSearchSinkFactory, Microsoft.AzureCAT.AppInsights.Sink.ElasticSearch, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null",
"indexnamebase": "{{Secret:ElasticSearchIndexBase}}",
"elasticsearchurl": "{{Secret:ElasticSearchUrl}}",
"port": 9201,
"username": "{{Secret:ElasticSearchUsername}}",
"password": "{{Secret:ElasticSearchPassword}}",
"maxBacklog": 1000,
"maxWindowCount": 1000,
"windowSize": "00:00:15",
// Provide an ITransformOutput from EventTelemtry to custom ElasticSearch JSON format
"TransformOutput": {
"name": "ElasticSearch",
"classAssembly": "Sample.OpenSchemas.ElasticSearchSinkToOpenSchema, Sample.OpenSchemas"
}
},
{
"name": "OpenSchema",
"classAssembly": "Microsoft.AzureCAT.AppInsights.AppInsightBlobSinkFactory, Microsoft.AzureCAT.AppInsights.Sink.Blob, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null",
"InstrumentationKey": "{{Secret:AIInstrumentationKey}}",
"BlobNotificationEndpoint": "https://dc.services.visualstudio.com/v2/track",
"BlobPublisher": {
"StorageAccounts": [
"DefaultEndpointsProtocol=https;AccountName={{Secret:BlobPublisherStorageAccountName1}};AccountKey={{Secret:BlobPublisherStorageAccountkey1}}"
],
"BaseContainerName": "{{Secret:BaseContainerName}}"
},
"BatchBuffer": {
"maxBacklog": 10000,
"maxWindowCount": 1000,
"windowSize": "00:00:15"
},
"BlobSinkBuffer": {
"memoryBufferBytes": 20485760,
"bufferFlush": "00:00:05",
"useGzip": true
},
// For each OpenSchemaId data source, provide an ITransformOutput from EventTelemtry to custom OpenSchema
"SchemaIdList": {
"LogOpenSchema": {
"Id": "{{Secret:LogOpenSchemaId}}",
"TransformOutput": {
"name": "LogOpenSchema",
"classAssembly": "Sample.OpenSchemas.BlobSinkToOpenSchema, Sample.OpenSchemas"
}
},
"TimedOperationOpenSchema": {
"Id": "{{Secret:TimedOperationOpenSchemaId}}",
"TransformOutput": {
"name": "TimedOperationOpenSchema",
"classAssembly": "Sample.OpenSchemas.BlobSinkToOpenSchema, Sample.OpenSchemas"
}
},
"ExceptionsOpenSchema": {
"Id": "{{Secret:ExceptionsOpenSchemaId}}",
"TransformOutput": {
"name": "ExceptionsOpenSchema",
"classAssembly": "Sample.OpenSchemas.BlobSinkToOpenSchema, Sample.OpenSchemas"
}
}
}
}
]
}
}