r2k1

Results 32 comments of r2k1

Test for proomtool: ```yaml tests: - interval: 1s input_series: - series: metric values: 0+1x60 promql_expr_test: - expr: count_over_time(metric[10s:1s]) eval_time: 10s exp_samples: - value: 11 - expr: count_over_time(metric[10s:1s]) eval_time: 10s1ms exp_samples:...

I wouldn't say it's noticeable only in unittest. I think it will be noticeable in queries like "last 24 hours" vs "24 hours from the beginning of the day". In...

Go 1.20 added new method `Join` to the `errors` package: https://pkg.go.dev/errors#Join

One note. Currently recommended way of installing opencost is using `latest` image tag. This can be a potentially breaking change that will be automatically delivered to many users.

I want to know how kube-state-metrics works with these clusters.

I added logger to kube-api requests. And here is what I see on my cluster: ``` 2024-02-27T15:40:34.261117+13:00 INF kube request: /api/v1/replicationcontrollers?limit=500&resourceVersion=0 2024-02-27T15:40:34.261124+13:00 INF kube request: /api/v1/pods?limit=500&resourceVersion=0 2024-02-27T15:40:34.261144+13:00 INF kube request:...

I found why pods have been requested twice: #2576

I'm keen to know about the specific use-case you're addressing with this approach. I think current export logic initiates data export at the application's start. Which, in my view, should...

Changing configuration would require a pod restart. And a pod restart would trigger the export. I didn't need to wait a day for testing. I would just restart the opencost...

Should be relatively straightforward to implement. Take a look at https://github.com/opencost/opencost/blob/develop/pkg/costmodel/csv_export.go#L292 I would begin with considering how user will configure it. Are there default fields? Do you want to make...