Skip to content

Commit 1de18bd

Browse files
Mcd rmp (#2293)
* Fix condition event_type MyStore_FileSize_SQL * Add relationships for ePROD, POS and Sesame. Add MyStore dashboard and goldenmetrics * Update chart locations * Update uniqueCount to use entity.guid * Fix relationship files syntax * Update relationship names * Remove hostname exists * update condition attribute syntax * Fix hostname condition * Update MyStore test data --------- Co-authored-by: vlopeziglesias <[email protected]>
1 parent 66229eb commit 1de18bd

File tree

16 files changed

+303
-47
lines changed

16 files changed

+303
-47
lines changed

entity-types/ext-digitalordering/dashboard.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
"nrqlQueries": [
2222
{
2323
"accountId": 0,
24-
"query": "SELECT uniqueCount(*) as availability FROM XMLRPC where WayState = 'OPEN' and device.type = 'FC' and WayBusinessDay = WaySystemDate and online = '1' TIMESERIES AUTO"
24+
"query": "SELECT uniqueCount(entity.guid) as availability FROM XMLRPC WHERE WayState = 'OPEN' AND device.type = 'FC' AND WayBusinessDay = WaySystemDate AND online = '1' TIMESERIES AUTO"
2525
}
2626
]
2727
}
2828
},
2929
{
3030
"title": "Drive Thru Online",
3131
"layout": {
32-
"column": 1,
32+
"column": 5,
3333
"row": 1,
3434
"width": 4,
3535
"height": 3
@@ -41,15 +41,15 @@
4141
"nrqlQueries": [
4242
{
4343
"accountId": 0,
44-
"query": "SELECT uniqueCountunt(*) as availability FROM XMLRPC where WayState = 'OPEN' and device.type = 'DT' and WayBusinessDay = WaySystemDate and online = '1' TIMESERIES AUTO"
44+
"query": "SELECT uniqueCount(entity.guid) as availability FROM XMLRPC WHERE WayState = 'OPEN' AND device.type = 'DT' AND WayBusinessDay = WaySystemDate AND online = '1' TIMESERIES AUTO"
4545
}
4646
]
4747
}
4848
},
4949
{
5050
"title": "Delivery Online",
5151
"layout": {
52-
"column": 1,
52+
"column": 9,
5353
"row": 1,
5454
"width": 4,
5555
"height": 3
@@ -61,7 +61,7 @@
6161
"nrqlQueries": [
6262
{
6363
"accountId": 0,
64-
"query": "SELECT uniqueCount(*) as availability FROM XMLRPC where WayState = 'OPEN' and device.type = 'DLV' and WayBusinessDay = WaySystemDate and online = '1' TIMESERIES AUTO"
64+
"query": "SELECT uniqueCount(entity.guid) as availability FROM XMLRPC WHERE WayState = 'OPEN' AND device.type = 'DLV' AND WayBusinessDay = WaySystemDate AND online = '1' TIMESERIES AUTO"
6565
}
6666
]
6767
}

entity-types/ext-digitalordering/golden_metrics.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@ fcOnline:
22
title: Front Counter Online
33
unit: COUNT
44
query:
5-
select: uniqueCount(id)
5+
select: uniqueCount(entity.guid)
66
from: XMLRPC
77
where: WayState = 'OPEN' and device.type = 'FC' and WayBusinessDay = WaySystemDate and online = '1'
88

99
dtOnline:
1010
title: Drive Thru Online
1111
unit: COUNT
1212
query:
13-
select: uniqueCount(id)
13+
select: uniqueCount(entity.guid)
1414
from: XMLRPC
1515
where: WayState = 'OPEN' and device.type = 'DT' and WayBusinessDay = WaySystemDate and online = '1'
1616

1717
dlvOnline:
1818
title: Delivery Online
1919
unit: COUNT
2020
query:
21-
select: uniqueCount(id)
21+
select: uniqueCount(entity.guid)
2222
from: XMLRPC
2323
where: WayState = 'OPEN' and device.type = 'DLV' and WayBusinessDay = WaySystemDate and online = '1'
24-
24+

entity-types/ext-eprod/definition.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ dashboardTemplates:
4343
template: dashboard.json
4444
configuration:
4545
# switch to longer when ready, release early to make testing easier
46-
entityExpirationTime: FOUR_HOURS
46+
entityExpirationTime: EIGHT_DAYS
4747
alertable: true
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"name": "Store Monitoring",
3+
"description": null,
4+
"pages": [
5+
{
6+
"name": "Store Monitoring",
7+
"description": null,
8+
"widgets": [
9+
{
10+
"title": "Front Counter Online",
11+
"layout": {
12+
"column": 1,
13+
"row": 1,
14+
"width": 4,
15+
"height": 3
16+
},
17+
"visualization": {
18+
"id": "viz.stacked-bar"
19+
},
20+
"rawConfiguration": {
21+
"nrqlQueries": [
22+
{
23+
"accountId": 0,
24+
"query": "SELECT uniqueCount(entity.guid) as availability FROM XMLRPC WHERE WayState = 'OPEN' AND device.type = 'FC' AND WayBusinessDay = WaySystemDate AND online = '1' TIMESERIES AUTO"
25+
}
26+
]
27+
}
28+
},
29+
{
30+
"title": "Drive Thru Online",
31+
"layout": {
32+
"column": 5,
33+
"row": 1,
34+
"width": 4,
35+
"height": 3
36+
},
37+
"visualization": {
38+
"id": "viz.stacked-bar"
39+
},
40+
"rawConfiguration": {
41+
"nrqlQueries": [
42+
{
43+
"accountId": 0,
44+
"query": "SELECT uniqueCount(entity.guid) as availability FROM XMLRPC WHERE WayState = 'OPEN' AND device.type = 'DT' AND WayBusinessDay = WaySystemDate AND online = '1' TIMESERIES AUTO"
45+
}
46+
]
47+
}
48+
},
49+
{
50+
"title": "Delivery Online",
51+
"layout": {
52+
"column": 9,
53+
"row": 1,
54+
"width": 4,
55+
"height": 3
56+
},
57+
"visualization": {
58+
"id": "viz.stacked-bar"
59+
},
60+
"rawConfiguration": {
61+
"nrqlQueries": [
62+
{
63+
"accountId": 0,
64+
"query": "SELECT uniqueCount(entity.guid) as availability FROM XMLRPC WHERE WayState = 'OPEN' AND device.type = 'DLV' AND WayBusinessDay = WaySystemDate AND online = '1' TIMESERIES AUTO"
65+
}
66+
]
67+
}
68+
}
69+
]
70+
}
71+
]
72+
}

