Skip to content

Commit 85f79e3

Browse files
committed
reduce unnecessary fields
1 parent c3ea566 commit 85f79e3

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

operations/alloy-mixin/dashboards/alloy-logs.libsonnet

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,6 @@ local filename = 'alloy-logs.json';
157157
dashboard.withDashboardsLink(tag=$._config.dashboardTag) +
158158
dashboard.withUID(std.md5(filename)) +
159159
dashboard.withTemplateVariablesMixin(lokiTemplateVariables) +
160-
{
161-
// Override time range to 6h instead of default 1h
162-
time: {
163-
from: 'now-6h',
164-
to: 'now',
165-
},
166-
} +
167160
dashboard.withPanelsMixin([
168161
// Logs volume panel
169162
(
@@ -187,9 +180,6 @@ local filename = 'alloy-logs.json';
187180
},
188181
]) +
189182
{
190-
id: 1,
191-
maxDataPoints: 100,
192-
pluginVersion: 'v11.0.0',
193183
fieldConfig: {
194184
defaults: {
195185
custom: {
@@ -346,8 +336,6 @@ local filename = 'alloy-logs.json';
346336
},
347337
]) +
348338
{
349-
id: 2,
350-
pluginVersion: 'v11.0.0',
351339
options: {
352340
dedupStrategy: 'exact',
353341
enableLogDetails: true,

operations/alloy-mixin/rendered/dashboards/alloy-logs.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,12 @@
146146
"x": 0,
147147
"y": 0
148148
},
149-
"id": 1,
150-
"maxDataPoints": 100,
151149
"options": {
152150
"tooltip": {
153151
"mode": "multi",
154152
"sort": "desc"
155153
}
156154
},
157-
"pluginVersion": "v11.0.0",
158155
"targets": [
159156
{
160157
"datasource": {
@@ -188,15 +185,13 @@
188185
"x": 0,
189186
"y": 6
190187
},
191-
"id": 2,
192188
"options": {
193189
"dedupStrategy": "exact",
194190
"enableLogDetails": true,
195191
"prettifyLogMessage": true,
196192
"showTime": false,
197193
"wrapLogMessage": true
198194
},
199-
"pluginVersion": "v11.0.0",
200195
"targets": [
201196
{
202197
"datasource": {
@@ -312,7 +307,7 @@
312307
]
313308
},
314309
"time": {
315-
"from": "now-6h",
310+
"from": "now-1h",
316311
"to": "now"
317312
},
318313
"timepicker": {

0 commit comments

Comments
 (0)