confluentinc / jmx-monitoring-stacks

📊 Monitoring examples for Confluent Cloud and Confluent Platform
Apache License 2.0
59 stars 170 forks source link

Confluent Cloud Cost Exporter- Only displaying only current month billing informaton. #249

Open davinder26 opened 2 months ago

davinder26 commented 2 months ago

Confluent Cloud Cost Exporter -How much time it will take to display previous month data.

davinder26 commented 2 months ago

@mcolomerc Confluent Cloud Cost Exporter -How much time it will take to display month wise data.I can see only current month data.

mcolomerc commented 2 months ago

@mcolomerc Confluent Cloud Cost Exporter -How much time it will take to display month wise data.I can see only current month data.

The current implementation takes "current month" to build the query. There is no previous month concept.

davinder26 commented 2 months ago

@mcolomerc -In documents specify - Start date can reach a maximum of one year into the past

But It will display current month data.

mcolomerc commented 2 months ago

@mcolomerc -In documents specify - Start date can reach a maximum of one year into the past

But It will display current month data. The exporter implementation uses current month to fill "start_date" and "end_date". You can check the API docs: https://docs.confluent.io/cloud/current/api.html#tag/Costs-(billingv1)

If you need another behaviour you are free to make a PR to the Cost Exporter