-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kubecost/cost-analyzer: - 2.4.3 redpanda/redpanda: - 5.9.11
- Loading branch information
1 parent
4b855b5
commit 43310d5
Showing
281 changed files
with
70,586 additions
and
3 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
annotations: | ||
artifacthub.io/links: | | ||
- name: Homepage | ||
url: https://www.kubecost.com | ||
catalog.cattle.io/certified: partner | ||
catalog.cattle.io/display-name: Kubecost | ||
catalog.cattle.io/featured: "1" | ||
catalog.cattle.io/release-name: cost-analyzer | ||
apiVersion: v2 | ||
appVersion: 2.4.3 | ||
description: Kubecost Helm chart - monitor your cloud costs! | ||
icon: file://assets/icons/cost-analyzer.png | ||
name: cost-analyzer | ||
version: 2.4.3 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Kubecost | ||
|
||
[Kubecost](https://kubecost.com/) is an open-source Kubernetes cost monitoring solution. | ||
|
||
Kubecost gives teams visibility into current and historical Kubernetes spend and resource allocation. These models provide cost transparency in Kubernetes environments that support multiple applications, teams, departments, etc. | ||
|
||
To see more on the functionality of the full Kubecost product, please visit the [features page](https://kubecost.com/#features) on our website. | ||
|
||
Here is a summary of features enabled by this cost model: | ||
|
||
- Real-time cost allocation by Kubernetes service, deployment, namespace, label, statefulset, daemonset, pod, and container | ||
- Dynamic asset pricing enabled by integrations with AWS, Azure, and GCP billing APIs | ||
- Supports on-prem k8s clusters with custom pricing sheets | ||
- Allocation for in-cluster resources like CPU, GPU, memory, and persistent volumes. | ||
- Allocation for AWS & GCP out-of-cluster resources like RDS instances and S3 buckets with key (optional) | ||
- Easily export pricing data to Prometheus with /metrics endpoint ([learn more](https://github.com/kubecost/cost-model/blob/develop/PROMETHEUS.md)) | ||
- Free and open source distribution (Apache2 license) | ||
|
||
## Requirements | ||
|
||
- Kubernetes 1.8+ | ||
- kube-state-metrics | ||
- Grafana | ||
- Prometheus | ||
- Node Exporter |
17 changes: 17 additions & 0 deletions
17
charts/kubecost/cost-analyzer/2.4.3/ci/aggregator-values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
kubecostAggregator: | ||
enabled: true | ||
cloudCost: | ||
enabled: true | ||
aggregatorDbStorage: | ||
storageRequest: 10Gi | ||
kubecostModel: | ||
federatedStorageConfigSecret: federated-store | ||
kubecostProductConfigs: | ||
cloudIntegrationSecret: cloud-integration | ||
clusterName: CLUSTER_NAME | ||
prometheus: | ||
server: | ||
global: | ||
external_labels: | ||
# cluster_id should be unique for all clusters and the same value as .kubecostProductConfigs.clusterName | ||
cluster_id: CLUSTER_NAME |
35 changes: 35 additions & 0 deletions
35
charts/kubecost/cost-analyzer/2.4.3/ci/federatedetl-primary-netcosts-values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
kubecostProductConfigs: | ||
clusterName: CLUSTER_NAME | ||
# cloudIntegrationSecret: cloud-integration | ||
federatedETL: | ||
useExistingS3Config: false | ||
federatedCluster: true | ||
kubecostModel: | ||
containerStatsEnabled: true | ||
federatedStorageConfigSecret: federated-store | ||
serviceAccount: # this example uses AWS IRSA, which creates a service account with rights to the s3 bucket. If using keys+secrets in the federated-store, set create: true | ||
create: true | ||
global: | ||
prometheus: | ||
enabled: true | ||
# fqdn: http://prometheus-operated.monitoring:9090 | ||
grafana: # prometheus metrics will be local cluster only, disable grafana to save resources | ||
enabled: false | ||
proxy: false | ||
prometheus: | ||
nodeExporter: | ||
enabled: false | ||
server: | ||
global: | ||
external_labels: | ||
# cluster_id should be unique for all clusters and the same value as .kubecostProductConfigs.clusterName | ||
cluster_id: CLUSTER_NAME | ||
networkCosts: | ||
# optional, see: https://docs.kubecost.com/install-and-configure/advanced-configuration/network-costs-configuration | ||
enabled: true | ||
config: | ||
services: | ||
# set the appropriate cloud provider to true | ||
amazon-web-services: true | ||
# google-cloud-services: true | ||
# azure-cloud-services: true |
46 changes: 46 additions & 0 deletions
46
charts/kubecost/cost-analyzer/2.4.3/ci/statefulsets-cc.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
### This test is to verify that Kubecost aggregator is deployed as a StatefulSet, | ||
### cluster controller is installed, and the various Prometheus components are installed. | ||
global: | ||
podAnnotations: | ||
kubecost.io/test1: value1 | ||
kubecost.io/test2: value2 | ||
additionalLabels: | ||
kubecosttest1: value1 | ||
kubecosttest2: value2 | ||
prometheus: | ||
enabled: true | ||
# fqdn: http://prometheus-operated.monitoring:9090 | ||
grafana: # prometheus metrics will be local cluster only, disable grafana to save resources | ||
enabled: false | ||
proxy: false | ||
kubecostProductConfigs: | ||
clusterName: CLUSTER_NAME | ||
kubecostAggregator: | ||
deployMethod: statefulset | ||
kubecostModel: | ||
federatedStorageConfigSecret: federated-store | ||
clusterController: | ||
enabled: true | ||
actionConfigs: | ||
clusterTurndown: | ||
- name: my-schedule2 | ||
start: "2034-02-09T00:00:00Z" | ||
end: "2034-02-09T01:00:00Z" | ||
repeat: none | ||
prometheus: | ||
nodeExporter: | ||
enabled: true | ||
alertmanager: | ||
enabled: true | ||
configmapReload: | ||
prometheus: | ||
enabled: true | ||
pushgateway: | ||
enabled: true | ||
server: | ||
statefulSet: | ||
enabled: true | ||
global: | ||
external_labels: | ||
# cluster_id should be unique for all clusters and the same value as .kubecostProductConfigs.clusterName | ||
cluster_id: CLUSTER_NAME |
78 changes: 78 additions & 0 deletions
78
charts/kubecost/cost-analyzer/2.4.3/crds/cluster-turndown-crd.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# TurndownSchedule Custom Resource Definition for persistence | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: turndownschedules.kubecost.com | ||
spec: | ||
group: kubecost.com | ||
names: | ||
kind: TurndownSchedule | ||
singular: turndownschedule | ||
plural: turndownschedules | ||
shortNames: | ||
- td | ||
- tds | ||
scope: Cluster | ||
versions: | ||
- name: v1alpha1 | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} | ||
schema: | ||
openAPIV3Schema: | ||
type: object | ||
properties: | ||
spec: | ||
type: object | ||
properties: | ||
start: | ||
type: string | ||
format: date-time | ||
end: | ||
type: string | ||
format: date-time | ||
repeat: | ||
type: string | ||
enum: [none, daily, weekly] | ||
status: | ||
type: object | ||
properties: | ||
state: | ||
type: string | ||
lastUpdated: | ||
format: date-time | ||
type: string | ||
current: | ||
type: string | ||
scaleDownId: | ||
type: string | ||
nextScaleDownTime: | ||
format: date-time | ||
type: string | ||
scaleDownMetadata: | ||
additionalProperties: | ||
type: string | ||
type: object | ||
scaleUpID: | ||
type: string | ||
nextScaleUpTime: | ||
format: date-time | ||
type: string | ||
scaleUpMetadata: | ||
additionalProperties: | ||
type: string | ||
type: object | ||
additionalPrinterColumns: | ||
- name: State | ||
type: string | ||
description: The state of the turndownschedule | ||
jsonPath: .status.state | ||
- name: Next Turndown | ||
type: string | ||
description: The next turndown date-time | ||
jsonPath: .status.nextScaleDownTime | ||
- name: Next Turn Up | ||
type: string | ||
description: The next turn up date-time | ||
jsonPath: .status.nextScaleUpTime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
EndTimestamp,InstanceID,Region,AssetClass,InstanceIDField,InstanceType,MarketPriceHourly,Version | ||
2028-01-06 23:34:45 UTC,,us-east-2,node,metadata.name,g4dn.xlarge,5.55, | ||
2028-01-06 23:34:45 UTC,,,node,metadata.name,R730-type1,1.35, | ||
2028-01-06 23:34:45 UTC,,,pv,metadata.name,standard,0.44, | ||
2028-01-06 23:34:45 UTC,a100,,gpu,gpu.nvidia.com/class,,0.75, | ||
2028-01-06 23:34:45 UTC,RTX3090,,gpu,nvidia.com/gpu_type,,0.65, | ||
2028-01-06 23:34:45 UTC,i-01045ab6d13179700,,,spec.providerID,,1.2, |
45 changes: 45 additions & 0 deletions
45
charts/kubecost/cost-analyzer/2.4.3/grafana-dashboards/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Kubecost Grafana Dashboards | ||
|
||
## Overview | ||
|
||
Kubecost, by default, is bundled with a Grafana instance that already contains the dashboards in this folder. | ||
|
||
The dashboards in this repo are imported into Kubecost, unless disabled with | ||
|
||
|
||
The same dashboards have template versions in [grafana-templates/](grafana-templates/) for those wanting to load the dashboards into an existing Grafana instance. | ||
|
||
## Caveats | ||
|
||
The primary purpose of the dashboards provided is to allow visibility into the metrics used by Kubecost to create the cost-model. | ||
|
||
The networkCosts-metrics dashboard requires the optional networkCosts daemonset to be [enabled](https://docs.kubecost.com/install-and-configure/advanced-configuration/network-costs-configuration). | ||
|
||
## Metrics Required | ||
|
||
`kubecost-container-stats` metrics: | ||
|
||
``` | ||
container_cpu_usage_seconds_total | ||
kube_pod_container_resource_requests | ||
container_memory_working_set_bytes | ||
container_cpu_cfs_throttled_periods_total | ||
container_cpu_cfs_periods_total | ||
``` | ||
|
||
`network-transfer-data` metrics: | ||
|
||
``` | ||
kubecost_pod_network_ingress_bytes_total | ||
kubecost_pod_network_egress_bytes_total | ||
``` | ||
|
||
`disk-usage` metrics: | ||
``` | ||
container_fs_limit_bytes | ||
container_fs_usage_bytes | ||
``` | ||
|
||
## Additional Information | ||
|
||
Kubecost Grafana [Configuration Guide](https://docs.kubecost.com/install-and-configure/advanced-configuration/custom-grafana) |
Oops, something went wrong.