<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: tom</title>
    <description>The latest articles on Forem by tom (@tomsun28).</description>
    <link>https://forem.com/tomsun28</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F583763%2F790f872f-6389-4208-ae1e-133e4dd5a7f4.jpeg</url>
      <title>Forem: tom</title>
      <link>https://forem.com/tomsun28</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/tomsun28"/>
    <language>en</language>
    <item>
      <title>Monitoring SpringBoot2 Metrics with HertzBeat in 5 minutes</title>
      <dc:creator>tom</dc:creator>
      <pubDate>Tue, 28 Mar 2023 16:01:42 +0000</pubDate>
      <link>https://forem.com/tomsun28/monitoring-springboot2-metrics-with-hertzbeat-in-5-minutes-9oc</link>
      <guid>https://forem.com/tomsun28/monitoring-springboot2-metrics-with-hertzbeat-in-5-minutes-9oc</guid>
      <description>&lt;h2&gt;
  
  
  Use the open source real-time monitoring tool HertzBeat to monitor and alarm the SpringBoot2 application, and it will be done in 5 minutes!
&lt;/h2&gt;

&lt;h3&gt;
  
  
  HertzBeat Intro
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;HertzBeat is an open source, real-time monitoring tool with custom-monitor and agentLess. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Monitor+Alerter+Notify&lt;/strong&gt; all in one. Support monitoring web service, database, os, middleware, cloud-native, network and more.&lt;br&gt;&lt;br&gt;
More flexible threshold rule(calculation expression), timely notification delivery by &lt;code&gt;Discord&lt;/code&gt; &lt;code&gt;Slack&lt;/code&gt; &lt;code&gt;Telegram&lt;/code&gt; &lt;code&gt;Email&lt;/code&gt; &lt;code&gt;DingDing&lt;/code&gt; &lt;code&gt;WeChat&lt;/code&gt; &lt;code&gt;FeiShu&lt;/code&gt; &lt;code&gt;Webhook&lt;/code&gt; &lt;code&gt;SMS&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;We make protocols such as &lt;code&gt;Http, Jmx, Ssh, Snmp, Jdbc&lt;/code&gt; configurable, and you only need to configure &lt;code&gt;YML&lt;/code&gt; online to collect any metrics you want.&lt;br&gt;&lt;br&gt;
Do you believe that you can immediately adapt a new monitoring type such as K8s or Docker just by configuring online?&lt;/p&gt;

