diff --git a/build/linux/installer/conf/td-agent-bit-prom-side-car.conf b/build/linux/installer/conf/td-agent-bit-prom-side-car.conf index 05fa3afd2..8a69f7995 100644 --- a/build/linux/installer/conf/td-agent-bit-prom-side-car.conf +++ b/build/linux/installer/conf/td-agent-bit-prom-side-car.conf @@ -29,9 +29,9 @@ Tag oms.container.perf.telegraf.* Listen 0.0.0.0 Port 25229 - Chunk_Size 1m - Buffer_Size 1m - Mem_Buf_Limit 20m + Chunk_Size 10m + Buffer_Size 10m + Mem_Buf_Limit 200m [OUTPUT] Name oms diff --git a/kubernetes/omsagent.yaml b/kubernetes/omsagent.yaml index 206d9a8f0..505388665 100644 --- a/kubernetes/omsagent.yaml +++ b/kubernetes/omsagent.yaml @@ -451,7 +451,7 @@ spec: resources: limits: cpu: 500m - memory: 400Mi + memory: 1Gi requests: cpu: 75m memory: 225Mi diff --git a/source/plugins/ruby/MdmMetricsGenerator.rb b/source/plugins/ruby/MdmMetricsGenerator.rb index f2aa92c14..6641456af 100644 --- a/source/plugins/ruby/MdmMetricsGenerator.rb +++ b/source/plugins/ruby/MdmMetricsGenerator.rb @@ -111,7 +111,7 @@ def appendPodMetrics(records, metricName, metricHash, batch_time, metricsTemplat if metricName == Constants::MDM_STALE_COMPLETED_JOB_COUNT metric_threshold_hash = getContainerResourceUtilizationThresholds #Converting this to hours since we already have olderThanHours dimension. - jobCompletionThresholdHours = metric_threshold_hash[Constants::JOB_COMPLETION_TIME] / 60.0 + jobCompletionThresholdHours = (metric_threshold_hash[Constants::JOB_COMPLETION_TIME] / 60.0).round(2) record = metricsTemplate % { timestamp: batch_time, metricName: metricName,