Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Python module for publishing custom metrics to an ITRS StatsD server.
The module is part of the Orchestrated Netprobe solution for collecting metrics in orchestrated environments. See the docs for complete details.
The module is available via PyPI:
pip3 install itrsstatsd
How to get and use a statsd API handle:
pydoc3 itrsstatsd
API documentation:
pydoc3 itrsstatsd.api
Units of measure documentation:
pydoc3 itrsstatsd.units
from itrsstatsd import build_statsd
from itrsstatsd.units import Unit
from itrsstatsd.severity import Severity
# Create an instance of the client that sends to localhost:8125
statsd = build_statsd()
# Optionally add dimension(s) to all metrics
statsd.default_dimensions(app_name="pyapp")
# Record some metrics
statsd.increment("failed_logins")
statsd.gauge("cache_size", 52.5, Unit.Megabytes)
statsd.timer("query_time", 56)
statsd.event("event_name_1", "event_message", Severity.INFO)
statsd.attribute("attr_name_1", "A1")
Refer to the pydoc for complete usage details.
New Features:
New Features:
C2-92: StatsD configuration via environment variables
This introduces the following changes:
STATSD_SERVER
and STATSD_PORT
environment variables now have precedence over the hostname
and port configured in code.STATSD_PROTOCOL
environment variable which can be set to tcp
or udp
and overrides the protocol
configured in code.STATSD_DISABLE_PLATFORM_DIMENSIONS
environment variable which, if true
, will prevent the platform-specific
dimensions from being added to each metric. This overrides the value configured in code.STATSD_DIMENSION_*
environment variable(s).Resolved:
New Features:
Resolved:
New Features:
New Features:
First version.
FAQs
ITRS StatsD Client
We found that itrsstatsd demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.