forked from pinpoint-apm/pinpoint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pinpoint-apm#10704] Improved the use of inspector data in pinot duri…
…ng alarm batch operation.
- Loading branch information
1 parent
6be46bc
commit be84305
Showing
55 changed files
with
1,813 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
...va/com/navercorp/pinpoint/batch/alarm/checker/DataSourceConnectionUsageRateCheckerV2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* | ||
* * Copyright 2024 NAVER Corp. | ||
* * | ||
* * Licensed under the Apache License, Version 2.0 (the "License"); | ||
* * you may not use this file except in compliance with the License. | ||
* * You may obtain a copy of the License at | ||
* * | ||
* * http://www.apache.org/licenses/LICENSE-2.0 | ||
* * | ||
* * Unless required by applicable law or agreed to in writing, software | ||
* * distributed under the License is distributed on an "AS IS" BASIS, | ||
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* * See the License for the specific language governing permissions and | ||
* * limitations under the License. | ||
* | ||
* | ||
*/ | ||
|
||
package com.navercorp.pinpoint.batch.alarm.checker; | ||
|
||
import com.navercorp.pinpoint.batch.alarm.collector.DataCollector; | ||
import com.navercorp.pinpoint.batch.alarm.collector.pinot.DataSourceDataCollector; | ||
import com.navercorp.pinpoint.batch.alarm.vo.DataSourceAlarmVO; | ||
import com.navercorp.pinpoint.web.alarm.vo.Rule; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
/** | ||
* @author minwoo-jung | ||
*/ | ||
public class DataSourceConnectionUsageRateCheckerV2 extends DataSourceConnectionUsageRateChecker{ | ||
public DataSourceConnectionUsageRateCheckerV2(DataCollector dataSourceDataCollector, Rule rule) { | ||
super(dataSourceDataCollector, rule); | ||
} | ||
|
||
@Override | ||
protected Map<String, List<DataSourceAlarmVO>> getAgentValues() { | ||
return ((DataSourceDataCollector)dataCollector).getDataSourceConnectionUsageRate(); | ||
} | ||
|
||
} |
40 changes: 40 additions & 0 deletions
40
batch/src/main/java/com/navercorp/pinpoint/batch/alarm/checker/FileDescriptorCheckerV2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* | ||
* * Copyright 2024 NAVER Corp. | ||
* * | ||
* * Licensed under the Apache License, Version 2.0 (the "License"); | ||
* * you may not use this file except in compliance with the License. | ||
* * You may obtain a copy of the License at | ||
* * | ||
* * http://www.apache.org/licenses/LICENSE-2.0 | ||
* * | ||
* * Unless required by applicable law or agreed to in writing, software | ||
* * distributed under the License is distributed on an "AS IS" BASIS, | ||
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* * See the License for the specific language governing permissions and | ||
* * limitations under the License. | ||
* | ||
* | ||
*/ | ||
|
||
package com.navercorp.pinpoint.batch.alarm.checker; | ||
|
||
import com.navercorp.pinpoint.batch.alarm.collector.pinot.FileDescriptorDataCollector; | ||
import com.navercorp.pinpoint.web.alarm.vo.Rule; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* @author minwoo-jung | ||
*/ | ||
public class FileDescriptorCheckerV2 extends LongValueAgentChecker { | ||
|
||
public FileDescriptorCheckerV2(FileDescriptorDataCollector dataCollector, Rule rule) { | ||
super(rule, "", dataCollector); | ||
} | ||
|
||
@Override | ||
protected Map<String, Long> getAgentValues() { | ||
return ((FileDescriptorDataCollector)dataCollector).getFileDescriptorCount(); | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
batch/src/main/java/com/navercorp/pinpoint/batch/alarm/checker/HeapUsageRateCheckerV2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Copyright 2014 NAVER Corp. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.navercorp.pinpoint.batch.alarm.checker; | ||
|
||
import com.navercorp.pinpoint.batch.alarm.collector.pinot.HeapDataCollector; | ||
import com.navercorp.pinpoint.web.alarm.vo.Rule; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* @author minwoo.jung | ||
* @author Jongjin.Bae | ||
*/ | ||
public class HeapUsageRateCheckerV2 extends LongValueAgentChecker { | ||
|
||
public HeapUsageRateCheckerV2(HeapDataCollector dataCollector, Rule rule) { | ||
super(rule, "%", dataCollector); | ||
} | ||
|
||
@Override | ||
protected Map<String, Long> getAgentValues() { | ||
return ((HeapDataCollector)dataCollector).getAgentHeapUsageRate(); | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
batch/src/main/java/com/navercorp/pinpoint/batch/alarm/checker/JvmCpuUsageRateCheckerV2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* | ||
* * Copyright 2024 NAVER Corp. | ||
* * | ||
* * Licensed under the Apache License, Version 2.0 (the "License"); | ||
* * you may not use this file except in compliance with the License. | ||
* * You may obtain a copy of the License at | ||
* * | ||
* * http://www.apache.org/licenses/LICENSE-2.0 | ||
* * | ||
* * Unless required by applicable law or agreed to in writing, software | ||
* * distributed under the License is distributed on an "AS IS" BASIS, | ||
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* * See the License for the specific language governing permissions and | ||
* * limitations under the License. | ||
* | ||
* | ||
*/ | ||
|
||
package com.navercorp.pinpoint.batch.alarm.checker; | ||
|
||
import com.navercorp.pinpoint.batch.alarm.collector.pinot.JvmCpuDataCollector; | ||
import com.navercorp.pinpoint.web.alarm.vo.Rule; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* @author minwoo-jung | ||
*/ | ||
public class JvmCpuUsageRateCheckerV2 extends LongValueAgentChecker { | ||
|
||
public JvmCpuUsageRateCheckerV2(JvmCpuDataCollector dataCollector, Rule rule) { | ||
super(rule, "%", dataCollector); | ||
} | ||
|
||
@Override | ||
protected Map<String, Long> getAgentValues() { | ||
return ((JvmCpuDataCollector)dataCollector).getJvmCpuUsageRate(); | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
...src/main/java/com/navercorp/pinpoint/batch/alarm/checker/SystemCpuUsageRateCheckerV2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* | ||
* * Copyright 2024 NAVER Corp. | ||
* * | ||
* * Licensed under the Apache License, Version 2.0 (the "License"); | ||
* * you may not use this file except in compliance with the License. | ||
* * You may obtain a copy of the License at | ||
* * | ||
* * http://www.apache.org/licenses/LICENSE-2.0 | ||
* * | ||
* * Unless required by applicable law or agreed to in writing, software | ||
* * distributed under the License is distributed on an "AS IS" BASIS, | ||
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* * See the License for the specific language governing permissions and | ||
* * limitations under the License. | ||
* | ||
* | ||
*/ | ||
|
||
package com.navercorp.pinpoint.batch.alarm.checker; | ||
|
||
import com.navercorp.pinpoint.batch.alarm.collector.pinot.SystemCpuDataCollector; | ||
import com.navercorp.pinpoint.web.alarm.vo.Rule; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* @author minwoo-jung | ||
*/ | ||
public class SystemCpuUsageRateCheckerV2 extends LongValueAgentChecker { | ||
|
||
public SystemCpuUsageRateCheckerV2(SystemCpuDataCollector dataCollector, Rule rule) { | ||
super(rule, "%", dataCollector); | ||
} | ||
|
||
@Override | ||
protected Map<String, Long> getAgentValues() { | ||
return ((SystemCpuDataCollector)dataCollector).getSystemCpuUsageRate(); | ||
} | ||
} |
Oops, something went wrong.