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/github.com/grafana/grafonnet-lib/grafonnet/loki.libsonnet

18 lines
320 B
Plaintext
Raw Normal View History

2020-03-31 19:07:00 +00:00
{
2020-05-12 17:42:23 +00:00
/**
2020-09-17 19:38:08 +00:00
* Creates a [Loki target](https://grafana.com/docs/grafana/latest/features/datasources/loki/)
*
2020-05-12 17:42:23 +00:00
* @name loki.target
2020-09-17 19:38:08 +00:00
*
* @param expr
* @param hide (optional) Disable query on graph.
2020-05-12 17:42:23 +00:00
*/
2020-03-31 19:07:00 +00:00
target(
expr,
hide=null,
):: {
[if hide != null then 'hide']: hide,
expr: expr,
},
}