Skip to content

Instantly share code, notes, and snippets.

@twonds
twonds / README.md
Last active January 21, 2019 11:39
Datadog stream parser for json

dd-udpstream

Parse json events into data dog events

Testing

@mrpatrick
mrpatrick / ssl_check_expire_days.py
Last active September 8, 2020 07:39
Updated to use OpenSSL and cert tags as subprocess no longer works with latest dd-agent
import time
import datetime
from OpenSSL import crypto as c
from checks import AgentCheck
class SSLCheckExpireDays(AgentCheck):
def check(self, instance):
metric = "ssl.expire_in_days"
certfile = instance['cert']
cert_tag = 'cert:%s' % (certfile.split('/')[-1:],)