Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPS-6920 - Update cost-report labels #36

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
# Kubernetes Cost Report

<a href='https://github.com/jpoles1/gopherbadger' target='_blank'>![gopherbadger-tag-do-not-edit](https://img.shields.io/badge/Go%20Coverage-76%25-brightgreen.svg?longCache=true&style=flat)</a>
[![Docker](https://github.com/empathyco/platform-cost-report/actions/workflows/docker.yml/badge.svg)](https://github.com/empathyco/platform-cost-report/actions/workflows/docker.yml)
[![Gosec](https://github.com/empathyco/platform-cost-report/actions/workflows/gosec.yaml/badge.svg)](https://github.com/empathyco/platform-cost-report/actions/workflows/gosec.yaml)
[![Reviewdog](https://github.com/empathyco/platform-cost-report/actions/workflows/reviewdog.yml/badge.svg)](https://github.com/empathyco/platform-cost-report/actions/workflows/reviewdog.yml)

## Deep Dive Explanation

[Kubernetes Cost Report](https://medium.com/empathyco/cloud-finops-part-4-kubernetes-cost-report-b4964be02dc3)

## Architecture

![](docs/diagram.png)

## Requirements

```sh
Expand Down Expand Up @@ -40,6 +46,7 @@ To be able to query for prices you should have the following permissions:
]
}
```

You could run the terraform code to create it.

set the following variables to be able to run the code:
Expand All @@ -62,6 +69,7 @@ make build
## Docker
make docker
```

For those who wants keep it simple and avoid install a lot of things:

```sh
Expand All @@ -87,7 +95,7 @@ go run main.go

| Name | Description |
|----------------------------------------|-------------------|
| label_beta_kubernetes_io_instance_type | machine type |
| label_node_kubernetes_io_instance_type | machine type |
| label_eks_amazonaws_com_capacity_type | instance type |
| vcpu | virtual cpu |
| memory | memory |
Expand All @@ -100,28 +108,30 @@ go run main.go

| Name | Description |
|----------------------------------------|-------------------|
| label_beta_kubernetes_io_instance_type | machine type |
| label_node_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 |

### instance_mem_price

| Name | Description |
|----------------------------------------|-------------------|
| label_beta_kubernetes_io_instance_type | machine type |
| label_node_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 |

### instance_cpu_price

| Name | Description |
|----------------------------------------|-------------------|
| label_beta_kubernetes_io_instance_type | machine type |
| label_node_kubernetes_io_instance_type | machine type |
| label_eks_amazonaws_com_capacity_type | instance type |
| unit | unit |
| label_topology_kubernetes_io_zone | availability zone |
Expand All @@ -131,7 +141,7 @@ go run main.go

| Name | Description |
|----------------------------------------|-------------------|
| label_beta_kubernetes_io_instance_type | machine type |
| label_node_kubernetes_io_instance_type | machine type |
| label_eks_amazonaws_com_capacity_type | instance type |
| unit | unit |
| label_topology_kubernetes_io_zone | availability zone |
Expand All @@ -141,7 +151,7 @@ go run main.go

| Name | Description |
|----------------------------------------|-------------------|
| label_beta_kubernetes_io_instance_type | machine type |
| label_node_kubernetes_io_instance_type | machine type |
| label_eks_amazonaws_com_capacity_type | instance type |
| unit | unit |
| label_topology_kubernetes_io_zone | availability zone |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@
"id": "organize",
"options": {
"excludeByName": {
"label_beta_kubernetes_io_instance_type": true,
"label_node_kubernetes_io_instance_type": true,
"label_eks_amazonaws_com_capacity_type": true
},
"indexByName": {},
Expand Down Expand Up @@ -1309,7 +1309,7 @@
"id": "organize",
"options": {
"excludeByName": {
"label_beta_kubernetes_io_instance_type": true,
"label_node_kubernetes_io_instance_type": true,
"label_eks_amazonaws_com_capacity_type": true
},
"indexByName": {},
Expand Down
Loading