brew install goTo be able to query for prices you should have the following permissions:
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"pricing:*"
],
"Effect": "Allow",
"Resource": "*"
},
{
"Action": [
"ec2:Describe*"
],
"Effect": "Allow",
"Resource": "*"
}
]
}You could run the terraform code to create it.
set the following variables to be able to run the code:
- oidc_url: eks cluster url where you will be running the exporter.
- role_name: the name of the role to be created.
- terraform_role_ARN: the role which will create the resources.
cd terraform
terraform init
terraform apply## Binary
make build
## Docker
make dockerFor those who wants keep it simple and avoid install a lot of things:
docker build . -t cost-report
docker run -p 8080:8080 cost-reportgo mod vendor
go run main.go- Metrics: localhost:8080/metrics
- Healthcheck: localhost:8080/health
| Name | Description |
|---|---|
| label_beta_kubernetes_io_instance_type | machine type |
| label_eks_amazonaws_com_capacity_type | instance type |
| vcpu | virtual cpu |
| memory | memory |
| unit | unit |
| Description | description |
| label_topology_kubernetes_io_zone | availability zone |
| region | region |
| Name | Description |
|---|---|
| label_beta_kubernetes_io_instance_type | machine type |
| label_eks_amazonaws_com_capacity_type | instance type |
| vcpu | virtual cpu |
| memory | memory |
| unit | unit |
| Description | description |
| label_topology_kubernetes_io_zone | availability zone |
| region | region |
| Name | Description |
|---|---|
| label_beta_kubernetes_io_instance_type | machine type |
| label_eks_amazonaws_com_capacity_type | instance type |
| unit | unit |
| label_topology_kubernetes_io_zone | availability zone |
| region | region |
| Name | Description |
|---|---|
| label_beta_kubernetes_io_instance_type | machine type |
| label_eks_amazonaws_com_capacity_type | instance type |
| unit | unit |
| label_topology_kubernetes_io_zone | availability zone |
| region | region |
| Name | Description |
|---|---|
| label_beta_kubernetes_io_instance_type | machine type |
| label_eks_amazonaws_com_capacity_type | instance type |
| unit | unit |
| label_topology_kubernetes_io_zone | availability zone |
| region | region |
| Name | Description |
|---|---|
| label_beta_kubernetes_io_instance_type | machine type |
| label_eks_amazonaws_com_capacity_type | instance type |
| unit | unit |
| label_topology_kubernetes_io_zone | availability zone |
| region | region |
