Skip to content

feat(cost-optimizer): add resource batch cron and NCP demand type env - #228

Merged
MZC-CSC merged 1 commit into
m-cmp:mainfrom
makgoon:main
Oct 15, 2026
Merged

MZC-CSC merged 1 commit into
m-cmp:mainfrom
makgoon:main

Conversation

@makgoon

@makgoon makgoon commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

The K8s/Object Storage cost feature in mc-cost-optimizer reads these env:

  • NCP collector: NCP_RESOURCE_BATCH_CRON_SCHEDULE, NCP_K8S_DEMAND_TYPE_CODES (VNKS), NCP_OBJSTG_DEMAND_TYPE_CODES (OSSM)
  • Azure collector: AZURE_RESOURCE_BATCH_CRON_SCHEDULE (AKS resource cost)

Compose falls back to defaults so an existing .env without these keys still runs the resource batches in the morning (KST) instead of the code default 00:45, and keeps NCP K8s/Object Storage collection enabled.

The K8s/Object Storage cost feature in mc-cost-optimizer reads these env:
- NCP collector: NCP_RESOURCE_BATCH_CRON_SCHEDULE, NCP_K8S_DEMAND_TYPE_CODES (VNKS),
  NCP_OBJSTG_DEMAND_TYPE_CODES (OSSM)
- Azure collector: AZURE_RESOURCE_BATCH_CRON_SCHEDULE (AKS resource cost)

Compose falls back to defaults so an existing .env without these keys still
runs the resource batches in the morning (KST) instead of the code default
00:45, and keeps NCP K8s/Object Storage collection enabled.
@MZC-CSC
MZC-CSC merged commit df77e17 into m-cmp:main Oct 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants