GithubHelp home page GithubHelp logo

kpimon-go's Introduction

KPImonxApp

===========================

This repository contains the source for the RIC KPI monitoring application.

This xApp can be deploy through dms_cli. Below are the steps:

  1. Build Docker image
  2. Onboard xApp via dms_cli
  3. Deploy xApp via dms_cli
  4. Register xApp to RIC platform

Modification is based on osc ric-app-kpimon-go commit Merge "Adding code files" https://github.com/o-ran-sc/ric-app-kpimon-go

Fix build image bug by K. D.

Bug : COPY failed: no source files were specified See Dockerfile

Writing InfluxDB by K. D.

  • Write Data in UE Metrics to InfluxDB

Why

It is wrong to write JSON data to InfluxDB directly, (I think OSC has left the coding space for us to write InfluxDB according to the data we need to use.)

Official Documentation describe what kind of type of key & value we can use in InfluxDB v1.8 we're using in the E-Release Platform.

Quick start

Below are all using the souce code from osc ric-app-kpimon-go commit Merge "Adding code files"

// Define data in types.go
type UeMetricsEntry struct {
	UeID                   int64        `json:"UEID"`
}
// Assign it as data parsed from ric indication message in func handleIndication in control.go 
func (c *Control) handleIndication(params *xapp.RMRParams) (err error) {

    // some code here ....


    ueMetrics.UeID = ueID

    // some code here ....
}
// Write InfluxDB in func writeUeMetrics_db in control.go
func (c *Control) writeUeMetrics_db(ueMetrics UeMetricsEntry) {


    // some code here ....

	p := influxdb2.NewPointWithMeasurement("ricIndication_UeMetrics").
		AddField("UEID", ueMetrics.UeID).
		SetTime(time.Now())
	writeAPI.WritePoint(context.Background(), p)

    
    // some code here ....
}

kpimon-go's People

Contributors

tungchiaming avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.