&lt;p&gt;&lt;code&gt;HertzBeat&lt;/code&gt;'s powerful custom-define, multi-type support, easy expansion, low coupling, hope to help developers and micro teams to quickly build their own monitoring system.     &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Github: &lt;a href="https://github.com/dromara/hertzbeat"&gt;https://github.com/dromara/hertzbeat&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Monitoring SpringBoot2 Metrics with HertzBeat in 5 minutes
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Prerequisite, you already have SpringBoot2 application environment and HertzBeat environment.
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;HertzBeat &lt;a href="https://hertzbeat.com/docs/start/docker-deploy"&gt;Installation and deployment documentation&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  1. The &lt;code&gt;actuator&lt;/code&gt; indicator endpoint is exposed on the SpringBoot2 application side, which will provide metrics endpoints data.
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Open SpringBoot Actuator Endpoint to expose &lt;code&gt;metrics health env&lt;/code&gt; indicator interface
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;management&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
   &lt;span class="na"&gt;endpoints&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
     &lt;span class="na"&gt;web&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
       &lt;span class="na"&gt;exposure&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
         &lt;span class="na"&gt;include&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
           &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;metrics'&lt;/span&gt;
           &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;health'&lt;/span&gt;
           &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;env'&lt;/span&gt;
     &lt;span class="na"&gt;enabled-by-default&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;on&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;After restarting, test whether the access indicator interface &lt;code&gt;ip:port/actuator&lt;/code&gt; has response json data as follows:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
   &lt;/span&gt;&lt;span class="nl"&gt;"_links"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
     &lt;/span&gt;&lt;span class="nl"&gt;"self"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
       &lt;/span&gt;&lt;span class="nl"&gt;"href"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"http://localhost:1157/actuator"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
       &lt;/span&gt;&lt;span class="nl"&gt;"templated"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="w"&gt;
     &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
     &lt;/span&gt;&lt;span class="nl"&gt;"health-path"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
       &lt;/span&gt;&lt;span class="nl"&gt;"href"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"http://localhost:1157/actuator/health/{*path}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
       &lt;/span&gt;&lt;span class="nl"&gt;"templated"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="w"&gt;
     &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
     &lt;/span&gt;&lt;span class="nl"&gt;"health"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
       &lt;/span&gt;&lt;span class="nl"&gt;"href"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"http://localhost:1157/actuator/health"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
       &lt;/span&gt;&lt;span class="nl"&gt;"templated"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="w"&gt;
     &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
     &lt;/span&gt;&lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
       &lt;/span&gt;&lt;span class="nl"&gt;"href"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"http://localhost:1157/actuator/env"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
       &lt;/span&gt;&lt;span class="nl"&gt;"templated"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="w"&gt;
     &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
     &lt;/span&gt;&lt;span class="nl"&gt;"env-toMatch"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
       &lt;/span&gt;&lt;span class="nl"&gt;"href"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"http://localhost:1157/actuator/env/{toMatch}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
       &lt;/span&gt;&lt;span class="nl"&gt;"templated"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="w"&gt;
     &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
     &lt;/span&gt;&lt;span class="nl"&gt;"metrics-requiredMetricName"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
       &lt;/span&gt;&lt;span class="nl"&gt;"href"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"http://localhost:1157/actuator/metrics/{requiredMetricName}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
       &lt;/span&gt;&lt;span class="nl"&gt;"templated"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="w"&gt;
     &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
     &lt;/span&gt;&lt;span class="nl"&gt;"metrics"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
       &lt;/span&gt;&lt;span class="nl"&gt;"href"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"http://localhost:1157/actuator/metrics"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
       &lt;/span&gt;&lt;span class="nl"&gt;"templated"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="w"&gt;
     &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
   &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Add SpringBoot2 application monitoring in the HertzBeat monitoring ui
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Click to add SpringBoot2 monitoring&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Path: Menu -&amp;gt; Application Service Monitoring -&amp;gt; SpringBoot2 -&amp;gt; Add SpringBoot2 Monitoring&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9LTwvfyj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/69dzxbozd31m9zjdueez.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9LTwvfyj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/69dzxbozd31m9zjdueez.png" alt="Image description" width="880" height="469"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Configure the parameters required for new monitoring SpringBoot2&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Fill in the SpringBoot2 application &lt;strong&gt;peer IP&lt;/strong&gt;, &lt;strong&gt;service port&lt;/strong&gt; (default 8080), &lt;strong&gt;account password, etc.&lt;/strong&gt; on the monitoring page, and finally click OK to add.&lt;br&gt;
For other parameters such as &lt;strong&gt;collection interval&lt;/strong&gt;, &lt;strong&gt;timeout period&lt;/strong&gt;, etc., please refer to the help document &lt;a href="https://hertzbeat.com/docs/help/"&gt;https://hertzbeat.com/docs/help/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--VmeIjI1p--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0t3sqj2asw8yvvv7xxna.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--VmeIjI1p--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0t3sqj2asw8yvvv7xxna.png" alt="Image description" width="880" height="469"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Complete ✅, now we have added the monitoring of the SpringBoot2 application, check the monitoring list to see our additions.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TAGntpTV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fhlgpt76mcf4wp3oswej.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TAGntpTV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fhlgpt76mcf4wp3oswej.png" alt="Image description" width="880" height="469"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click &lt;strong&gt;Operation&lt;/strong&gt;-&amp;gt;&lt;strong&gt;Monitoring Details Icon&lt;/strong&gt; of the monitoring list item to browse the real-time monitoring indicator data of the SpringBoot2 application.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4e1xkWt8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4z2m8tt690keeftqr9al.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4e1xkWt8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4z2m8tt690keeftqr9al.png" alt="Image description" width="880" height="469"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click &lt;strong&gt;Monitoring History Details TAB&lt;/strong&gt; to browse the historical monitoring indicator data chart of the SpringBoot2 application📈.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--72DwOruU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h2nt81ef33ve53s44j4o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--72DwOruU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h2nt81ef33ve53s44j4o.png" alt="Image description" width="880" height="469"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;DONE! Done! It doesn't require us to deploy agents or various cumbersome operations, isn't it very simple&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Just one step to configure the IP port on the HertzBeat monitoring page and add SpringBoot2 application monitoring&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;Through the above, we have completed the monitoring of the SpringBoot2 application. We can check the status and availability of various indicators of the SpringBoot2 application at any time in HertzBeat.&lt;br&gt;&lt;br&gt;
Of course, it is impossible to manually check the indicators in real time. Monitoring is often accompanied by alarm thresholds. When the performance indicators of the SpringBoot2 application exceed our threshold or the SpringBoot2 application itself is abnormal, we can promptly notify our corresponding person in charge. The person in charge receives the notification and handles it. , this is a complete monitoring and alarm process.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Next, we will demonstrate step by step how to configure the threshold alarm notification in the HertzBeat system. When the indicators of the SpringBoot2 application are abnormal, we will be notified in time&lt;/strong&gt;  &lt;/p&gt;

