Skip to content

Commit

Permalink
Restructure
Browse files Browse the repository at this point in the history
  • Loading branch information
v-zhuravlev committed Nov 16, 2023
1 parent eee116a commit 947de18
Show file tree
Hide file tree
Showing 17 changed files with 11 additions and 51 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/node-observ-lib/linux/annotations.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local g = import './g.libsonnet';
local g = import '../g.libsonnet';
local commonlib = import 'common-lib/common/main.libsonnet';
{
new(this):
Expand Down
2 changes: 1 addition & 1 deletion docs/node-observ-lib/linux/dashboards.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local g = import './g.libsonnet';
local g = import '../g.libsonnet';
local logslib = import 'github.com/grafana/jsonnet-libs/logs-lib/logs/main.libsonnet';
{
local root = self,
Expand Down
33 changes: 0 additions & 33 deletions docs/node-observ-lib/linux/jsonnetfile.json

This file was deleted.

2 changes: 1 addition & 1 deletion docs/node-observ-lib/linux/links.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local g = import './g.libsonnet';
local g = import '../g.libsonnet';
local commonlib = import 'common-lib/common/main.libsonnet';
{
new(this):
Expand Down
2 changes: 1 addition & 1 deletion docs/node-observ-lib/linux/panels.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local g = import './g.libsonnet';
local g = import '../g.libsonnet';
local commonlib = import 'common-lib/common/main.libsonnet';
local utils = commonlib.utils;
{
Expand Down
2 changes: 1 addition & 1 deletion docs/node-observ-lib/linux/targets.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local g = import './g.libsonnet';
local g = import '../g.libsonnet';
local prometheusQuery = g.query.prometheus;
local lokiQuery = g.query.loki;

Expand Down
2 changes: 1 addition & 1 deletion docs/node-observ-lib/linux/variables.libsonnet
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// variables.libsonnet
local g = import './g.libsonnet';
local g = import '../g.libsonnet';
local var = g.dashboard.variable;
local commonlib = import 'common-lib/common/main.libsonnet';
local utils = commonlib.utils;
Expand Down
2 changes: 0 additions & 2 deletions docs/node-observ-lib/macos/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion docs/node-observ-lib/macos/g.libsonnet

This file was deleted.

2 changes: 1 addition & 1 deletion docs/node-observ-lib/macos/main.libsonnet
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local g = import '../g.libsonnet';
local nodelib = import '../linux/main.libsonnet';
local alerts = import './alerts.libsonnet';
local config = import './config.libsonnet';
local g = import './g.libsonnet';
local panels = import './panels.libsonnet';
local targets = import './targets.libsonnet';

Expand Down
2 changes: 1 addition & 1 deletion docs/node-observ-lib/macos/panels.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local g = import './g.libsonnet';
local g = import '../g.libsonnet';
local commonlib = import 'common-lib/common/main.libsonnet';
local utils = commonlib.utils;
{
Expand Down
2 changes: 1 addition & 1 deletion docs/node-observ-lib/macos/targets.libsonnet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local g = import './g.libsonnet';
local g = import '../g.libsonnet';
local prometheusQuery = g.query.prometheus;
local lokiQuery = g.query.loki;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local macoslib = import './main.libsonnet';
local macoslib = import './macos/main.libsonnet';
local macos = macoslib.new();

{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
local g = import './g.libsonnet';
local nodelib = import './main.libsonnet';


local nodelib = import './linux/main.libsonnet';
local linux =
nodelib.new()
+ nodelib.withConfigMixin({
Expand All @@ -12,7 +9,6 @@ local linux =
dashboardTags: ['node-exporter-mixin'],
uid: 'node',
});

{
grafanaDashboards+:: linux.grafana.dashboards,
prometheusAlerts+:: linux.prometheus.alerts,
Expand Down

0 comments on commit 947de18

Please sign in to comment.