Skip to content

Commit

Permalink
Merge pull request #8 from rizalgowandy/feat/beta
Browse files Browse the repository at this point in the history
Integrate NewRelic One Dashboard
  • Loading branch information
Rizal Widyarta Gowandy authored Feb 20, 2021
2 parents b784414 + f8ab08b commit 619ecde
Show file tree
Hide file tree
Showing 7 changed files with 689 additions and 193 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ override.tf.json

# IDE
.idea/

# Development
development/
24 changes: 24 additions & 0 deletions .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 22 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,38 @@ data "newrelic_entity" "app_grpc" {
}
module "grpc_dashboard" {
source = "git::https://github.com/rizalgowandy/terraform-peractio-newrelic?ref=v0.0.2"
# Replace with your service name.
dashboard_name = "app_grpc"
service_name = "app_grpc"
source = "git::https://github.com/rizalgowandy/terraform-peractio-newrelic?ref=v0.1.0"
# Replace with your account id.
account_id = var.account_id
# Replace with your application id.
application_id = data.newrelic_entity.app_grpc.application_id
# Replace with your metric name.
event_name = "grpc_performance"
# Replace with your dashboard name, should be unique for your account.
dashboard_name = "app_grpc"
service_name = "app_grpc"
# Replace with your metric name.
event_name = "grpc_performance"
# Help make widget name more feasible with replacing long method name.
# Example:
# "/inventory.v1.Inventory/GetProducts" => "/v1.Inventory/GetProducts"
event_method_substring = "/inventory./"
event_method_replace = ""
# Replace with your metric method name.
event_methods = [
event_methods = [
"/inventory.v1.Inventory/GetProducts",
"/inventory.v1.Inventory/CheckStocks",
]
}
```

### Required Event Tags
### Standardized Event Tags

- metric_status
- method
- ops
- code
- err
- err_line
- message
- metric_status => `ENUM('success', 'error', 'expected_error')`
- method => e.g `"/inventory.v1.Inventory/GetProducts"`
- ops => e.g `"service/Inventory.GetProductDetail"`
- code => e.g `'invalid'`, and `'not_found'`
- err => the value of `error.Error()`
- err_line => e.g `"/inventory-mgmt/internal/service/inventory.go:634"`
- message => humanize error message
Loading

0 comments on commit 619ecde

Please sign in to comment.