Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

EAGLE-1037 Add alertDeduplication configurations on Eagle UI#945

Closed
zombieJ wants to merge 1 commit intoapache:masterfrom
zombieJ:EAGLE-1037
Closed

EAGLE-1037 Add alertDeduplication configurations on Eagle UI#945
zombieJ wants to merge 1 commit intoapache:masterfrom
zombieJ:EAGLE-1037

Conversation

@zombieJ
Copy link
Contributor

@zombieJ zombieJ commented Jun 7, 2017

https://issues.apache.org/jira/browse/EAGLE-1037

Add alertDeduplication configurations on Eagle UI.

Here is the sample policy

{
    "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"
  }

@qingwen220
Copy link
Contributor

LGTM

@asfgit asfgit closed this in 1db33df Jun 8, 2017
@zombieJ zombieJ deleted the EAGLE-1037 branch June 21, 2017 02:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants