Ultron Attendant
Ultron Attendant is a tool designed to fetch cloud resources data for Ultron. It integrates with various APIs, including émma and Redis, to provide real-time data and caching capabilities to Ultron. The application processes weighted nodes from Kubernetes clusters, calculates median prices, loads interruption rates / latency rates and caches this information for quick access by Ultron.
Ultron Attendant is built with Go and can be run as a standalone application or within a Docker container.
Prerequisites
- Go 1.23 or higher
- Docker (if you want to run the application in a container)
Environment Variables
The application requires the following environment variables to be set:
EMMA_CLIENT_ID
: Your Emma API client ID
EMMA_CLIENT_SECRET
: Your Emma API client secret
Installation
Clone the repository
git clone https://github.com/be-heroes/ultron-attendant
cd ultron-attendant
Set up environment variables
export EMMA_CLIENT_ID=your_client_id
export EMMA_CLIENT_SECRET=your_client_secret
Build the application
go build -o main main.go
Run the application
./main
Docker
To build and run the application using Docker.
Build the Docker image
docker build -t ultron-attendant:latest .
Run the Docker container
docker run -e EMMA_CLIENT_ID=your_client_id -e EMMA_CLIENT_SECRET=your_client_secret ultron-attendant:latest
Additional links