GitHub user zombieJ opened a pull request:
https://github.com/apache/eagle/pull/945
EAGLE-1037 Add alertDeduplication configurations on Eagle UI
https://issues.apache.org/jira/browse/EAGLE-1037
Add alertDeduplication configurations on Eagle UI.
Here is the sample policy
```json
{
"name": "capacityUsage",
"description": "Policy for
HADOOP_JMX_METRIC_STREAM_SANDBOX_CAPACITY_USAGE_OUT",
"inputStreams": [
"HADOOP_JMX_METRIC_STREAM_SANDBOX"
],
"outputStreams": [
"HADOOP_JMX_METRIC_STREAM_SANDBOX_CAPACITY_USAGE_OUT"
],
"siteId": "sandbox",
"definition": {
"type": "siddhi",
"value": "from HADOOP_JMX_METRIC_STREAM_SANDBOX[metric ==
\"hadoop.namenode.fsnamesystemstate.capacityusage\" and convert(value,
\"long\") > 90]select site, host, component, metric, convert(value, \"long\")
as value, timestamp insert into
HADOOP_JMX_METRIC_STREAM_SANDBOX_CAPACITY_USAGE_OUT;",
"handlerClass": null,
"properties": {},
"inputStreams": [],
"outputStreams": []
},
"stateDefinition": null,
"policyStatus": "ENABLED",
"alertDefinition": {
"templateType": "TEXT",
"subject": "$site capacity exceeds 90%",
"body": "$site capacity exceeds 90%",
"severity": "WARNING",
"category": "HDFS"
},
"alertDeduplications": [
{
"outputStreamId":
"HADOOP_JMX_METRIC_STREAM_SANDBOX_CAPACITY_USAGE_OUT",
"dedupIntervalMin": "1",
"dedupFields": [
"site",
"component",
"host",
"metric"
]
}
],
"partitionSpec": [
{
"streamId": "HADOOP_JMX_METRIC_STREAM_SANDBOX",
"type": "SHUFFLE",
"columns": [],
"sortSpec": null
}
],
"dedicated": false,
"parallelismHint": 5,
"alertSeverity": "WARNING",
"alertCategory": "HDFS"
}
```
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zombieJ/incubator-eagle EAGLE-1037
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/eagle/pull/945.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #945
----
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---