-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial commit * update metrics * fixtures and other small assets * tests and assets * lint * validations * Rename 1.added to 19303.added * place holder dash * fix test * fix test * slight rename * change metric to check * fix test * rename test metric
- Loading branch information
Showing
31 changed files
with
13,298 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# CHANGELOG - Keda | ||
|
||
<!-- towncrier release notes start --> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Agent Check: Keda | ||
|
||
## Overview | ||
|
||
This check monitors [Keda][1] through the Datadog Agent. | ||
|
||
Include a high level overview of what this integration does: | ||
- What does your product do (in 1-2 sentences)? | ||
- What value will customers get from this integration, and why is it valuable to them? | ||
- What specific data will your integration monitor, and what's the value of that data? | ||
|
||
## Setup | ||
|
||
Follow the instructions below to install and configure this check for an Agent running on a host. For containerized environments, see the [Autodiscovery Integration Templates][3] for guidance on applying these instructions. | ||
|
||
### Installation | ||
|
||
The Keda check is included in the [Datadog Agent][2] package. | ||
No additional installation is needed on your server. | ||
|
||
### Configuration | ||
|
||
1. Edit the `keda.d/conf.yaml` file, in the `conf.d/` folder at the root of your Agent's configuration directory to start collecting your keda performance data. See the [sample keda.d/conf.yaml][4] for all available configuration options. | ||
|
||
2. [Restart the Agent][5]. | ||
|
||
### Validation | ||
|
||
[Run the Agent's status subcommand][6] and look for `keda` under the Checks section. | ||
|
||
## Data Collected | ||
|
||
### Metrics | ||
|
||
See [metadata.csv][7] for a list of metrics provided by this integration. | ||
|
||
### Events | ||
|
||
The Keda integration does not include any events. | ||
|
||
### Service Checks | ||
|
||
The Keda integration does not include any service checks. | ||
|
||
See [service_checks.json][8] for a list of service checks provided by this integration. | ||
|
||
## Troubleshooting | ||
|
||
Need help? Contact [Datadog support][9]. | ||
|
||
|
||
[1]: **LINK_TO_INTEGRATION_SITE** | ||
[2]: https://app.datadoghq.com/account/settings/agent/latest | ||
[3]: https://docs.datadoghq.com/agent/kubernetes/integrations/ | ||
[4]: https://github.com/DataDog/integrations-core/blob/master/keda/datadog_checks/keda/data/conf.yaml.example | ||
[5]: https://docs.datadoghq.com/agent/guide/agent-commands/#start-stop-and-restart-the-agent | ||
[6]: https://docs.datadoghq.com/agent/guide/agent-commands/#agent-status-and-information | ||
[7]: https://github.com/DataDog/integrations-core/blob/master/keda/metadata.csv | ||
[8]: https://github.com/DataDog/integrations-core/blob/master/keda/assets/service_checks.json | ||
[9]: https://docs.datadoghq.com/help/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: Keda | ||
files: | ||
- name: keda.yaml | ||
options: | ||
- template: init_config | ||
options: | ||
- template: init_config/default | ||
- template: instances | ||
options: | ||
- template: instances/default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"title": "Keda Overview", | ||
"description": "## Keda\n", | ||
"widgets": [ | ||
{ | ||
"id": 4717263751542750, | ||
"definition": { | ||
"title": "", | ||
"banner_img": "/static/images/logos/keda_large.svg", | ||
"show_title": true, | ||
"type": "group", | ||
"layout_type": "ordered", | ||
"widgets": [ | ||
{ | ||
"id": 5685022835071772, | ||
"definition": { | ||
"type": "note", | ||
"content": "## Keda\n", | ||
"background_color": "white", | ||
"font_size": "14", | ||
"text_align": "left", | ||
"vertical_align": "center", | ||
"show_tick": false, | ||
"tick_pos": "50%", | ||
"tick_edge": "left", | ||
"has_padding": true | ||
}, | ||
"layout": { | ||
"x": 0, | ||
"y": 0, | ||
"width": 3, | ||
"height": 3 | ||
} | ||
}, | ||
{ | ||
"id": 8921963557059570, | ||
"definition": { | ||
"type": "note", | ||
"content": "", | ||
"background_color": "white", | ||
"font_size": "14", | ||
"text_align": "center", | ||
"vertical_align": "center", | ||
"show_tick": false, | ||
"tick_pos": "50%", | ||
"tick_edge": "left", | ||
"has_padding": true | ||
}, | ||
"layout": { | ||
"x": 3, | ||
"y": 0, | ||
"width": 3, | ||
"height": 3 | ||
} | ||
} | ||
] | ||
}, | ||
"layout": { | ||
"x": 0, | ||
"y": 0, | ||
"width": 6, | ||
"height": 6 | ||
} | ||
} | ||
], | ||
"template_variables": [ | ||
{ | ||
"name": "host", | ||
"prefix": "host", | ||
"available_values": [], | ||
"default": "*" | ||
} | ||
], | ||
"layout_type": "ordered", | ||
"notify_list": [], | ||
"reflow_type": "fixed" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[ | ||
{ | ||
"agent_version": "7.62.0", | ||
"integration": "Keda", | ||
"check": "keda.openmetrics.health", | ||
"statuses": [ | ||
"ok", | ||
"critical" | ||
], | ||
"groups": [ | ||
"host", | ||
"endpoint" | ||
], | ||
"name": "Keda OpenMetrics endpoint health", | ||
"description": "Returns `CRITICAL` if the Agent is unable to connect to the Keda OpenMetrics endpoint, otherwise returns `OK`." | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Initial Release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# (C) Datadog, Inc. 2024-present | ||
# All rights reserved | ||
# Licensed under a 3-clause BSD style license (see LICENSE) | ||
__path__ = __import__('pkgutil').extend_path(__path__, __name__) # type: ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# (C) Datadog, Inc. 2024-present | ||
# All rights reserved | ||
# Licensed under a 3-clause BSD style license (see LICENSE) | ||
__version__ = '0.0.1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# (C) Datadog, Inc. 2024-present | ||
# All rights reserved | ||
# Licensed under a 3-clause BSD style license (see LICENSE) | ||
from .__about__ import __version__ | ||
from .check import KedaCheck | ||
|
||
__all__ = ['__version__', 'KedaCheck'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# (C) Datadog, Inc. 2024-present | ||
# All rights reserved | ||
# Licensed under a 3-clause BSD style license (see LICENSE) | ||
|
||
from datadog_checks.base import OpenMetricsBaseCheckV2 | ||
|
||
from .metrics import METRIC_MAP, RENAME_LABELS_MAP | ||
|
||
|
||
class KedaCheck(OpenMetricsBaseCheckV2): | ||
DEFAULT_METRIC_LIMIT = 0 | ||
__NAMESPACE__ = 'keda' | ||
|
||
def __init__(self, name, init_config, instances=None): | ||
|
||
super(KedaCheck, self).__init__( | ||
name, | ||
init_config, | ||
instances, | ||
) | ||
|
||
def get_default_config(self): | ||
return { | ||
'metrics': [METRIC_MAP], | ||
"rename_labels": RENAME_LABELS_MAP, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# (C) Datadog, Inc. 2024-present | ||
# All rights reserved | ||
# Licensed under a 3-clause BSD style license (see LICENSE) | ||
|
||
# This file is autogenerated. | ||
# To change this file you should edit assets/configuration/spec.yaml and then run the following commands: | ||
# ddev -x validate config -s <INTEGRATION_NAME> | ||
# ddev -x validate models -s <INTEGRATION_NAME> | ||
|
||
from .instance import InstanceConfig | ||
from .shared import SharedConfig | ||
|
||
|
||
class ConfigMixin: | ||
_config_model_instance: InstanceConfig | ||
_config_model_shared: SharedConfig | ||
|
||
@property | ||
def config(self) -> InstanceConfig: | ||
return self._config_model_instance | ||
|
||
@property | ||
def shared_config(self) -> SharedConfig: | ||
return self._config_model_shared |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# (C) Datadog, Inc. 2024-present | ||
# All rights reserved | ||
# Licensed under a 3-clause BSD style license (see LICENSE) | ||
|
||
# This file is autogenerated. | ||
# To change this file you should edit assets/configuration/spec.yaml and then run the following commands: | ||
# ddev -x validate config -s <INTEGRATION_NAME> | ||
# ddev -x validate models -s <INTEGRATION_NAME> | ||
|
||
|
||
def instance_disable_generic_tags(): | ||
return False | ||
|
||
|
||
def instance_empty_default_hostname(): | ||
return False | ||
|
||
|
||
def instance_min_collection_interval(): | ||
return 15 |
Oops, something went wrong.