The unified IBM FinOps Agent for Kubecost and Cloudability products.
#!/bin/bash
#
mkdir unified-agent
cd unified-agent
git clone git@github.com:kubecost/ibm-finops-agent.git -b develop
cd ibm-finops-agentAdd the following to your .vscode/launch.json:
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Unified-Agent",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceFolder}/cmd/finops-agent",
"args": [],
"envFile": "${workspaceFolder}/env/local-run.env",
"showLog": true,
}
]
}The main entry point is
cmd/finops-agent/main.go
Opencost is configured purely with env vars, but assuming that more environment variables will be necessary, feel free to add local run and/or testing envvars to the env/local-run.env file. These are used when you debug through VS Code.