Skip to content

Orb network observability agent, part of the NetBox ecosystem and developed by NetBox Labs

License

Notifications You must be signed in to change notification settings

netboxlabs/orb-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Orb Agent - the NetBox Discovery agent

Orb agent is a component of the NetBox Discovery solution. It provides network discovery and observability capabilities and is developed by NetBox Labs.

Project status

The Orb agent project is currently in the Public Preview stage. For details, please see NetBox Labs Product and Feature Lifecycle. We actively welcome feedback to help us identify and prioritize bugs, features, and improvements.

Getting Started

To get started with orb-agent, first pull the Docker image from Docker Hub:

docker pull netboxlabs/orb-agent:latest

Orb Agent Configuration

The Orb agent requires a configuration file. This file consists of three main sections: config_manager, backends, and policies.

Config Manager

The config_manager section specifies how Orb agent should retrieve it's configuration information. The configuration manager is responsible for processing the configuration to retrieve policies and pass them to the appropriate backend.

orb:
  config_manager:
    active: local
  ...

Currently, only the local manager is supported, which retrieves policies from the local configuration file passed to the agent.

Backends

The backends section specifies what Orb agent backends should be enabled. Each Orb agent backend offers specific discovery or observability capabilities and may require specific configuration information.

orb:
  ...
  backends:
    network_discovery:
    ...

Only the network_discovery and device_discovery backends are currently supported. They do not require any special configuration.

Common

A special common subsection under backends defines configuration settings that are shared with all backends. Currently, it supports passing diode server settings to all backends.

  backends:
      ...
      common:
        diode:
          target: grpc://192.168.0.22:8080/diode
          api_key: ${DIODE_API_KEY}
          agent_name: agent01

Policies

The policies section specifies what discovery policies should be passed to each backend. Policies define specific settings for discovery (such as scheduling and default properties) and the scope (targets). Backends can run multiple policies simultaneously, but for each backend all policies must have a unique name. These policies are defined in the policies section and are grouped under a subsection for each backend:

orb:
 ...
 policies:
   device_discovery:
     device_policy_1:
       # see docs/backends/device_discovery.md
   network_discovery:
     network_policy_1:
      # see docs/backends/network_discovery.md

Running the agent

To run orb-agent, use the following command from the directory where your created your agent.yaml file:

 docker run -v $(PWD):/opt/orb/ netboxlabs/orb-agent:latest run -c /opt/orb/agent.yaml

Configuration samples

You can find complete sample configurations here of how to configure Orb agent to run network and device discoveries, as well as the relevant docker run commands.

Required Notice

Copyright NetBox Labs, Inc.