kogito dev 備忘録

mvn clean install -Dquickly
mvn verify
mvn clean install -DskipTests -Dvalidate-formatting

debug log

mvn clean package -Dorg.slf4j.simpleLogger.log.io.quarkus=debug -Dorg.slf4j.simpleLogger.log.org.kie.kogito=debug

system property

quarkus:dev のときは普通に system property を与える

mvn clean compile quarkus:dev -Ddrools.dump.dir=/home/tkobayas/tmp3

trouble-shooting

JandexProtoGenerator で ENUM$VALUES のエラーになる場合、 kogito-codegen-modules をビルド仕直す

quarkus.test.list

   <quarkus.test.list.include>true</quarkus.test.list.include>
  1. set the property to true for given module
  2. build kogito-runtimes so that both kogito-quarkus-test-list and the invoked module are part of reactor -> if we do sth like mvn clean install -pl :integration-tests-quarkus-resteasy-classic,:kogito-quarkus-test-list from kogito-runtimes folder this should make sure that in kogito-quarkus-test-list/target there will be the xml artifact with just this single module mentioned (In case of full-repo build all the modules will be there).
  3. clone https://github.com/quarkusio/quarkus-platform/
  4. change version of https://github.com/quarkusio/quarkus-platform/blob/main/pom.xml#L243 to point to locally built artifact (if implementation was already present in <kogito-quarkus.version>1.14.0.Final</kogito-quarkus.version> then this should be enough).
  5. Proceed with instructions on how to build the quarkus-platform (in readme).
  6. The given test then should pass.

Droolsブログ : 14 KieLive

14 KieLive

Drools は Kogito, jBPM, OptaPlanner を含めた KIE コミュニティ (https://kie.org/)の仲間です。KIE コミュニティでは KieLive というストリーミング配信を行っており、様々な技術的なトピックを語っています。過去の動画はこちらから観ることができます。気になったタイトルを取り上げて、英語の勉強がてら観るのもいいかもしれないですね。

www.youtube.com

最新の配信情報をチェックしたい場合はこちらのアカウントをフォローしてください。

twitter.com

ちなみに私も最近登壇しました。Drools troubleshooting というお題で、

についてセッションをしています。興味がある方はどうぞ!

www.youtube.com

Prometheus Grafana 備忘録

Prometheus

prometheus.yml を編集(targets とか)して

./prometheus
  • http://localhost:9090/ にアクセス

  • Status -> Target で接続しているターゲットを確認

  • Graph の Expression のボックスにメトリクスの名前を入れる、「Execute」クリック。その後Graphタブ

Grafana
sudo systemctl start grafana-server

http://localhost:3000/

admin/p........!

  • データソースにPrometheusのURLを指定

  • ダッシュボードにパネルを追加する、Metrics にメトリクスの名前を入れる