2023-01-01から1年間の記事一覧

CompletableFutureの備忘録

CompletableFutureの使い方をよく忘れるので備忘録。 Memo staticメソッド completedFuture CompletableFuture<U> completedFuture(U value) CompletableFuture.completedFuture("OK") supplyAsync CompletableFuture<U> supplyAsync(Supplier<U> supplier) Completab</u></u></u>…

WiresharkでHTTPSを復号化する

Wiresharkでhttps通信を復号化するときの備忘録。 今回はMacOSのChromeとlocalhostのnginxでhttpsの通信をする。 準備 証明書 mkcertでlocalhostの証明書と秘密鍵を用意する。コマンドを実行するとlocalhost.pemとlocalhost-key.pemが作成されるので、これを…

PrometheusのHTTP Service Discoveryを試す

PrometheusのHTTP Service Discoveryを試したときのメモ。 準備 Prometheus DockerのPrometheusとNode exporter2台を使う。 prometheus.yml global: scrape_interval: 30s scrape_configs: - job_name: prometheus static_configs: - targets: ['host.docke…