This section explains how to build and upload the custom collector package.
Execute this command to get a list of uploaded collector packages
curl -k -u admin:changeme $TCSA_URL/dcc/v1/packages
Execute below command from the base directory to build and upload collector package:
./build.sh <collector-directory-name> --upload
Note: To upload the collector package with same name, first delete the existing package. For further details refer Delete Collector Package
Examples:
Set the environment variable in build_config.json
To build and upload kafka collector, execute command:
./build.sh <kafka-collector-directory-name> --upload
To build and upload rest collector, execute command
sh build.sh <rest-collector-directory-name> --upload