Skip to content

Commit

Permalink
try ignore case for dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
hkfgo committed May 4, 2024
1 parent 819fe8c commit 8d48752
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ public async Task<List<MeasuredMetric>> QueryMetricAsync(string metricName, List

var mostRecentMetricValue = GetMostRecentMetricValue(metricName, timeseries, maxTimeSeriesTime);
string labels = string.Join(" ", timeseries.Metadata.Select(kv => $"{kv.Key}: {kv.Value}"));
_logger.LogWarning("{labels} labels found with value {value}", labels, mostRecentMetricValue);

// Get the metric value according to the requested aggregation type
var requestedMetricAggregate = InterpretMetricValue(MetricAggregationTypeConverter.AsMetricAggregationType(aggregationType), mostRecentMetricValue);
_logger.LogWarning("{labels} labels found with value {value}", labels, mostRecentMetricValue);
try
{
var measuredMetric = metricDimensions.Any()
Expand Down

0 comments on commit 8d48752

Please sign in to comment.