Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
252 changes: 252 additions & 0 deletions entity-types/ext-as400/dashboard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,252 @@
{
"name": "AS400 Overview",
"description": null,
"pages": [
{
"name": "AS400 Overview",
"description": null,
"widgets": [
{
"visualization": {
"id": "viz.line"
},
"layout": {
"column": 1,
"row": 1,
"height": 3,
"width": 4
},
"title": "CPU utilization (%)",
"rawConfiguration": {
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT latest(percentProcessingUnitUsed) FROM `AS400:SystemStatusEvent` FACET entity.name TIMESERIES"
}
],
"yAxisLeft": {
"max": 100,
"min": 0,
"zero": true
}
}
},
{
"visualization": {
"id": "viz.line"
},
"layout": {
"column": 5,
"row": 1,
"height": 3,
"width": 4
},
"title": "Auxiliary storage (ASP) utilization (%)",
"rawConfiguration": {
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT latest(percentSystemASPUsed) FROM `AS400:SystemStatusEvent` FACET entity.name TIMESERIES"
}
],
"yAxisLeft": {
"max": 100,
"min": 0,
"zero": true
}
}
},
{
"visualization": {
"id": "viz.billboard"
},
"layout": {
"column": 9,
"row": 1,
"height": 3,
"width": 4
},
"title": "Users signed on",
"rawConfiguration": {
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT latest(currentUsersSignedOn) AS 'Users signed on' FROM `AS400:SystemStatusEvent`"
}
],
"thresholds": []
}
},
{
"visualization": {
"id": "viz.line"
},
"layout": {
"column": 1,
"row": 4,
"height": 3,
"width": 4
},
"title": "Active jobs vs. batch jobs running",
"rawConfiguration": {
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT latest(numberActiveJobsInSystem) AS 'Active jobs', latest(numberOfBatchJobsRunning) AS 'Batch jobs running' FROM `AS400:SystemStatusEvent` FACET entity.name TIMESERIES"
}
],
"yAxisLeft": {
"zero": true
}
}
},
{
"visualization": {
"id": "viz.line"
},
"layout": {
"column": 5,
"row": 4,
"height": 3,
"width": 4
},
"title": "Interactive performance (%)",
"rawConfiguration": {
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT latest(percentCurrentInteractivePerformance) FROM `AS400:SystemStatusEvent` FACET entity.name TIMESERIES"
}
],
"yAxisLeft": {
"max": 100,
"min": 0,
"zero": true
}
}
},
{
"visualization": {
"id": "viz.pie"
},
"layout": {
"column": 9,
"row": 4,
"height": 3,
"width": 4
},
"title": "Job status breakdown",
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT count(*) FROM `AS400:JobList` FACET jobStatus"
}
]
}
},
{
"visualization": {
"id": "viz.table"
},
"layout": {
"column": 1,
"row": 7,
"height": 3,
"width": 6
},
"title": "Active jobs",
"rawConfiguration": {
"dataFormatters": [],
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT jobName, jobUser, jobStatus, jobCPUUsed, jobSubsystem, jobQueue FROM `AS400:JobList` LIMIT 100"
}
]
}
},
{
"visualization": {
"id": "viz.table"
},
"layout": {
"column": 7,
"row": 7,
"height": 3,
"width": 6
},
"title": "Storage pool utilization",
"rawConfiguration": {
"dataFormatters": [],
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT poolName, poolSize, currentThreads, maximumActiveThreads, databaseFaults, nondatabaseFaults FROM `AS400:MemoryStatusEvent` LIMIT 100"
}
]
}
},
{
"visualization": {
"id": "viz.bar"
},
"layout": {
"column": 1,
"row": 10,
"height": 3,
"width": 6
},
"title": "Jobs by subsystem",
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT count(*) FROM `AS400:JobList` FACET jobSubsystem"
}
]
}
},
{
"visualization": {
"id": "viz.billboard"
},
"layout": {
"column": 7,
"row": 10,
"height": 3,
"width": 6
},
"title": "Batch job queue backlog",
"rawConfiguration": {
"nrqlQueries": [
{
"accountId": 0,
"query": "SELECT latest(numberOfBatchJobsHeldOnQueue) AS 'Held on queue', latest(numberOfBatchJobsWaitingForMessage) AS 'Waiting for message', latest(numberOfBatchJobsWaitingToRunOrAlreadyScheduled) AS 'Waiting to run' FROM `AS400:SystemStatusEvent`"
}
],
"thresholds": []
}
}
]
}
]
}
28 changes: 28 additions & 0 deletions entity-types/ext-as400/definition.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
domain: EXT
type: AS400

