Skip to main content

A Zabbix sender module with async features

Project description

Zabbix Async Sender module for Python

Install

pip install zabbix-sender-async

Examples

import asyncio
from zabbixasync.sender import AsyncSender, ItemData

async def sendmetrics():
    sender = AsyncSender('localhost', 10051)
    metric = ItemData(host='hostname', key='test.metric.text', value='test package import')
    result = await sender.send(metric)
    print(result)

asyncio.run(sendmetrics())

Expected result:

ZabbixResponse(processed=1, failed=0, total=1, seconds_spent=0.00019, response='success')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zabbix_sender_async-1.0.4.tar.gz (33.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zabbix_sender_async-1.0.4-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

File details

Details for the file zabbix_sender_async-1.0.4.tar.gz.

File metadata

  • Download URL: zabbix_sender_async-1.0.4.tar.gz
  • Upload date:
  • Size: 33.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for zabbix_sender_async-1.0.4.tar.gz
Algorithm Hash digest
SHA256 d0610cb514a5640ef7b1e7fcebc29f88e53a0bbb2b75dfbbeac464d5c3b22e75
MD5 84351bdd857be5492721ebe5b3b47e05
BLAKE2b-256 e3bbbd8664c9d30e613c0641f674d2ecd057219ca32abdd140b80af9a9ccb151

See more details on using hashes here.

File details

Details for the file zabbix_sender_async-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for zabbix_sender_async-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d51fdad8842d7cf023bb5b4c6e9430bb3b7701dd3e915e9d44e100d84a0f243f
MD5 67fdd2f9064a651222709247a4d15237
BLAKE2b-256 30992bc41262425e47bb5a8054c8f0a29f45dc63b0b7a5c72024a188bd7f675a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page