Holmes Component



See Guangrong's wiki Installation of Holmes (for Testing Purpose)



Test Resource

alarm_on.json
{ "event": { "commonEventHeader":{ "sourceId":"example-vserver-name-val-75044", "startEpochMicrosec":1413378172000000, "eventId":"ab305d54-85b4-a31b-7db2-fb6b9e546015", "sequence":0, "domain":"fault", "lastEpochMicrosec":1413378172000000, "eventName":"Fault_MultiCloud_VMFailure", "sourceName":"example-vserver-name-val-75044", "priority":"High", "version":3.0, "reportingEntityName":"Multi-Cloud" }, "faultFields": { "eventSeverity":"CRITICAL", "alarmCondition":"Guest_Os_Failure", "faultFieldsVersion":2.0, "specificProblem":"Fault_MultiCloud_VMFailure", "alarmInterfaceA":"aaaa", "eventSourceType":"other", "vfStatus":"Active" } } }
alarm_off.json
{ "event": { "commonEventHeader":{ "sourceId":"example-vserver-name-val-75044", "startEpochMicrosec":1413378172000000, "eventId":"ab305d54-85b4-a31b-7db2-fb6b9e546015", "sequence":0, "domain":"fault", "lastEpochMicrosec":1413378172000000, "eventName":"Fault_MultiCloud_VMFailureCleared", "sourceName":"example-vserver-name-val-75044", "priority":"High", "version":3.0, "reportingEntityName":"Multi-Cloud" }, "faultFields": { "eventSeverity":"CRITICAL", "alarmCondition":"Guest_Os_Failure", "faultFieldsVersion":2.0, "specificProblem":"Fault_MultiCloud_VMFailure", "alarmInterfaceA":"aaaa", "eventSourceType":"other", "vfStatus":"Active" } } }
policy_onset_input.json
{ "closedLoopEventClient": null, "policyVersion": null, "policyName": null, "policyScope": null, "target_type": "VM", "AAI": { "vserver.prov-status": "example-prov-status-val-9845", "vserver.resource-version": "1509546979412", "vserver.is-closed-loop-disabled": "false", "vserver.vserver-name2": "example-vserver-name2-val-55230", "vserver.vserver-id": "example-vserver-id-val-64888", "vserver.vserver-selflink": "example-vserver-selflink-val-91298", "vserver.in-maint": "true", "vserver.vserver-name": "example-vserver-name-val-75044", "generic-vnf.vnf-id": "example-vnf-id-val-31366", "generic-vnf.service-instance-id": "" }, "closedLoopAlarmStart": 1413378172000000, "closedLoopEventStatus": "ONSET", "version": "1.0.2", "closedLoopControlName": "ControlLoop-VOLTE-2179b738-fd36-4843-a71a-a8c24c70c55b", "target": "vserver.vserver-name", "closedLoopAlarmEnd": 0, "requestID": "a0d549da-cd11-4425-af1f-fa40fdfc44ff", "from": "DCAE" }
policy_abated_input.json
sampleves
abatedves
holmesrule



To illustrate, the content field in the above rule is presented as readable format in the following. You need to convert it to valid json string when uploading to Holmes.

Rule content field





Before install Holmes dockers, you need to install postgres

Install Postgres



Holmes can be deployed as standalone component by using the following steps

Holmes Manual Setup Steps



Update Holmes rules by deleting the existing rule with rule_id and upload the new rule

Update Holmes Rules