Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configuration for the monitor health check. #7

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

ivansg
Copy link
Collaborator

@ivansg ivansg commented Oct 29, 2019

Add configuration for themonitor health check.
Add defaults to variables documentation.
Use the fully qualified app name for all the resources

… documentation. Use the fully qualified app name for all the resources
variables.tf Outdated Show resolved Hide resolved
variables.tf Outdated Show resolved Hide resolved
alerts.tf Show resolved Hide resolved
Copy link
Member

@betabandido betabandido left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor changes (formatting).

README.md Outdated
newrelic_fully_qualified_app_name = "Team/PRD/App"
service_healthcheck_url = "https://your-service-url.com"
synthetics_monitor_health_endpoint_url = "https://your-service-url.com"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra spaces.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

status = "ENABLED"
locations = ["AWS_US_EAST_1", "AWS_US_WEST_1", "AWS_EU_WEST_1", "AWS_EU_WEST_3", "AWS_AP_NORTHEAST_1", "AWS_AP_SOUTHEAST_2"]
bypass_head_request = var.synthetics_monitor_bypass_head_request
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not aligned. Easy to solve in VS code: cmd+shift+P then Format Document.

Actually, let's use this to improve locations too. I would place each location on a different line:

locations = [
  "AWS_US_EAST_1",
  "AWS_US_WEST_1",
  ...
]

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, I was not aware of the Format Document action

test/test.tf Outdated
@@ -4,11 +4,10 @@ provider "newrelic" {

module "newrelic_monitoring" {
source = "../"

newrelic_app_name = var.newrelic_app_name

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra newline.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants