Skip to content

Commit 9e27c85

Browse files
authored
Merge pull request #36 from oracle-quickstart/opencost_plugin_gl
Added opencost to plugin helm
2 parents c785c08 + c26b72f commit 9e27c85

File tree

3 files changed

+38
-2
lines changed

3 files changed

+38
-2
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,8 @@ terraform.tfstate.*
3737
generated/
3838
**/generated/
3939
test*json
40+
41+
# Helm chart dependencies
42+
*.tgz
43+
Chart.lock
44+
charts/

oci-scanner-plugin-helm/Chart.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,9 @@ dependencies:
3232
- name: device-metrics-exporter-charts
3333
version: "1.4.0"
3434
repository: "https://rocm.github.io/device-metrics-exporter/"
35-
condition: amdGpuExporter.enabled
35+
condition: amdGpuExporter.enabled
36+
37+
- name: opencost-lens
38+
version: 1.0.0
39+
repository: "https://gablyu-oci.github.io/opencost-helm-chart/"
40+
condition: opencost.enabled

oci-scanner-plugin-helm/values.yaml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,4 +271,30 @@ nodeProblemDetector:
271271
memory: 80Mi
272272
limits:
273273
cpu: 10m
274-
memory: 80Mi
274+
memory: 80Mi
275+
276+
opencost:
277+
enabled: true
278+
prometheus:
279+
internal:
280+
enabled: true
281+
namespaceName: lens
282+
serviceName: lens-prometheus-server
283+
port: 9090
284+
prometheusPushgatewayUrl: "http://lens-prometheus-pushgateway.lens.svc.cluster.local:9091"
285+
customPricing:
286+
enabled: true
287+
createConfigmap: true
288+
configmapName: pricing-configs
289+
configPath: /tmp/custom-config
290+
provider: default
291+
costModel:
292+
CPU: 0.031611
293+
spotCPU: 0.006655
294+
RAM: 0.004237
295+
spotRAM: 0.000892
296+
GPU: 6
297+
storage: 0.00005479452
298+
zoneNetworkEgress: 0.01
299+
regionNetworkEgress: 0.01
300+
internetNetworkEgress: 0.143

0 commit comments

Comments
 (0)