Skip to content

Commit

Permalink
style: run make fmt and revert docs change
Browse files Browse the repository at this point in the history
  • Loading branch information
Duologic committed Sep 24, 2024
1 parent ff44b48 commit 6aa4b63
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
12 changes: 6 additions & 6 deletions custom/util/grid.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ local panelUtil = import './panel.libsonnet';
// start new row as width exceeds gridWidth
{
panels+: [
panel {
panel + {
gridPos+:
{
x: 0,
Expand All @@ -120,7 +120,7 @@ local panelUtil = import './panel.libsonnet';
// enough width, place panel on current row
{
panels+: [
panel {
panel + {
gridPos+:
{
x: acc.cursor.x,
Expand Down Expand Up @@ -159,9 +159,9 @@ local panelUtil = import './panel.libsonnet';
},
},
);
acc {
acc + {
panels+: [
panel {
panel + {
//rows panels
panels: rowPanels.panels,
gridPos+: {
Expand All @@ -175,9 +175,9 @@ local panelUtil = import './panel.libsonnet';
cursor:: rowPanels.cursor,
}
else
acc {
acc + {
panels+: [
panel {
panel + {
panels: [],
gridPos+:
{
Expand Down
6 changes: 4 additions & 2 deletions docs/examples/simple.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ g.dashboard.new('Faro dashboard')
+ g.dashboard.withPanels([
g.panel.timeSeries.new('Requests / sec')
+ g.panel.timeSeries.queryOptions.withTargets([
g.query.testData.withQueryType('randomWalk')
+ g.query.testData.withDatasource(),
g.query.prometheus.new(
'mimir',
'sum by (status_code) (rate(request_duration_seconds_count{job=~".*/faro-api"}[$__rate_interval]))',
),
])
+ g.panel.timeSeries.standardOptions.withUnit('reqps')
+ g.panel.timeSeries.gridPos.withW(24)
Expand Down
12 changes: 6 additions & 6 deletions gen/grafonnet-v11.1.0/custom/util/grid.libsonnet

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6aa4b63

Please sign in to comment.