entity-types/ext-mystore/definition.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@ synthesis:
44
name: store.number
55
identifier: store.number
66
conditions:
7-
- attribute: eventType
8-
value: MyStore_FileSizeSQL
7+
- attribute: event_type
8+
value: MyStore_FileSize_SQL
99
- attribute: FileName
1010
value: SDM
11-
# - attribute: type # do we need another clause here?
12-
# value: DT # drive through
13-
# we should rename to match naming convention across all POS systems/entity defs
14-
# best to always have them correct during ingest
11+
- attribute: hostname
12+
present: true
1513
tags:
1614
alias:
1715
multiValue: false
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
frontCounterOnline:
2+
title: "Front counter online"
3+
unit: COUNT
4+
queries:
5+
newRelic:
6+
select: uniqueCount(entity.guid)
7+
from: XMLRPC
8+
where: "WayState = 'OPEN' AND device.type = 'FC' AND WayBusinessDay = WaySystemDate AND online = '1'"
9+
eventId: store.number
10+
displayAsValue: false
11+
driveThruOnline:
12+
title: "Drive Thru Online"
13+
unit: COUNT
14+
queries:
15+
newRelic:
16+
select: uniqueCount(entity.guid)
17+
from: XMLRPC
18+
where: "WayState = 'OPEN' AND device.type = 'DT' AND WayBusinessDay = WaySystemDate AND online = '1'"
19+
eventId: store.number
20+
displayAsValue: false
21+
deliveryOnline:
22+
title: "Delivery Online"
23+
unit: COUNT
24+
queries:
25+
newRelic:
26+
select: uniqueCount(entity.guid)
27+
from: XMLRPC
28+
where: "WayState = 'OPEN' AND device.type = 'DLV' AND WayBusinessDay = WaySystemDate AND online = '1'"
29+
eventId: store.number
30+
displayAsValue: false
Lines changed: 31 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,32 @@
11
[
2-
{
3-
"eventType": "MyStore_FileSizeSQL",
4-
"CurrentSizeMB": 6035.88,
5-
"FileName": "SDM",
6-
"FreeSpaceMB": 0.94,
7-
"NRConfigRelease": "2.4",
8-
"agentName": "Infrastructure",
9-
"agentVersion": "1.28.4",
10-
"coreCount": "8",
11-
"country": "IE",
12-
"dbName": "SDM",
13-
"fullHostname": "UK01459BOS01.eur.NA.MCDCORP",
14-
"hostStatus": "running",
15-
"hostname": "UK01459BOS01",
16-
"instanceType": "Microsoft Corporation Virtual Machine",
17-
"operatingSystem": "windows",
18-
"processorCount": "1",
19-
"store.number": "07070",
20-
"systemMemoryBytes": "8588902400",
21-
"windowsFamily": "Server",
22-
"windowsPlatform": "Microsoft Windows Server 2016 Standard",
23-
"windowsVersion": "10.0.14393 Build 14393"
24-
}
25-
]
2+
{
3+
"CurrentSizeMB": 4831.25,
4+
"FileName": "SDM",
5+
"FreeSpaceMB": 98.44,
6+
"NRConfigRelease": "2.4",
7+
"agentName": "Infrastructure",
8+
"agentVersion": "1.28.4",
9+
"coreCount": "8",
10+
"country": "CH",
11+
"dbName": "SDM",
12+
"entityGuid": "MzU5MjU1NnxJTkZSQXxOQXw2NzQyODc4ODM0MjA3NzM3MTUx",
13+
"entityId": "6742878834207737151",
14+
"entityKey": "CH00117BOS01.eur.NA.MCDCORP",
15+
"entityName": "CH00117BOS01",
16+
"event_type": "MyStore_FileSize_SQL",
17+
"fullHostname": "CH00117BOS01.eur.NA.MCDCORP",
18+
"hostStatus": "running",
19+
"hostname": "CH00117BOS01",
20+
"instanceType": "Microsoft Corporation Virtual Machine",
21+
"integrationName": "com.newrelic.nri-flex",
22+
"integrationVersion": "1.5.1",
23+
"operatingSystem": "windows",
24+
"processorCount": "1",
25+
"store.number": "00117",
26+
"systemMemoryBytes": "8589463552",
27+
"timestamp": 1759329696000,
28+
"windowsFamily": "Server",
29+
"windowsPlatform": "Microsoft Windows Server 2016 Standard",
30+
"windowsVersion": "10.0.14393 Build 14393"
31+
}
32+
]

