This repository has been archived on 2023-04-02. You can view files and clone it, but cannot push or open issues or pull requests.
gitops-tbrnt/monitoring/vendor/grafonnet/annotation.libsonnet

36 lines
679 B
Plaintext

{
default::
{
builtIn: 1,
datasource: '-- Grafana --',
enable: true,
hide: true,
iconColor: 'rgba(0, 211, 255, 1)',
name: 'Annotations & Alerts',
type: 'dashboard',
},
datasource(
name,
datasource,
expr=null,
enable=true,
hide=false,
iconColor='rgba(255, 96, 96, 1)',
tags=[],
type='tags',
builtIn=null,
)::
{
datasource: datasource,
enable: enable,
[if expr != null then 'expr']: expr,
hide: hide,
iconColor: iconColor,
name: name,
showIn: 0,
tags: tags,
type: type,
[if builtIn != null then 'builtIn']: builtIn,
},
}