@ -64,13 +64,26 @@ export function getOperationDefinitions(): QueryBuilderOperationDef[] {
{
id: LokiOperationId.Json,
name:'Json',
params:[],
params:[
{
name:'Expression',
type:'string',
restParam: true,
optional: true,
minWidth: 18,
placeholder:'server="servers[0]"',
description:
'Using expressions with your json parser will extract only the specified json fields to labels. You can specify one or more expressions in this way. All expressions must be quoted.',
`This will extract keys and values from a [json](https://grafana.com/docs/loki/latest/logql/log_queries/#json) formatted log line as labels. The extracted labels can be used in label filter expressions and used as values for a range aggregation via the unwrap operation.`,