You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

High level architecture


Overview

RIC alarm system implements two components: Alarm Adapter and application library interface

The AlarmAdapter is responsible for managing alarm situations in RIC cluster and interfacing with Northboubd applications such as Prometheus AlertManager to post the alarms as alerts. AlertManager takes care of deduplicating, silencing and inhibition (suppressing) of alerts, and routing them to the VESAgent, which, in turn, takes care of converting alerts to faults and sending them to ONAP as VES events.

The Alarm Library provides a simple interface for RIC applications (both platform application and xApps) to raise, clear and re-raise. The Alarm Library interacts with the AlarmAdapter via RMR interface.

Alarm Adapter

TODO

Alarm Library

Initialization

A new alarm instance is created with InitAlarm()-function. ManagedObject (mo) and Application (ap) identities are given as a parameter

Alarm Context/Object

The Alarm object contains following parameters:

  • SpecificProblem: problem that is the cause of the alarm

  • PerceivedSeverity: The severity of the alarm, see above for possible values

  • ManagedObjectId: The name of the managed object that is the cause of the fault

  • ApplicationId: The name of the process raised the alarm

  • AdditionalInfo: Additional information given by the application

  • IdentifyingInfo: Identifying additional information, which is part of alarm identity

ManagedObjectId (mo), SpecificProblem (sp), ApplicationId (ap) and IdentifyingInfo (IdentifyingInfo) make up the identity of the alarm. All parameters must be according to the alarm definition, i.e. all mandatory parameters should be present, and parameters should have correct value type or be from some predefined range. Addressing the same alarm instance in a clear() or reraise() call is done by making sure that all four values are the same is in the original raise() / reraise() call.

Alarm APIs

  • Raise: Raises the alarm instance given as a parameter

  • Clear: Clears the alarm instance given as a parameter, if it the alarm active

  • Reraise: Attempts to re-raise the alarm instance given as a parameter

  • ClearAll: Clears all alarms matching moId and appId given as parameters

Examples

```go
package main

import (
    alarm "gerrit.o-ran-sc.org/r/ric-plt/alarm-go/alarm"
)

func main() {
    // Initialize the alarm component
    alarmer, err := alarm.InitAlarm("my-pod", "my-app")

    // Create a new Alarm object (SP=8004, etc)
    alarm := alarmer.NewAlarm(8004, alarm.SeverityMajor, "NetworkDown", "eth0")

    // Raise an alarm (SP=8004, etc)
    err := alarmer.Raise(alarm)

    // Clear an alarm (SP=8004)
    err := alarmer.Clear(alarm)

    // Re-raise an alarm (SP=8004)
    err := alarmer.Reraise(alarm)

    // Clear all alarms raised by the application
    err := alarmer.ClearAll()
}
```


  • No labels