Skip to content

Commit 6aee8f5

Browse files
authored
Feature/upgrade components (#25)
* added additional dashboard and updated config.alloy
1 parent 3cbc706 commit 6aee8f5

2 files changed

Lines changed: 1077 additions & 1 deletion

File tree

Grafana/Alloy/Config/config.alloy

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
local.file_match "ApiGateway" {
22
path_targets = [{
33
__address__ = "localhost",
4-
__path__ = "C:/ProgramData/Cortex/API Gateway Service/Logs/**/ServiceFabricHttpEventLog-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]{_[0-9][0-9][0-9],}.json",
4+
// This path must match the location to which logs of the API Gateway Service are written to. Glob syntax and pattern matching is supported, see https://github.com/bmatcuk/doublestar
5+
__path__ = "C:/ProgramData/Cortex/API Gateway Service/Logs/**/ServiceFabricHttpEventLog-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]{,_[0-9][0-9][0-9]}.json",
56
job = "flows",
67
}]
78
}
@@ -99,6 +100,7 @@ loki.source.file "ApiGateway" {
99100
local.file_match "ExecutionService" {
100101
path_targets = [{
101102
__address__ = "localhost",
103+
// This path must match the location to which logs of the Execution Service are written to. Glob syntax and pattern matching is supported, see https://github.com/bmatcuk/doublestar
102104
__path__ = "C:/ProgramData/Cortex/Execution Service/Logs/**/*.json",
103105
job = "ExecutionService",
104106
}]
@@ -135,6 +137,8 @@ loki.process "ExecutionService" {
135137
System = "Event.Tags.Cortex.\"System.Name\" || 'Unknown'",
136138
Tenant = "Event.Tags.Cortex.\"Tenant.Name\" || 'Unknown'",
137139
Type = "Event.LogType || 'Cortex'",
140+
FlowResult = "Event.Tags.Cortex.\"Execution.Result.Status\" || 'N/A'",
141+
Method = "Event.MethodName || 'Unknown'",
138142
}
139143
}
140144

@@ -151,9 +155,26 @@ loki.process "ExecutionService" {
151155
System = null,
152156
Tenant = null,
153157
Type = null,
158+
FlowResult = null,
159+
Method = null,
154160
}
155161
}
156162
}
163+
stage.match {
164+
selector = "{job=\"ExecutionService\"}|~ \"\\\"Method\\\":.?\\\"Cortex.FlowEngine.Execution.Engine.Run\\\"\""
165+
166+
stage.json {
167+
expressions = {
168+
Method = "'FlowExecution'",
169+
}
170+
}
171+
172+
stage.labels {
173+
values = {
174+
Method = null,
175+
}
176+
}
177+
}
157178
}
158179

159180
loki.source.file "ExecutionService" {

0 commit comments

Comments
 (0)