opencost
This commit is contained in:
42
infra/opencost.yaml
Normal file
42
infra/opencost.yaml
Normal file
@@ -0,0 +1,42 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: opencost
|
||||
namespace: argocd
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "1"
|
||||
labels:
|
||||
app.kubernetes.io/name: opencost
|
||||
app.kubernetes.io/part-of: monitoring
|
||||
app.kubernetes.io/managed-by: argocd
|
||||
finalizers:
|
||||
- resources-finalizer.argocd.argoproj.io
|
||||
spec:
|
||||
project: default
|
||||
|
||||
sources:
|
||||
- repoURL: https://opencost.github.io/opencost-helm-chart
|
||||
chart: opencost
|
||||
targetRevision: "1.42.0"
|
||||
helm:
|
||||
releaseName: opencost
|
||||
valueFiles:
|
||||
- $values/infra/values/opencost-values.yaml
|
||||
|
||||
- repoURL: git@github.com:fortedigital/sturdy-adventure.git
|
||||
targetRevision: HEAD
|
||||
ref: values
|
||||
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: monitoring
|
||||
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
allowEmpty: false
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
- Validate=true
|
||||
- ServerSideApply=true
|
||||
@@ -2260,3 +2260,7 @@ dashboards:
|
||||
"title": "dot-ai Logs",
|
||||
"uid": "dot-ai-logs"
|
||||
}
|
||||
opencost:
|
||||
gnetId: 15714
|
||||
revision: 1
|
||||
datasource: Prometheus
|
||||
|
||||
16
infra/values/opencost-values.yaml
Normal file
16
infra/values/opencost-values.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
opencost:
|
||||
exporter:
|
||||
defaultClusterId: launchpad
|
||||
extraEnv:
|
||||
EMIT_KSM_V1_METRICS: "false"
|
||||
EMIT_KSM_V1_METRICS_ONLY: "true"
|
||||
prometheus:
|
||||
internal:
|
||||
enabled: true
|
||||
serviceName: prometheus-server
|
||||
namespaceName: monitoring
|
||||
port: 80
|
||||
customPricing:
|
||||
enabled: true
|
||||
ui:
|
||||
enabled: true
|
||||
Reference in New Issue
Block a user