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

Custom Resources for DataDog resources #4

Open
mzizzi opened this issue Dec 2, 2019 · 10 comments
Open

Custom Resources for DataDog resources #4

mzizzi opened this issue Dec 2, 2019 · 10 comments
Labels
enhancement New feature or request feature request

Comments

@mzizzi
Copy link

mzizzi commented Dec 2, 2019

I apologize in advance if this isn't the right place for these sorts of questions of if I missed this on road map elsewhere.

Has there been any discussion around the DataDog operator handling custom resources for Monitors, Dashboards, etc? Idea being that I'd like to template and provision DataDog resources using the same kube manifests/charts that I deploy the rest of my infrastructure with. This is similar to how the prometheus operator supports PrometheusRule resources.

I previously hacked out this concept as part of playing with a python operator framework: https://github.com/mzizzi/dogkop

I'd imagined being able to create DataDog Monitor resources as follows:

apiVersion: datadog.mzizzi/v1
kind: Monitor
metadata:
  name: my-monitor
spec:
  type: metric alert
  query: avg(last_5m):sum:system.net.bytes_rcvd{host:host0} > 100
  name: Bytes received on host0
  message: We may need to add web hosts if this is consistently high.
  tags:
    - foo:bar
  options:
    notify_no_data: True,
    no_data_timeframe: 20

This could be extremely powerful when coupled with the DataDog agent's OpenMetrics/Prometheus checks.

@cohenyair
Copy link

@mzizzi absolutely, we believe in leveraging the Kubernetes Operator pattern to automate the creation and administration of Datadog resources such as Monitors and Dashboards. We are having discussions around this concept and will share any updates with our community as we go.

In the meantime, we love seeing projects like yours that help validate the use-cases of different users. There is another open-source project by FairwindsOps that simplifies the administration of Datadog monitors for Kubernetes deployments using an Operator, which you can also have a look at here: https://github.com/FairwindsOps/astro

@stefansedich
Copy link

stefansedich commented Jan 23, 2020

@mzizzi I started on a POC of an operator inspired by dogkop https://github.com/stefansedich/datadog-operator definately powerful and great to be able to keep monitoring in the same place as your deployment.

Looking forward to seeing something like this added to the official operator and expanded to other resources like dashboards, etc...

@ahmed-mez ahmed-mez added enhancement New feature or request feature request labels Apr 7, 2020
@iAnomaly
Copy link

Hi @cohenyair, just wondering if we could have a status update on where this sits or any visibility into a roadmap as we move through 2021. Thank you!

@NasAmin
Copy link

NasAmin commented May 17, 2022

It would be great to add an SLO CRD as well. Something similar to the OpenSLO maybe?

@kgoralski
Copy link

https://github.com/DataDog/datadog-operator/tree/main/examples/datadogmonitor

@benwaffle
Copy link

+1, would love to create SLOs via yaml

@cmotta2016
Copy link

+1

@spidercensus
Copy link

+1!

@FarhanSajid1
Copy link

Any updates regarding the addition of dashboards as CRD?

@dreinhardt89
Copy link

+1

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

No branches or pull requests