lunar-collector.yml
Collector Plugin
lunar-collector.ymlType: YAML file
Form:
version: 0 name: <collector-name> description: <collector-description> author: <author-name> collectors: - <collector-configuration> - <collector-configuration> - ... inputs: <input-name>: description: <input-description> default: <default-value> ...
This page describes the configuration of a collector plugin. Collector plugins are used to collect live information from various sources to associate with individual components. Collector plugins can be imported from the Lunar configuration file, lunar-config.yml via the uses collector form.
Collector plugins can be defined either in a separate repository or in the same repository as the Lunar configuration, in a dedicated directory. Either way, the collector plugin must contain a lunar-collector.yml file in the root of the repository or directory. This file is used to configure the behavior of the collector plugin.
When using collectors in the Main or Run forms, you can also install dependencies. See installing dependencies in the Bash SDK or installing dependencies in the Python SDK for more details.
version
versionlunar-collector.yml -> versionType:
numericRequired
The version field is used to specify the version of the collector configuration file. The current version is 0.
name
namelunar-collector.yml -> nameType:
stringRequired
The name field is used to specify the name of the collector.
description
descriptionlunar-collector.yml -> descriptionType:
stringOptional
The description field is used to specify a description of the collector.
author
authorlunar-collector.yml -> authorType:
stringRequired
The author field is used to specify the author of the collector.
collectors
collectorslunar-collector.yml -> collectorsType:
arrayRequired
The collectors field is used to specify the configuration of the collector. The format of a collector is the same as in lunar-config.yml, except that the on field is not allowed. To learn more about the configuration of a collector, see the collectors page.
inputs
inputslunar-collector.yml -> inputsType:
objectOptional
The inputs field is used to specify the inputs required by the collector. Each input is defined as a key-value pair, where the key is the input name.
Inputs are passed to the collector when invoked in the form of environment variables.
description
descriptionlunar-collector.yml -> inputs.<input-name>.descriptionType:
stringOptional
The description field is used to specify a description of the input.
default
defaultlunar-collector.yml -> inputs.<input-name>.defaultType:
stringOptional
The default field is used to specify the default value of the input. If no default value is specified, the input is required.
Last updated