Skip to content

Commit

Permalink
Merge pull request #302 from airbnb/ryandeivert-metric-alarms-cli
Browse files Browse the repository at this point in the history
[cli][metrics] metric alarms configurable through the cli
  • Loading branch information
ryandeivert authored Sep 11, 2017
2 parents d54ad1a + e427d16 commit d3ac7f3
Show file tree
Hide file tree
Showing 14 changed files with 861 additions and 65 deletions.
1 change: 1 addition & 0 deletions conf/clusters/prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
},
"rule_processor": {
"current_version": "$LATEST",
"enable_metrics": true,
"log_level": "info",
"memory": 128,
"timeout": 10
Expand Down
3 changes: 0 additions & 3 deletions conf/global.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
"region": "us-east-1"
},
"infrastructure": {
"metrics": {
"enabled": true
},
"monitoring": {
"create_sns_topic": true
}
Expand Down
2 changes: 2 additions & 0 deletions docs/source/athena-deploy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Open ``conf/lambda.json``, and fill in the following ``Required`` options:
Key Required Default Description
----------------------------------- -------- -------------------- -----------
``enabled`` ``Yes`` ``true`` Enables/Disables the Athena Partition Refresh Lambda function
``enable_metrics`` ``No`` ``false`` Enables/Disables logging of metrics for the Athena Partition Refresh Lambda function
``log_level`` ``No`` ``info`` The log level for the Lambda function, can be either ``info`` or ``debug``. Debug will help with diagnosing errors with polling SQS or sending Athena queries.
``memory`` ``No`` ``128`` The amount of memory (in MB) allocated to the Lambda function
``timeout`` ``No`` ``60`` The maximum duration of the Lambda function (in seconds)
Expand All @@ -70,6 +71,7 @@ Key Required Default Descriptio
{
"athena_partition_refresh_config": {
"enabled": true,
"enable_metrics": false,
"log_level": "info",
"memory": 128,
"refresh_type": {
Expand Down
Loading

0 comments on commit d3ac7f3

Please sign in to comment.