Commit 3327ab15 authored by Konstantinos Poulakakis's avatar Konstantinos Poulakakis
Browse files

Add logic to analyzerHandler to sum the latency of more than one kpi and...

Add logic to analyzerHandler to sum the latency of more than one kpi and output to 1 kpi. Add add sercice rpc call when triggering alarm. Add  Kpi_samples_types for int collector data. Create INT Collector packet parser. Create automated scripts for deploying topology.
parent 9404096c
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -129,4 +129,3 @@ kubectl rollout status deployment/"$RELEASE_NAME_PROM-server" -n "$NAMESPACE" ||

# -----------------------------------------------------------
echo "All deployments completed!"
+2 −1
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@ metadata:
  labels:
    app: automationservice
spec:
  type: ClusterIP
  type: NodePort
  selector:
    app: automationservice
  ports:
@@ -74,6 +74,7 @@ spec:
      protocol: TCP
      port: 30200
      targetPort: 30200
      nodePort: 30201
    - name: metrics
      protocol: TCP
      port: 9192
+49 −0
Original line number Diff line number Diff line
apiVersion: apps/v1
kind: Deployment
metadata:
  name: int-packet-server
  labels:
    app: int-packet-server
spec:
  replicas: 1
  selector:
    matchLabels:
      app: int-packet-server
  template:
    metadata:
      labels:
        app: int-packet-server
    spec:
      hostNetwork: false
      containers:
        - name: int-packet-server
          image: labs.etsi.org:5050/tfs/controller/intcollector:latest
          ports:
            - containerPort: 12345 # Define the port the container is listening on
          env:
            - name: IFACE
              value: "eth0"
            - name: PORT
              value: "12345"
          resources:
            limits:
              memory: "256Mi"
              cpu: "500m"
            requests:
              memory: "128Mi"
              cpu: "250m"
---
apiVersion: v1
kind: Service
metadata:
  name: int-packet-server-service
spec:
  selector:
    app: int-packet-server
  ports:
    - protocol: UDP
      port: 12345  # Same as the container port
      targetPort: 12345
  type: LoadBalancer
  loadBalancerIP: 192.168.5.251
  externalTrafficPolicy: Local
+7 −1
Original line number Diff line number Diff line
@@ -94,10 +94,16 @@ metadata:
  labels:
    app: telemetryservice
spec:
  type: ClusterIP
  type: LoadBalancer
  loadBalancerIP: 192.168.5.250
  externalTrafficPolicy: Local
  selector:
    app: telemetryservice
  ports:
    - name: dnsudp
      protocol: UDP
      port: 12345
      targetPort: 12345
    - name: grpc
      protocol: TCP
      port: 30050
+12 −8
Original line number Diff line number Diff line
@@ -20,15 +20,18 @@
export TFS_REGISTRY_IMAGES="http://localhost:32000/tfs/"

# Set the list of components, separated by spaces, you want to build images for, and deploy.
export TFS_COMPONENTS="context device pathcomp service slice nbi webui"
export TFS_COMPONENTS="context device pathcomp service webui"

# Uncomment to activate Monitoring (old)
#export TFS_COMPONENTS="${TFS_COMPONENTS} monitoring"

#export TFS_COMPONENTS="automation"
# Uncomment to activate Monitoring Framework (new)
#export TFS_COMPONENTS="${TFS_COMPONENTS} kpi_manager kpi_value_writer kpi_value_api telemetry analytics automation"
export TFS_COMPONENTS="${TFS_COMPONENTS} kpi_manager kpi_value_writer kpi_value_api telemetry analytics automation"

# Uncomment to activate QoS Profiles
#export TFS_COMPONENTS="automation"

# uncomment to activate QoS Profiles
#export TFS_COMPONENTS="${TFS_COMPONENTS} qos_profile"

# Uncomment to activate BGP-LS Speaker
@@ -91,7 +94,8 @@ export TFS_COMPONENTS="context device pathcomp service slice nbi webui"


# Set the tag you want to use for your images.
export TFS_IMAGE_TAG="dev"
export TFS_IMAGE_TAG="kostasTest298"
#export TFS_IMAGE_TAG="dev"

# Set the name of the Kubernetes namespace to deploy TFS to.
export TFS_K8S_NAMESPACE="tfs"
@@ -134,10 +138,10 @@ export CRDB_PASSWORD="tfs123"
export CRDB_DEPLOY_MODE="single"

# Disable flag for dropping database, if it exists.
export CRDB_DROP_DATABASE_IF_EXISTS=""
export CRDB_DROP_DATABASE_IF_EXISTS="YES"

# Disable flag for re-deploying CockroachDB from scratch.
export CRDB_REDEPLOY=""
export CRDB_REDEPLOY="YES"


# ----- NATS -------------------------------------------------------------------
@@ -186,10 +190,10 @@ export QDB_TABLE_MONITORING_KPIS="tfs_monitoring_kpis"
export QDB_TABLE_SLICE_GROUPS="tfs_slice_groups"

# Disable flag for dropping tables if they exist.
export QDB_DROP_TABLES_IF_EXIST=""
export QDB_DROP_TABLES_IF_EXIST="YES"

# Disable flag for re-deploying QuestDB from scratch.
export QDB_REDEPLOY=""
export QDB_REDEPLOY="YES"


# ----- K8s Observability ------------------------------------------------------
Loading