&lt;h4&gt;
  
  
  3. Add SpringBoot2 application indicator threshold alarm in HertzBeat system
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Configure an alarm threshold for an important indicator&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Path: Menu -&amp;gt; Threshold Rules -&amp;gt; Add Threshold&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Select the configured indicator object. SpringBoot2 application monitoring mainly focuses on stack memory threads and other related indicators. For example, we set the threshold for the indicator &lt;code&gt;threads&lt;/code&gt; -&amp;gt; &lt;code&gt;threads&lt;/code&gt;. When the number of threads in the &lt;code&gt;runnable&lt;/code&gt; state is greater than At 300 an alert is issued.&lt;/li&gt;
&lt;li&gt;Here we configure to send an alarm when &lt;code&gt;size&lt;/code&gt;, &lt;code&gt;state&lt;/code&gt; of &lt;code&gt;equals(state, "runnable"") &amp;amp;&amp;amp; size&amp;gt;300&lt;/code&gt; of this indicator, the alarm level is &lt;strong&gt;warning alarm&lt;/strong&gt;, which will be triggered three times, specifically As shown below.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qxARAkRu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4j20qsjik1q0qed75ea2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qxARAkRu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4j20qsjik1q0qed75ea2.png" alt="Image description" width="880" height="469"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--mn3ir239--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p2vdao2hfujf5pxb319c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--mn3ir239--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p2vdao2hfujf5pxb319c.png" alt="Image description" width="880" height="469"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Add message notification recipients&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;Configure the receiver to let the alarm message know who to send and how to send it.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Path: Menu -&amp;gt; Alarm Notification -&amp;gt; Alarm Recipient -&amp;gt; Add New Recipient&lt;/p&gt;

&lt;p&gt;Message notification methods support &lt;strong&gt;email, DingTalk, WeChat Work, Feishu, WebHook, SMS&lt;/strong&gt;, etc. Here we take the commonly used DingTalk as an example.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Refer to this &lt;a href="https://hertzbeat.com/docs/help/alert_dingtalk"&gt;Help Documentation&lt;/a&gt; &lt;a href="https://hertzbeat.com/docs/help/alert_dingtalk"&gt;https://hertzbeat.com/docs/help/alert_dingtalk&lt;/a&gt; to configure the robot on DingTalk and set the security custom keyword &lt;code&gt;HertzBeat&lt;/code&gt;, get the corresponding &lt;code&gt;access_token&lt;/code&gt; value.&lt;/li&gt;
&lt;li&gt;Configure the receiver parameters in HertzBeat as follows.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;【Alarm Notification】-&amp;gt;【New Recipient】-&amp;gt;【Select DingTalk Robot Notification Method】-&amp;gt;【Set DingTalk Robot ACCESS_TOKEN】-&amp;gt;【OK】&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--mXGR-RmI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y588361pce5kuwkpsh5o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--mXGR-RmI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y588361pce5kuwkpsh5o.png" alt="Image description" width="880" height="228"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Configure the associated alarm notification strategy ⚠️ [Add notification strategy] -&amp;gt; [Associate the recipient just set] -&amp;gt; [OK]&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;Configure the alarm notification policy to bind the alarm message with the receiver, so that you can decide which alarms to send to whom.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--P80NR_2i--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nh1w56hry5hzqnusbvf5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--P80NR_2i--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nh1w56hry5hzqnusbvf5.png" alt="Image description" width="880" height="279"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Finished, now wait for the warning message to come. ding ding ding ding
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[HertzBeat warning notification]
Alarm target object: springboot2.threads.size
Affiliated monitoring ID: 483783444839322
Belonging monitoring name: SPRINGBOOT2_localhost
Alarm level: warning alarm
Alarm trigger time: 2023-03-22 21:13:44
Content details: The springboot2 service's runnable state threads num is over 300, now is 444.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;This practical article took us to experience how to use the open source real-time monitoring tool HertzBeat to monitor SpringBoot2 application indicator data. We can find that HertzBeat, which integrates &lt;code&gt;monitoring-alarm-notification&lt;/code&gt;, is more convenient in operation and use, just click a little on the page The SpringBoot2 application can be included in the monitoring and alarm notification, and the tedious operations of deploying multiple components and writing configuration files are no longer needed.&lt;/p&gt;

&lt;p&gt;Only one docker command is needed to install and experience heartbeat:&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;code&gt;docker run -d -p 1157:1157 --name hertzbeat tancloud/hertzbeat&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  More powerful
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Through the simple steps above, we have realized the monitoring of SpringBoot2, but the built-in indicators in it do not meet the needs. Can we customize and monitor more indicators of SpringBoot2? The answer is of course yes, through &lt;strong&gt;Monitoring Definition&lt;/strong&gt;-&amp;gt;&lt;strong&gt;SpringBoot2&lt;/strong&gt; on the page, you can customize and modify the performance indicators you want to monitor by editing the following YML configuration file at any time.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_ASX08tf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0axzrgbbee6kax39vyqu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_ASX08tf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0axzrgbbee6kax39vyqu.png" alt="Image description" width="880" height="469"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What is HertzBeat?
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://github.com/dromara/hertzbeat"&gt;HertzBeat&lt;/a&gt; is an open source, real-time monitoring tool with custom-monitor and agentless.&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Monitor+Alerter+Notify&lt;/strong&gt; all in one. Support monitoring web service, database, os, middleware, cloud-native, network and more.&lt;br&gt;&lt;br&gt;
More flexible threshold rule(calculation expression), timely notification delivery by &lt;code&gt;Discord&lt;/code&gt; &lt;code&gt;Slack&lt;/code&gt; &lt;code&gt;Telegram&lt;/code&gt; &lt;code&gt;Email&lt;/code&gt; &lt;code&gt;DingDing&lt;/code&gt; &lt;code&gt;WeChat&lt;/code&gt; &lt;code&gt;FeiShu&lt;/code&gt; &lt;code&gt;Webhook&lt;/code&gt; &lt;code&gt;SMS&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;We make protocols such as &lt;code&gt;Http, Jmx, Ssh, Snmp, Jdbc&lt;/code&gt; configurable, and you only need to configure &lt;code&gt;YML&lt;/code&gt; online to collect any metrics you want.&lt;br&gt;&lt;br&gt;
Do you believe that you can immediately adapt a new monitoring type such as K8s or Docker just by configuring online?&lt;/p&gt;

&lt;p&gt;&lt;code&gt;HertzBeat&lt;/code&gt;'s powerful custom-define, multi-type support, easy expansion, low coupling, hope to help developers and micro teams to quickly build their own monitoring system.     &lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  ⛄ Supported
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Site Monitor, Port Availability, Http Api, Ping Connectivity, Jvm, SiteMap Full Site, Ssl Certificate, SpringBoot, FTP Server&lt;/li&gt;
&lt;li&gt;Mysql, PostgreSQL, MariaDB, Redis, ElasticSearch, SqlServer, Oracle, MongoDB, Damon, OpenGauss, ClickHouse, IoTDB, Redis Cluster&lt;/li&gt;
&lt;li&gt;Linux, Ubuntu, CentOS, Windows&lt;/li&gt;
&lt;li&gt;Tomcat, Nacos, Zookeeper, RabbitMQ, Flink, Kafka, ShenYu, DynamicTp, Jetty, ActiveMQ&lt;/li&gt;
&lt;li&gt;Kubernetes, Docker&lt;/li&gt;
&lt;li&gt;Huawei Switch, HPE Switch, TP-LINK Switch, Cisco Switch&lt;/li&gt;
&lt;li&gt;and more for your custom monitoring.&lt;/li&gt;
&lt;li&gt;Notifications support &lt;code&gt;Discord&lt;/code&gt; &lt;code&gt;Slack&lt;/code&gt; &lt;code&gt;Telegram&lt;/code&gt; &lt;code&gt;Mail&lt;/code&gt; &lt;code&gt;Pinning&lt;/code&gt; &lt;code&gt;WeChat&lt;/code&gt; &lt;code&gt;FlyBook&lt;/code&gt; &lt;code&gt;SMS&lt;/code&gt; &lt;code&gt;Webhook&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;strong&gt;Github: &lt;a href="https://github.com/dromara/hertzbeat"&gt;https://github.com/dromara/hertzbeat&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Gitee: &lt;a href="https://gitee.com/dromara/hertzbeat"&gt;https://gitee.com/dromara/hertzbeat&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>spring</category>
      <category>java</category>
      <category>monitoring</category>
    </item>
    <item>
      <title>Monitoring Linux Using Open Source Real-Time Monitoring Tool HertzBeat</title>
      <dc:creator>tom</dc:creator>
      <pubDate>Wed, 22 Mar 2023 15:15:26 +0000</pubDate>
      <link>https://forem.com/tomsun28/monitoring-linux-using-open-source-real-time-monitoring-tool-hertzbeat-216i</link>
      <guid>https://forem.com/tomsun28/monitoring-linux-using-open-source-real-time-monitoring-tool-hertzbeat-216i</guid>
      <description>&lt;h2&gt;
  
  
  Use the open source real-time monitoring tool HertzBeat to monitoring and alarm Linux, and it will be done in 5 minutes!
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Introduction to HertzBeat
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;HertzBeat is an open source, easy-to-use and friendly real-time monitoring tool that does not require Agent and has powerful custom monitoring capabilities.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;Integrate &lt;strong&gt;monitoring-alarm-notification&lt;/strong&gt;, support monitoring of application services, databases, operating systems, middleware, cloud native, etc., threshold alarms, alarm notifications (email WeChat Dingding Feishu SMS Slack Discord Telegram).&lt;/li&gt;
&lt;li&gt;It configurable protocol specifications such as Http, Jmx, Ssh, Snmp, Jdbc, etc. You only need to configure YML to use these protocols to customize and collect any indicators you want to collect. Do you believe that you can immediately adapt to a new monitoring type such as K8s or Docker just by configuring YML?&lt;/li&gt;
&lt;li&gt;HertzBeat's powerful customization, multi-type support, easy expansion, and low coupling, hope to help developers and small and medium teams quickly build their own monitoring tools.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Github: &lt;a href="https://github.com/dromara/hertzbeat" rel="noopener noreferrer"&gt;https://github.com/dromara/hertzbeat&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Get Linux Monitoring Done in HertzBeat in 5 Minutes
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Prerequisites, you already have a Linux environment and a HertzBeat environment.
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;HertzBeat &lt;a href="https://hertzbeat.com/docs/start/docker-deploy" rel="noopener noreferrer"&gt;Installation and deployment documentation&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Add monitoring of the Linux operating system to the monitoring page of the open source monitoring tool HertzBeat
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Click Add Linux Monitoring&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Path: Menu -&amp;gt; Operating System Monitoring -&amp;gt; Linux Operating System -&amp;gt; Add Linux Operating System Monitoring&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi62ixya4t5p5a376t47w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi62ixya4t5p5a376t47w.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Configure the parameters required for new monitoring Linux&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Fill in the Linux &lt;strong&gt;peer IP&lt;/strong&gt;, &lt;strong&gt;SSH port&lt;/strong&gt; (default 22), &lt;strong&gt;account password, etc.&lt;/strong&gt; on the monitoring page, and finally click OK to add.&lt;br&gt;
For other parameters such as &lt;strong&gt;collection interval&lt;/strong&gt;, &lt;strong&gt;timeout period&lt;/strong&gt;, etc., please refer to the help document &lt;a href="https://hertzbeat.com/docs/help/mysql/" rel="noopener noreferrer"&gt;https://hertzbeat.com/docs/help/mysql/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F386lr174ldqy1m27ejct.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F386lr174ldqy1m27ejct.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Complete ✅, now we have added the monitoring of Linux, check the monitoring list to see our added items.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqpuwfsgght3noe0sghwn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqpuwfsgght3noe0sghwn.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click &lt;strong&gt;Operation&lt;/strong&gt;-&amp;gt;&lt;strong&gt;Monitoring Details Icon&lt;/strong&gt; of the monitoring list item to browse the real-time monitoring indicator data of Linux.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5a4pr1122ciufwf1opd3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5a4pr1122ciufwf1opd3.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fapyoz7gqe9lq2ufjtbax.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fapyoz7gqe9lq2ufjtbax.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click &lt;strong&gt;Monitoring History Details TAB&lt;/strong&gt; to browse the historical monitoring indicator data chart of Linux📈.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0yd8a59u9iacarrdvpw1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0yd8a59u9iacarrdvpw1.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7cq62zvpr2uh4nu130t7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7cq62zvpr2uh4nu130t7.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;DONE! Done! To sum up, it only takes one step&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;On the HertzBeat monitoring page, configure the IP port account password and add Linux monitoring&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;Through the above two steps, we have completed the monitoring of Linux. We can view the monitoring details and indicators in HertzBeat at any time to observe its service status. &lt;br&gt;
Of course, just looking at it is definitely not perfect. Monitoring is often accompanied by alarm thresholds. When Linux performance indicators exceed our expectations or are abnormal, we can promptly notify our corresponding person in charge. The person in charge receives the notification and handles the problem. It is a complete monitoring and alarm process. &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Next, we will demonstrate step by step how to configure threshold alarm notifications in the HertzBeat system, so that when Linux indicators are found to be abnormal, they will be notified to us in time&lt;/strong&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  3. Add Linux indicator threshold alarm in HertzBeat system
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Configure an alarm threshold for an important indicator&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Path: Menu -&amp;gt; Threshold Rules -&amp;gt; Add Threshold&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Select the configured indicator object. Linux monitors mainly related indicators such as cpu, memory, disk, network performance, etc. For example, we set the threshold for the indicator &lt;code&gt;CPU utilization&lt;/code&gt; &lt;code&gt;cpu&lt;/code&gt; -&amp;gt; &lt;code&gt;usage&lt;/code&gt;. When the Linux cpu utilization is greater than 90% When a warning is issued.&lt;/li&gt;
&lt;li&gt;Here we configure to send an alarm when the &lt;code&gt;usage&amp;gt;90&lt;/code&gt; of this indicator &lt;code&gt;cpu&lt;/code&gt;, the alarm level is &lt;strong&gt;Warning Alarm&lt;/strong&gt;, which will be triggered after three times, as shown in the figure below.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbu08fsxlfhy1i9xzfea7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbu08fsxlfhy1i9xzfea7.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1nn90pgqydpg2tz65yiw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1nn90pgqydpg2tz65yiw.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Add message notification recipients&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;Configure the receiver to let the alarm message know who to send and how to send it.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Path: Menu -&amp;gt; Alarm Notification -&amp;gt; Alarm Recipient -&amp;gt; Add New Recipient&lt;/p&gt;

&lt;p&gt;Message notification methods support &lt;strong&gt;email, DingTalk, WeChat Work, Feishu, WebHook, SMS&lt;/strong&gt;, etc. Here we take the commonly used DingTalk as an example.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Refer to this &lt;a href="https://hertzbeat.com/docs/help/alert_dingtalk" rel="noopener noreferrer"&gt;Help Documentation&lt;/a&gt; &lt;a href="https://hertzbeat.com/docs/help/alert_dingtalk" rel="noopener noreferrer"&gt;https://hertzbeat.com/docs/help/alert_dingtalk&lt;/a&gt; to configure the robot on DingTalk and set the security custom keyword &lt;code&gt;HertzBeat&lt;/code&gt;, get the corresponding &lt;code&gt;access_token&lt;/code&gt; value.&lt;/li&gt;
&lt;li&gt;Configure the receiver parameters in HertzBeat as follows.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;【Alarm Notification】-&amp;gt;【New Recipient】-&amp;gt;【Select DingTalk Robot Notification Method】-&amp;gt;【Set DingTalk Robot ACCESS_TOKEN】-&amp;gt;【OK】&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F11dxgpdxj3eb1tb3nbar.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F11dxgpdxj3eb1tb3nbar.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Configure the associated alarm notification strategy ⚠️ [Add notification strategy] -&amp;gt; [Associate the recipient just set] -&amp;gt; [OK]&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;Configure the alarm notification policy to bind the alarm message with the receiver, so that you can decide which alarms to send to whom.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faholtt3po7of9z8cdrl2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faholtt3po7of9z8cdrl2.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Finished, now wait for the warning message to come. ding ding ding ding
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[HertzBeat warning notification]
Alarm target object: linux.cpu.usage
Affiliated monitoring ID: 483783444839382
Belonging monitoring name: Linux_182.33.34.2
Alarm level: warning alarm
Alarm trigger time: 2023-02-15 21:13:44
Content details: The linux cpu usage is too high. now is 95.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;This practical article took us to experience how to use the open source real-time monitoring tool HertzBeat to monitor Linux indicator data. We can find that HertzBeat, which integrates &lt;code&gt;monitoring-alarm-notification&lt;/code&gt;, is more convenient in operation and use. Linux can be included in the monitoring and alarm notification, and there is no need to deploy multiple components and write configuration files.&lt;/p&gt;

&lt;p&gt;Only one docker command is needed to install and experience heartbeat:&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;code&gt;docker run -d -p 1157:1157 --name hertzbeat tancloud/hertzbeat&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  More powerful
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Through the simple steps above, we have realized the monitoring of linux, but the built-in indicators in it do not meet the needs. Can we customize and monitor more indicators of Linux? The answer is of course yes, through &lt;strong&gt;Monitoring Definition&lt;/strong&gt;-&amp;gt;&lt;strong&gt;Linux&lt;/strong&gt; on the page, you can customize and modify the performance indicators you want to monitor by editing the following YML configuration file at any time.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhlwphk48uoh8ypq6mcuy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhlwphk48uoh8ypq6mcuy.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Hertz Beat?
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://github.com/dromara/hertzbeat" rel="noopener noreferrer"&gt;HertzBeat Hertz Beat&lt;/a&gt; is a real-time monitoring and alarm system with powerful custom monitoring capabilities and no Agent required. Monitoring of application services, databases, operating systems, middleware, cloud native, etc., threshold alarms, and alarm notifications (email, WeChat, Dingding, Feishu, SMS, Discord, Slack, Telegram).&lt;/p&gt;

&lt;p&gt;We make protocol specifications such as &lt;code&gt;Http, Jmx, Ssh, Snmp, Jdbc&lt;/code&gt; configurable, and you only need to configure YML to use these protocols to customize and collect any indicators you want to collect.&lt;br&gt;
Do you believe that you can immediately adapt to a new monitoring type such as K8s or Docker just by configuring YML?&lt;/p&gt;

&lt;p&gt;The powerful customization of &lt;code&gt;HertzBeat&lt;/code&gt;, multi-type support, easy expansion, and low coupling, hope to help developers and small and medium-sized teams quickly build their own monitoring tools.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Github: &lt;a href="https://github.com/dromara/hertzbeat" rel="noopener noreferrer"&gt;https://github.com/dromara/hertzbeat&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Gitee: &lt;a href="https://gitee.com/dromara/hertzbeat" rel="noopener noreferrer"&gt;https://gitee.com/dromara/hertzbeat&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  ⛄ Supported
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Website Monitoring, Port Availability, Http Api, Ping Connectivity, Jvm, SiteMap, Ssl Certificate, SpringBoot, FTP Server&lt;/li&gt;
&lt;li&gt;Mysql, PostgreSQL, MariaDB, Redis, ElasticSearch, SqlServer, Oracle, MongoDB, Dameng, OpenGauss, ClickHouse, IoTDB&lt;/li&gt;
&lt;li&gt;Linux, Ubuntu, CentOS, Windows&lt;/li&gt;
&lt;li&gt;Tomcat, Nacos, Zookeeper, RabbitMQ, Flink, Kafka, ShenYu, DynamicTp, Jetty, ActiveMQ
-Kubernetes, Docker&lt;/li&gt;
&lt;li&gt;and more for your custom monitoring.&lt;/li&gt;
&lt;li&gt;Notification support &lt;code&gt;Discord&lt;/code&gt; &lt;code&gt;Slack&lt;/code&gt; &lt;code&gt;Telegram&lt;/code&gt; &lt;code&gt;Mail&lt;/code&gt; &lt;code&gt;DingTalk&lt;/code&gt; &lt;code&gt;WeChat&lt;/code&gt; &lt;code&gt;Feishu&lt;/code&gt; &lt;code&gt;SMS&lt;/code&gt; &lt;code&gt;Webhook&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>github</category>
      <category>monitoring</category>
      <category>java</category>
      <category>docker</category>
    </item>
    <item>
      <title>HertzBeat - An open-source monitoring system with custom and agentless.</title>
      <dc:creator>tom</dc:creator>
      <pubDate>Mon, 22 Aug 2022 07:09:52 +0000</pubDate>
      <link>https://forem.com/tomsun28/hertzbeat-an-open-source-monitoring-system-with-custom-and-agentless-5d1f</link>
      <guid>https://forem.com/tomsun28/hertzbeat-an-open-source-monitoring-system-with-custom-and-agentless-5d1f</guid>
      <description>&lt;p&gt;Hi everyone!&lt;/p&gt;

&lt;p&gt;Very happy to be able to recommend an open source project here.&lt;/p&gt;

&lt;p&gt;Hertzbeat is an open-source, real-time monitoring system with custom-monitor and agentless. Support web service, database, os, middleware and more.&lt;/p&gt;

&lt;p&gt;github: &lt;a href="https://github.com/dromara/hertzbeat"&gt;https://github.com/dromara/hertzbeat&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;home: &lt;a href="https://hertzbeat.com/en/"&gt;https://hertzbeat.com/en/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Very welcome to use and give us a star! Thanks!!!!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xR3kQP92--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cftt9gberff85kdobosg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xR3kQP92--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cftt9gberff85kdobosg.png" alt="Image description" width="880" height="394"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--M7KF2Nx9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ouaibbkjeufyczpbci12.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--M7KF2Nx9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ouaibbkjeufyczpbci12.png" alt="Image description" width="880" height="370"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--kEitnpIv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z421hqlfjssddjbav2q6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--kEitnpIv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z421hqlfjssddjbav2q6.png" alt="Image description" width="880" height="343"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--LDl7vBcJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yyeiyhw7haxpxbh9q3xo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--LDl7vBcJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yyeiyhw7haxpxbh9q3xo.png" alt="Image description" width="880" height="371"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--RNYPkf4r--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6f6b6z43rw5p2jm2gojk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--RNYPkf4r--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6f6b6z43rw5p2jm2gojk.png" alt="Image description" width="880" height="368"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Jx0VldaH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b5nxp3oitn0c8edaijaj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Jx0VldaH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b5nxp3oitn0c8edaijaj.png" alt="Image description" width="880" height="370"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--0zHMo6i8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cxhqdaxrc158jdp6aazk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--0zHMo6i8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cxhqdaxrc158jdp6aazk.png" alt="Image description" width="880" height="477"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>product</category>
      <category>monitoring</category>
    </item>
    <item>
      <title>A security framework that focus on the protection of rest api</title>
      <dc:creator>tom</dc:creator>
      <pubDate>Mon, 08 Mar 2021 16:37:05 +0000</pubDate>
      <link>https://forem.com/tomsun28/a-security-framework-that-focus-on-the-protection-of-rest-api-4e78</link>
      <guid>https://forem.com/tomsun28/a-security-framework-that-focus-on-the-protection-of-rest-api-4e78</guid>
      <description>&lt;p&gt;Hi everyone! After 22 versions, I'm excited to announce that the JVM security framework for REST APIs, Sureness, is officially GA.    &lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/tomsun28/sureness"&gt;sureness&lt;/a&gt; - welcome to use and star. Thanks!    &lt;/p&gt;

&lt;h2&gt;
  
  
  📫 Background
&lt;/h2&gt;

&lt;p&gt;In the mainstream web architecture, how to protect the restful api provided by the back-end through effective and fast authentication has become particularly important.&lt;br&gt;&lt;br&gt;
For existing frameworks, whether it is apache shiro which does not natively support rest, or deeply bound spring, the slower performance and steep learning curve of spring security are not our ideal framework.&lt;br&gt;&lt;br&gt;
Ever since sureness was born, we hope to solve these, provide a &lt;strong&gt;restful api&lt;/strong&gt;, &lt;strong&gt;no framework dependency&lt;/strong&gt;, can &lt;strong&gt;dynamically modify permissions&lt;/strong&gt;, &lt;strong&gt;multiple authentication policies&lt;/strong&gt;, &lt;strong&gt;faster&lt;/strong&gt;, &lt;strong&gt;easy to use and extend&lt;/strong&gt; security framework.        &lt;/p&gt;

&lt;h2&gt;
  
  
  🎡 Introduction
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;Sureness is a new, permission project which we learn from apache shiro and add some ideas to create it.&lt;br&gt;&lt;br&gt;
Authentication for restful api, based on RBAC, mainly focused on the protection of restful api.&lt;br&gt;&lt;br&gt;
No specific framework dependency(support springboot, quarkus, javalin, ktor and more).&lt;br&gt;&lt;br&gt;
Support dynamic modification of permissions.&lt;br&gt;&lt;br&gt;
Support websocket, mainstream http container(servlet and jax-rs).&lt;br&gt;&lt;br&gt;
Supports JWT, Basic Auth, Digest Auth... Can extend custom supported authentication methods.&lt;br&gt;&lt;br&gt;
High performance due dictionary matching tree.&lt;br&gt;&lt;br&gt;
Good extension interface, demo and document.    &lt;/p&gt;

&lt;p&gt;The low configuration of sureness, easy to expand, and not coupled with other frameworks, enables developers to quickly and safely protect their projects in multiple scenarios.   &lt;/p&gt;
&lt;/blockquote&gt;

&lt;h5&gt;
  
  
  🔍 Compare
&lt;/h5&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;~&lt;/th&gt;
&lt;th&gt;sureness&lt;/th&gt;
&lt;th&gt;shiro&lt;/th&gt;
&lt;th&gt;spring security&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;multi framework support&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;support&lt;/td&gt;
&lt;td&gt;support need modify&lt;/td&gt;
&lt;td&gt;not support&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;restful api&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;support&lt;/td&gt;
&lt;td&gt;support need modify&lt;/td&gt;
&lt;td&gt;support&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;websocket&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;support&lt;/td&gt;
&lt;td&gt;not support&lt;/td&gt;
&lt;td&gt;not support&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;path match&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;dictionary matching tree&lt;/td&gt;
&lt;td&gt;ant match&lt;/td&gt;
&lt;td&gt;ant match&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;annotation support&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;support&lt;/td&gt;
&lt;td&gt;support&lt;/td&gt;
&lt;td&gt;support&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;servlet&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;support&lt;/td&gt;
&lt;td&gt;support&lt;/td&gt;
&lt;td&gt;support&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;jax-rs&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;support&lt;/td&gt;
&lt;td&gt;not support&lt;/td&gt;
&lt;td&gt;not support&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;dynamic modification of permissions&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;support&lt;/td&gt;
&lt;td&gt;support need modify&lt;/td&gt;
&lt;td&gt;support need modify&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;performance&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;fast&lt;/td&gt;
&lt;td&gt;slower&lt;/td&gt;
&lt;td&gt;slower&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;learning curve&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;simple&lt;/td&gt;
&lt;td&gt;simple&lt;/td&gt;
&lt;td&gt;steep&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h5&gt;
  
  
  📈 Benchmark
&lt;/h5&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--bIPVbuts--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vjrepvbqzzxiyu6dbhlo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bIPVbuts--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vjrepvbqzzxiyu6dbhlo.png" alt="benchmark"&gt;&lt;/a&gt;    &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Benchmark test shows sureness to lose 0.026ms performance compared to frameless application, shiro lose 0.088ms, spring security lose 0.116ms.&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
&lt;strong&gt;In contrast, sureness basically does not consume performance, and the performance (TPS loss) is 3 times that of shiro and 4 times that of spring security.&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
&lt;strong&gt;The performance gap will be further widened as the api matching chain increases.&lt;/strong&gt;      &lt;/p&gt;

&lt;p&gt;Detail see &lt;a href="https://github.com/tomsun28/sureness-shiro-spring-security-benchmark"&gt;Benchmark Test&lt;/a&gt;       &lt;/p&gt;

&lt;h5&gt;
  
  
  ✌ Framework Sample Support
&lt;/h5&gt;

&lt;ul&gt;
&lt;li&gt;[x] sureness integration springboot sample(configuration file scheme) &lt;a href="https://dev.tosample-bootstrap"&gt;sample-bootstrap&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;[x] sureness integration springboot sample(database scheme) &lt;a href="https://dev.tosample-tom"&gt;sample-tom&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;[x] sureness integration quarkus sample &lt;a href="https://dev.tosamples/quarkus-sureness"&gt;sample-quarkus&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;[x] sureness integration javalin sample &lt;a href="https://dev.tosamples/javalin-sureness"&gt;sample-javalin&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;[x] sureness integration ktor sample &lt;a href="https://dev.tosamples/ktor-sureness"&gt;sample-ktor&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;[x] sureness integration spring webflux sample &lt;a href="https://dev.tosamples/spring-webflux-sureness"&gt;sample-spring-webflux&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;[x] more samples todo
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>java</category>
      <category>security</category>
    </item>
  </channel>
</rss>