entity-types/ext-pos/dashboard.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"nrqlQueries": [
2222
{
2323
"accountId": 0,
24-
"query": "FROM Log SELECT latest(MemoryUsage) where device.type = 'POS' AND store.number IS NOT NULL AND device.number IS NOT NULL TIMESERIES "
24+
"query": "FROM Log SELECT latest(MemoryUsage) where device.type = 'POS' AND store.number IS NOT NULL AND device.number IS NOT NULL TIMESERIES"
2525
}
2626
]
2727
}

entity-types/ext-pos/definition.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ dashboardTemplates:
4343
template: dashboard.json
4444
configuration:
4545
# switch to longer when ready, release early to make testing easier
46-
entityExpirationTime: FOUR_HOURS
46+
entityExpirationTime: EIGHT_DAYS
4747
alertable: true

entity-types/ext-sesame/definition.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ synthesis:
1010
present: true
1111
- attribute: node
1212
value: PROD
13-
# - attribute: type # do we need another clause here?
14-
# value: DT # drive through
15-
# we should rename to match naming convention across all POS systems/entity defs
16-
# best to always have them correct during ingest
1713
tags:
1814
alias:
1915
multiValue: false
@@ -46,5 +42,5 @@ dashboardTemplates:
4642
template: dashboard.json
4743
configuration:
4844
# switch to longer when ready, release early to make testing easy
49-
entityExpirationTime: FOUR_HOURS
45+
entityExpirationTime: EIGHT_DAYS
5046
alertable: true

0 commit comments

Comments
 (0)