synthesis:
name: systemName
identifier: systemName
encodeIdentifierInGUID: true
conditions:
- attribute: eventType
prefix: 'AS400:'
tags:
numberOfProcessors:
numberOfPartitions:
partitionIdentifier:
processorSharingAttribute:

goldenTags:
- systemName
- numberOfProcessors
- partitionIdentifier

dashboardTemplates:
newRelic:
template: dashboard.json

configuration:
entityExpirationTime: EIGHT_DAYS
alertable: true
44 changes: 44 additions & 0 deletions entity-types/ext-as400/golden_metrics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
cpuUtilizationPercent:
title: CPU utilization (%)
unit: PERCENTAGE
displayAsValue: true
query:
select: latest(percentProcessingUnitUsed)
from: '`AS400:SystemStatusEvent`'
eventId: entity.guid

auxStorageUtilizationPercent:
title: Auxiliary storage utilization (%)
unit: PERCENTAGE
displayAsValue: true
query:
select: latest(percentSystemASPUsed)
from: '`AS400:SystemStatusEvent`'
eventId: entity.guid

activeJobs:
title: Active jobs
unit: COUNT
displayAsValue: true
query:
select: latest(numberActiveJobsInSystem)
from: '`AS400:SystemStatusEvent`'
eventId: entity.guid

usersSignedOn:
title: Users signed on
unit: COUNT
displayAsValue: true
query:
select: latest(currentUsersSignedOn)
from: '`AS400:SystemStatusEvent`'
eventId: entity.guid

batchJobsRunning:
title: Batch jobs running
unit: COUNT
displayAsValue: true
query:
select: latest(numberOfBatchJobsRunning)
from: '`AS400:SystemStatusEvent`'
eventId: entity.guid
12 changes: 12 additions & 0 deletions entity-types/ext-as400/summary_metrics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
cpuUtilizationPercent:
goldenMetric: cpuUtilizationPercent
title: CPU utilization (%)
unit: PERCENTAGE
auxStorageUtilizationPercent:
goldenMetric: auxStorageUtilizationPercent
title: Auxiliary storage utilization (%)
unit: PERCENTAGE
activeJobs:
goldenMetric: activeJobs
title: Active jobs
unit: COUNT
14 changes: 14 additions & 0 deletions entity-types/ext-as400/tests/AS400:JobList.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"systemName": "PUB400",
"summary": "Active job",
"jobQueue": "QBATCH",
"jobName": "QPADEV0001",
"jobUser": "USER0465",
"jobNumber": "123456",
"jobCPUUsed": "125",
"jobRunPriority": "20",
"jobStatus": "ACTIVE",
"jobSubsystem": "QINTER"
}
]
30 changes: 30 additions & 0 deletions entity-types/ext-as400/tests/AS400:MemoryStatusEvent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[
{
"systemName": "PUB400",
"eventInstanceId": "1",
"dateTimeStatusGathered": "2026-08-27T10:00:00Z",
"mainStorageSize": 16777216,
"minimumMachinePoolSize": 512,
"minimumBasePoolSize": 256,
"numberOfPools": 4,
"poolName": "*BASE",
"subsystemName": "QINTER",
"susbsystemLibraryName": "QSYS",
"pagingOption": "*FIXED",
"description": "Base pool",
"status": "0",
"systemPools": "2",
"poolSize": 262144,
"maximumActiveThreads": 128,
"databaseFaults": "12",
"databasePages": "34",
"nondatabaseFaults": "5",
"nondatabasePages": "9",
"activeToWait": "1",
"waitToIneligible": "0",
"activeToIneligible": "0",
"definedSize": 262144,
"currentThreads": "64",
"currentIneligibleThreads": "0"
}
]
Loading