import React from 'react'; const CHEAT_SHEET_ITEMS = [ { title: 'Logs From a Job', expression: '{job="default/prometheus"}', label: 'Returns all log lines emitted by instances of this job.', }, { title: 'Search For Text', expression: '{app="cassandra"} Maximum memory usage', label: 'Returns all log lines for the selector and highlights the given text in the results.', }, ]; export default (props: any) => (

Logging Cheat Sheet

{CHEAT_SHEET_ITEMS.map(item => (
{item.title}
props.onClickQuery(item.expression)}> {item.expression}
{item.label}
))}
);