jsonnet-libs icon indicating copy to clipboard operation
jsonnet-libs copied to clipboard

Introduce packaging to Docker Mixin

Open malcolmholmes opened this issue 2 years ago • 2 comments

A proposal for a packaging format for observability packages that is back-compatible with Jsonnet Mixins.

malcolmholmes avatar Jun 20 '23 15:06 malcolmholmes

to test, render this:

  • First, create a file, m.jsonnet that makes the hidden elements in a mixin visible:
local mixin = import 'mixin.libsonnet';
{
  grafanaDashboards: {
    [key]: mixin.grafanaDashboards[key]
    for key in std.objectFields(mixin.grafanaDashboards)
  }
}
  • Next, execute: jsonnet -J vendor m.jsonnet
  • This will give you the json output from the mixin.
  • Alternatively, execute: jsonnet -J vendor polly.libsonnet to get the package contents.

malcolmholmes avatar Jun 20 '23 15:06 malcolmholmes

I think queries are better packed as targets (query + legend)

v-zhuravlev avatar Jun 28 '23 08:06 v-zhuravlev

Closing older PRs in this repo that seem unmaintained, sorry folks

nikimanoledaki avatar Mar 19 '25 10:03 nikimanoledaki