►
Description
A demo of https://gitlab.com/gitlab-com/runbooks/-/merge_requests/1930 which automatically generates Kibana Searches and Visualizations from Grafana, using Jsonnet and the Grafonnet library.
A
Hey
this
is
Andrew
and
I
just
wanted
to
do
a
little
demonstration
of
a
little
feature.
I
put
together
this
morning
that
I
figured
might
become
quite
useful
in
the
future.
So
what
it
is
is
that
very
often
when
we're
investigating
an
artic,
the
first
thing
we'll
do
is
we'll
come
and
we'll
take
it.
A
take
a
look
at
a
dashboard
like
this.
A
This
is
the
web
service
dashboard,
and
so
it
gives
us
all
of
our
key
indicators
for
that
service,
and
then
it
goes
down
into
various
components
like
unicorn
work
horse,
and
then,
if
we
want
even
more
detail,
we
have
these
dashboards
over
all
these
panels.
Over
here
now,
very
often,
one
of
the
things
that
we
want
to
do
is,
after
we
spot
a
problem.
We
want
to
go
from
the
graph
runner
where
we
have
our
metrics
into
cabaña,
where
we
keep
our
logs
and
normally
what
we
do.
A
Is
we
open
up
cabaña
we
changed
the
index.
We
will
then
configure
a
search
and
we'll
start
from
there
and
that
can
be
quite
slow.
So
this
demo
kind
of
is
a
way
to
kind
of
speed
that
up
it
uses
the
feature
in
the
foreigner
called
data
links
and
what
a
data
link
allows
you
to
do
is
add
things
into
your
dashboards
into
your
panels,
so
that
you
can
have
links
to
other
URLs
and
so
with
that.
A
What
I've
done
is
because
we're
using
JSON
it
to
generate
our
dashboards
I've
got
JSON
it
to
generate
dynamically
generated
links
into
cabaña
that
are
kind
of
pre
kind
for
what
the
panel
is.
So
this
graph
over
here
is
a
workhorse
p50,
and
so
you
can
click
on
the
graph
and
it'll
say
elasticsearch
and
give
me
the
workhorse
logs
and
if
I
click
on
that
it'll
open
up
an
elastic
search,
URL,
which
should
hopefully
work.
A
A
If
it
comes
back
here,
you
can
see
this
is
the
workhorse
logs.
It's
got
like
some
pre-k
and
columns
that
we
might
find
useful
and
various
other
things,
and
then
from
here
we
can
carry
on
searching,
so
we
might
want
it
full
throttle
to
hundreds
and
so
that
just
kind
of
speeds
up
the
cycle
time
trying
to
reduce
the
amount
of
time
that
it
takes
to
resolve
an
issue.
We've
also
got
a
second
option,
which
is,
if
you
click
on
the
graph
and
you
choose
visualization.
A
A
A
A
So
what
you'll
see
here
is
that
now
we're
felting
for
the
canary
stage
and
not
the
main
stage
anymore,
so
we
can
add
any
number
of
arbitrary
filters
into
these
searches
and
and
as
we
expand
this
arts
I'm
sure
we
will
have
lots
of
searches.
That
kind
of
target
very
specific
conditions
like
we
might
filter
by
request
class
with
us
in
this
instance,
just
to
kind
of
show
some
more
examples
of
this.
If
we
go
to
some
of
our
rails,
graphs
and
I
go
into
here
and
I
add
such
two
rails
logs.
A
Yeah
and
it's
this
is
searching
on
the
rails
logs,
and
here
you
can
see,
we've
got
a
very
slightly
different
set
of
columns
that
we've
chosen
for
this,
and
so
what
I'd
like
to
do
is
kind
of
expand
this
out
over
time.
But
this
is
a
first
iteration
of
that
I
hope
you
find
it
as
useful
as
I'm
hoping
I
will
cool
thanks
very
much.