How to Create Custom Widgets in Datadog
Learn how to create and customize widgets in Datadog to visualize your monitoring data effectively. This guide walks you through the steps to set up custom widgets tailored to your needs.
Last updated
Learn how to create and customize widgets in Datadog to visualize your monitoring data effectively. This guide walks you through the steps to set up custom widgets tailored to your needs.
Last updated
{
"type": "treemap",
"requests": [
{
"response_format": "scalar",
"queries": [
{
"data_source": "events",
"name": "query1",
"indexes": [
"*"
],
"compute": {
"aggregation": "cardinality",
"metric": "@evt.id"
},
"group_by": [
{
"facet": "@aggregation_key",
"limit": 100,
"sort": {
"order": "desc",
"aggregation": "cardinality",
"metric": "@evt.id"
}
}
],
"search": {
"query": "source:isdown status:(warn OR error)"
}
}
],
"formulas": [
{
"formula": "query1"
}
]
}
]
}{
"type": "timeseries",
"requests": [
{
"style": {
"palette": "semantic",
"type": "solid",
"width": "normal"
},
"type": "bars",
"formulas": [
{
"formula": "query1"
}
],
"queries": [
{
"data_source": "events",
"name": "query1",
"indexes": [
"*"
],
"compute": {
"aggregation": "cardinality",
"metric": "@evt.id",
"interval": 86400000
},
"group_by": [
{
"facet": "@aggregation_key",
"limit": 10,
"sort": {
"order": "desc",
"aggregation": "cardinality",
"metric": "@evt.id"
}
}
],
"search": {
"query": "source:isdown status:(warn OR error)"
}
}
],
"response_format": "timeseries"
}
]
}