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

21 lines
445 B
Plaintext

{
/**
* Creates a [Loki target](https://grafana.com/docs/grafana/latest/features/datasources/loki/)
*
* @name loki.target
*
* @param expr
* @param hide (optional) Disable query on graph.
* @param legendFormat (optional) Defines the legend. Defaults to ''.
*/
target(
expr,
hide=null,
legendFormat='',
):: {
[if hide != null then 'hide']: hide,
expr: expr,
legendFormat: legendFormat,
},
}