Monitoring Plugin - zhuje/openshift-wiki GitHub Wiki
https://github.com/openshift/monitoring-plugin
Source: https://docs.openshift.com/container-platform/4.10/monitoring/monitoring-overview.html
I experimented a bit more and discussed more on that other thread. To summarize, currently we have two ways to test the console monitoring pages locally. If you are working on the monitoring-plugin codebase:
-
cd
to monitoring-plugin root dir - Run
yarn start
in one terminal - Start docker
- Run
yarn start-console
in a second terminal
-
cd
to monitoring-plugin root dir - Run yarn start in one terminal
-
cd
to console root dir - Run
./bin/bridge -plugins
"monitoring-plugin=http://localhost:9001/"
In either case, the console will then be running locally at http://localhost:9000/
For our team, the first method is normally better because compile times are much faster.
For the console team, currently the second method is the most convenient. It would be good to streamline this, but not sure how best to do that.
Alternatively, use a docker image of the monitoring plugin and point the bridge there.

Figure 1. Files used to dispatch/update information in the store.
- Initiate dispatch from component. The component is manipulating an array so we need to pass the
index
to specify which index to update. - This is the file that declares available actions.
- The definition of the action.
- The store that holds the 'queryBrowser' global state. The 'queryBrowser' object doesn't have a strictly defined model/schema so you can dynamically add more attributes.

Figure 2. Files used to observe information in the store.
- Observe the store by using observe.getIn[]. The is drilling into an object to extract a specific value in this case
observe.getIn[['queryBrowser', 'queries', index, 'isEnabled']]
means we're drilling into this objectqueryBrowser: { queries: [{isEnabled: boolean}] }
to get the boolean value. - This is the object in the store we're observing.