Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ To install the project's dependencies, clone this repo to the host machine and r
| client_id | `OAuth` client id. Required if `auth_method` is `oauth`. | No
| scope | `OAuth` scope. Required if `auth_method` is `oauth`. | No
| req_limit | Default is `10000`. Limits number of records returned from the API. | No
| log_req_limit | Default is `10000`. Limits number of log records returned from the API. | No
| key_sizes | Default is a list of `[512, 1024, 2048]` | No
| key_algorithms | Default is a list of `["RSA", "ECC"]` | No
| min_collection_interval | Default is `60`. Sets the minimum interval of metrics collections when the DataDog agent is running.| No
Expand Down
6 changes: 5 additions & 1 deletion checks.d/venafi_cert.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
class VenafiCheck(AgentCheck):
UTCNOW = datetime.utcnow()
LIMIT = 5000
LOG_LIMIT = 10000

KEY_SIZES = [256, 512, 1024, 2048]
KEY_ALGOS = ["RSA", "ECC"]
Expand Down Expand Up @@ -76,6 +77,9 @@ def configure(self, instance):
if "req_limit" in instance:
self.LIMIT = instance["req_limit"]

if "log_req_limit" in instance:
self.LOG_LIMIT = instance["log_req_limit"]

if "key_sizes" in instance:
self.KEY_SIZES = instance["key_sizes"]

Expand Down Expand Up @@ -532,7 +536,7 @@ def get_log_events(self):
url = self.BASE_URL + "/vedsdk/Log/"

params = {
"limit": self.LIMIT,
"limit": self.LOG_LIMIT,
}

headers = {
Expand Down
1 change: 1 addition & 0 deletions conf.d/venafi_cert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ instances:
# client_id: "clientid"
# scope: "scope:scope"
# req_limit: 10000
# log_req_limit: 10000
# key_sizes:
# - 512
# - 1024
Expand Down