Logging - zhuje/openshift-wiki GitHub Wiki
Logging Plugin for Openshift Observability
Adds a Logs
tab under the Observability
section. It provides a input field to query logs. The input field accepts LogQL queries for Loki.
Repository
https://github.com/openshift/logging-view-plugin
OFFICAL Local Development
https://github.com/openshift/logging-view-plugin/pull/129 The following is a snip from README.md:
Running locally
Make sure you have loki running on
http://localhost:3100
Use the testing docker-compose to spin up loki, promtail and the proper tenant based routing that LokiStack uses.
$ docker-compose -f hack/docker-compose/docker-compose.test.yml up
JZ Notes -- Local Development
- Prerequisites
- check docker is running with the command
docker ps
- Run Loki locally at :3100.
- Git Clone: https://github.com/jgbernalp/containers-playground
cd containers-playground
docker-compose up
- Check Loki is running locally via Grafana at port :3000
- point your browser at http://localhost:3000
- on the Grafana UI go to the hamburger menu and click
Explore
to view LogQL querier
- Start the Logging-view-plugin
- git clone https://github.com/openshift/logging-view-plugin
cd logging-view-plugin
-
// Navigate into the the repo `logging-view plugin` // in the frist terminal make start-backend // in a second terminal make start-frontend // in third terminal // to select a sepcific OCP version image pass the env_var // CONSOLE_IMAGE="quay.io/openshift/origin-console:4.11" \ // make start-console make start-console
- point your browser at
http://localhost:9000
to see OpenShift and logging-view-plugin running locally
Historical Context
Slack: https://redhat-internal.slack.com/archives/C03EPFR2BAR/p1690524232474499?thread_ts=1690514957.245309&cid=C03EPFR2BAR PR: https://github.com/openshift/logging-view-plugin/pull/129