This tool is designed to help you manage and configure custom metrics tags in your Datadog environment efficiently. It leverages the Datadog API and Go programming language to automate tasks related to metric configuration and management.
Before using this tool, make sure you have the following prerequisites in place:
-
Datadog API Key: You'll need an API key to authenticate with the Datadog API. Set it as an environment variable named
DATADOG_API_KEY
. -
Datadog Application Key: Similarly, set your application key as an environment variable named
DATADOG_APPLICATION_KEY
.
-
Clone this repository to your local machine:
git clone https://github.com/iamsaso/Datadog-Metrics-without-Limits.git
-
Navigate to the project directory:
cd Datadog-Metrics-without-Limits
-
Build and run the application:
go run main.go
-
The application will fetch metrics data and perform the following tasks for each metric:
- Retrieve active metric configurations.
- Retrieve metric metadata (type).
- List tag configurations by metric name.
- Update or create tag configurations as needed.
You can modify the behavior of the tool by adjusting the following optional parameters in the main.go
file:
optionalParams.WithDay
: Configure the time range for metric retrieval.optionalParams.WithLimit
: Set the limit for the number of metrics to process.listActiveMetricConfigurationsOptionalParams.WithWindowSeconds
: Define the time window for active metric configurations.
Contributions are welcome! If you have any improvements or feature suggestions, please feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Disclaimer: This tool is provided as-is and may have specific requirements and limitations depending on your Datadog environment. Use it responsibly and ensure it aligns with your organization's policies and practices.