Grafana Quick Log Panel Plugin
Possible to see log line as natural log message like tail -f ...
.
If the field line has \n
then a multiline button will be added, and the lines will be collected.
Possible to add custom inline css to the panel. Each row has custom class name. To check your current class list, please inspect your DOM.
Example:
.ql-name-message{flex-grow:1;max-width:54%;}.ql-data-multiitem-button{color:green !important;}
Possible to add extra css for the values. Only need to type the filter text and separate the css with ||
double pipe. Syntax: foo bar ||color:red;
. foo bar
is the search text, color:red;
is the custom css. For the custom css do not need to use {}
curly brackets.
Example:
foo bar ||color:red;
Possible to share current option to another quick-log panel on other dashboard.
Possible to add custom field mapper. During the rendering on each field the custom mapper will be called.
Example:
(filed) => {
return filed.name + filed.val;
}
During the list browsing possible to quick filter the current list. Type the text. The search text and value lines are converted to lowerCase.
-
Install dependencies
yarn install
-
Build plugin in watch mode
yarn watch
-
Build plugin in production mode
yarn build
docker build --build-arg GRAFANA_API_KEY=${GRAFANA_API_KEY} .
- Build a panel plugin tutorial
- Grafana documentation
- Grafana Tutorials - Grafana Tutorials are step-by-step guides that help you make the most of Grafana
- Grafana UI Library - UI components to help you build interfaces using Grafana Design System