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

Cleanup and import unmanaged Datadog monitorings in terraform #3558

Closed
lemeurherve opened this issue May 2, 2023 · 3 comments
Closed

Cleanup and import unmanaged Datadog monitorings in terraform #3558

lemeurherve opened this issue May 2, 2023 · 3 comments
Assignees
Labels

Comments

@lemeurherve
Copy link
Member

lemeurherve commented May 2, 2023

Service(s)

Datadog

Summary

Some Datadog monitorings are duplicated (accountapp), unused anymore (Confluence, Jenkins DNS), or not managed as code in https://github.com/jenkins-infra/datadog

We should deduplicate, cleanup and import as code all these monitorings.

Reproduction steps

No response

@dduportal
Copy link
Contributor

#3539 is closed, all monitors are ✅ this issue can be started

@lemeurherve
Copy link
Member Author

Below are the exports as JSON of two existing monitors created in February 2016 and watching Update Center jobs on ci.jenkins-ci.org which don't exist anymore (on ci.jenkins.io):

Details
{
	"id": 476476,
	"name": "Update Centre is not being generated",
	"type": "service check",
	"query": "\"jenkins.job.status\".over(\"job:infra_update_center_v3\").by(\"*\").last(3).count_by_status()",
	"message": "Recent attempts to build the UC JSONs have failed.\n\nSee: https://ci.jenkins-ci.org/job/Update%20Center/job/infra_update_center_v3/lastBuild/\n\n@[email protected]",
	"tags": [],
	"options": {
		"notify_audit": false,
		"timeout_h": 0,
		"include_tags": false,
		"thresholds": {
			"critical": 2
		},
		"notify_no_data": false,
		"renotify_interval": 0,
		"no_data_timeframe": 2,
		"silenced": {}
	},
	"priority": null,
	"restricted_roles": null
}
{
	"id": 485757,
	"name": "Update Centre is not being mirrored",
	"type": "service check",
	"query": "\"jenkins.job.status\".over(\"job:infra_update_center_mirror\").by(\"*\").last(3).count_by_status()",
	"message": "Recent attempts to push the UC JSONs to the mirrors have failed.\n\nSee: https://ci.jenkins-ci.org/job/Update%20Center/job/infra_update_center_mirror/lastBuild/\n\n@[email protected]",
	"tags": [],
	"options": {
		"notify_audit": false,
		"timeout_h": 0,
		"include_tags": false,
		"thresholds": {
			"critical": 2
		},
		"notify_no_data": false,
		"renotify_interval": 0,
		"no_data_timeframe": 2,
		"silenced": {}
	},
	"priority": null,
	"restricted_roles": null
}

I have deleted them.

@lemeurherve
Copy link
Member Author

lemeurherve commented May 24, 2023

Cleanup done, all Datadog monitors are now deduplicated and managed as code via terraform in https://github.com/jenkins-infra/datadog

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

No branches or pull requests

2 participants