Skip to content

hkrutzer/dd-mute-host

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

This is just a little guy that allows you to quickly mute and unmute hosts in Datadog.

Installation

go install github.com/hkrutzer/dd-mute-host@latest

Configuration

The tool requires Datadog API credentials. Set the following environment variables:

  • DD_API_KEY: Your Datadog API key
  • DD_APP_KEY: Your Datadog application key

Usage

List Hosts

To see all hosts and their mute status:

dd-mute-host list

Mute Hosts

To mute one or more hosts for a specified duration:

dd-mute-host mute [--duration minutes] host1 [host2 ...]

Options:

  • --duration: How many minutes to mute the host for (default: 60)

Example:

# Mute a single host for 30 minutes
dd-mute-host mute --duration 30 webserver1

# Mute multiple hosts for the default duration (60 minutes)
dd-mute-host mute webserver1 webserver2 webserver3

Unmute Hosts

To unmute one or more hosts:

dd-mute-host unmute host1 [host2 ...]

Example:

# Unmute a single host
dd-mute-host unmute webserver1

# Unmute multiple hosts
dd-mute-host unmute webserver1 webserver2 webserver3

About

Quickly mute and unmute hosts in Datadog

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages