Comments (4)
Looks like what this will do: https://github.com/terraform-providers/terraform-provider-datadog/pull/18
To explain the reason why you would want this:
- You have a single DataDog host that is running a PHP application for an online store.
- The host is tagged as
host:web_host
andenvironment:production
. - The host is sending two custom metrics from inside the PHP application:
online_checkout.products_purchased
- increments every time a product is purchasedonline_checkout.checkout_errors
- incruments every time there is a failure when someone tries checking out.
- The host is tagged as
You create a monitor for each case:
- Monitor 1 - A product has been purchased in the last 10 minutes
- Monitor 2 - Number of checkout errors < 1
Your online store doesn't have anyone buying from around 1am-8am each morning, so you want a downtime on this one (Monitor 1) between 1am-8am.
You never want a downtime on checkout errors though (Monitor 2), you want to get notified of this at all hours of the night if someone cannot checkout.
The way the resource is currently designed, you can only set downtimes on host tags, so you cannot just set Monitor 1
with a downtime.
If we can set downtimes by monitor_id
this scenario is possible using this module.
Hopefully this explains why its needed :D
from terraform-provider-datadog.
Mute a single monitor forever:
resource "datadog_monitor" "foo" {
...
silenced {
'*' = 0
}
}
Mute by scope (such as by host or role):
resource "datadog_monitor" "foo" {
...
silenced {
'host:i-1234' = 0
}
}
resource "datadog_monitor" "foo" {
...
silenced {
'role:db' = 0
}
}
I believe this is already supported. Docs for silencing via the provider: docs. Let me know if I didn't understand the comment and that's not what you're talking about.
from terraform-provider-datadog.
As #18 got merged, can we close this?
@philax ?
from terraform-provider-datadog.
Closing @kikitux's request
from terraform-provider-datadog.
Related Issues (20)
- Support for Error Tracking rules and rate limits configuration
- error validating monitor from /api/v1/monitor/validate: 400 Bad Request: {"errors":["Some monitor IDs are invalid"]} HOT 1
- datadog_security_monitoring_rule 409 conflict HOT 1
- Submit signatures for OpenTofu provider registry
- Documentation for `datadog_team_permission_settings` is misleading/incomplete HOT 1
- Logs Index Resource `name` is missing `ForceNew`
- Issues with Javascript browser variable and related extractFromJavascript browser step
- resource_datadog_monitor - Null attributes not being skiped even when no needed - variables.0.event_query.0.search.0.query" is required, but no │ definition was found. HOT 4
- Synthetic test fails with INVALID_CHAR_IN_HEADER if entry in request_headers comes from data.local_file HOT 2
- support for datadog_integration_confluent_account data resource
- Synthetics Test Multi-steps client certificate config broken when applied second time
- datadog_logs_index - allow changing Flex log settings
- Support querying incident analytics for dashboard widget overlays
- Add datadog_integration_snowflake resource
- Synthetic Test In-Place Update Removes config_variable valuable even when `example` value set
- Automatically handle built-in pipelines in datadog_logs_pipeline_order
- Error creating `datadog_integration_aws_log_collection` fixed on rerun HOT 2
- Add new downtime resource HOT 2
- Document `assert_page_lacks` API
- heredocs don't work in datadog_monitor querries
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-datadog.