Skip to content

Commit

Permalink
Keep name and description first
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgianaElena committed Oct 3, 2024
1 parent 22729a0 commit 4173fd9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions grafana-dashboards/cost-attribution.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ local dashboard = grafonnet.dashboard;
local ts = grafonnet.panel.timeSeries;

local totalDailyCosts =
ts.standardOptions.withMin(20)
ts.new('Total daily costs')
+ ts.panelOptions.withDescription(
|||
Total daily costs
|||
)
+ ts.standardOptions.withMin(20)
+ ts.options.withTooltip({ mode: 'multi' })
+ ts.options.withLegend({
"calcs": [
Expand All @@ -20,12 +26,6 @@ local totalDailyCosts =
})
+ ts.fieldConfig.defaults.custom.withLineInterpolation('stepAfter')
+ ts.fieldConfig.defaults.custom.withFillOpacity(10)
+ ts.new('Total daily costs')
+ ts.panelOptions.withDescription(
|||
Total daily costs
|||
)
+ ts.standardOptions.withUnit('currencyUSD')
+ ts.queryOptions.withTargets([
{
Expand Down

0 comments on commit 4173fd9

Please sign in to comment.