diff --git a/README.md b/README.md index f92854b..6f10c91 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/checks.d/venafi_cert.py b/checks.d/venafi_cert.py index 2727b9d..b024004 100644 --- a/checks.d/venafi_cert.py +++ b/checks.d/venafi_cert.py @@ -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"] @@ -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"] @@ -532,7 +536,7 @@ def get_log_events(self): url = self.BASE_URL + "/vedsdk/Log/" params = { - "limit": self.LIMIT, + "limit": self.LOG_LIMIT, } headers = { diff --git a/conf.d/venafi_cert.yaml b/conf.d/venafi_cert.yaml index 3c79498..8751aab 100644 --- a/conf.d/venafi_cert.yaml +++ b/conf.d/venafi_cert.yaml @@ -8,6 +8,7 @@ instances: # client_id: "clientid" # scope: "scope:scope" # req_limit: 10000 + # log_req_limit: 10000 # key_sizes: # - 512 # - 1024