cm-honeybee

module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2024 License: Apache-2.0

README

Collecting and Aggregating Information From Source Computing

This repository provides a features of collection and aggregation for all source computing information. This is a sub-system on Cloud-Barista platform and utilizes CM-Beetle to migrate a multi-cloud.

Overview

Collecting and Aggregating Information From Source Computing framework (codename: cm-honeybee) is going to support:

  • collect and aggregate information from source computing about intrastructure, software, data
  • provides the Agent for collecting source computing information
Terminology
  • Source Computing
    The source computing, serving as the target for configuration and information collection, for the migration to multi-cloud
  • Target Computing
    The target computing is migration target as multi-cloud

Execution and development environment

  • Tested operating systems (OSs):
    • Ubuntu 23.10, Ubuntu 22.04, Ubuntu 18.04, Rocky Linux 9, Windows 11
  • Language:
    • Go: 1.21.5

How to run

  1. Build the binary

    make
    
  2. Write the configuration file.

  • Configuration file name is 'cm-honeybee.yaml'
  • The configuration file must be placed in one of the following directories.
    • .cm-honeybee/conf directory under user's home directory
    • 'conf' directory where running the binary
    • 'conf' directory where placed in the path of 'CMHONEYBEE_ROOT' environment variable
  • Configuration options
    • server (Need to implementation.)
      • address : Specify collection server's address ({IP or Domain}:{Port})
      • timeout : HTTP timeout value as seconds.
    • listen
      • port : Listen port of the API.
  • Configuration file example
    cm-honeybee:
        server:
            address: 172.16.0.10:8081
            timeout: 10
        listen:
            port: 8082
    
  1. Run with privileges
  • Linux
    sudo ./cm-honeybee
    
  • Windows
    • Run cm-honeybee.exe
    • Click Yes when UAC window is appears.
Download source code

Clone CM-Honeybee repository

git clone https://github.com/cloud-barista/cm-honeybee.git ${HOME}/cm-honeybee
Build CM-Honeybee

Build CM-Honeybee source code

cd ${HOME}/cm-honeybee
make build

(Optional) Update Swagger API document

cd ${HOME}/cm-honeybee
make swag

Access to Swagger UI (Default link) http://localhost:8082/honeybee/swagger/index.html

Run CM-Honeybee binary

Run CM-Honeybee server

cd ${HOME}/cm-honeybee
make build
./cm-honeybee
Health-check CM-Honeybee

Check if CM-Honeybee is running

curl http://localhost:8082/honeybee/health

# Output if it's running successfully
# {"message":"CM-Honeybee API server is running"}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL