-
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.
kafka_consumer: Add kafka.consumer_lag_seconds metric
- Loading branch information
1 parent
5047ca1
commit 0bf6c28
Showing
3 changed files
with
52 additions
and
20 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
kafka_consumer/datadog_checks/kafka_consumer/datadog_agent.py
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 @@ | ||
# (C) Datadog, Inc. 2020-present | ||
# All rights reserved | ||
# Licensed under Simplified BSD License (see LICENSE) | ||
|
||
from typing import Optional | ||
|
||
try: | ||
from datadog_agent import read_persistent_cache, write_persistent_cache | ||
except ImportError: | ||
|
||
def write_persistent_cache(key, value): | ||
# type: (str, str) -> None | ||
pass | ||
|
||
def read_persistent_cache(key): | ||
# type: (str) -> Optional[str] | ||
return '' |
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