PHPackages                             cybercog/opentsdb-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. cybercog/opentsdb-client

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

cybercog/opentsdb-client
========================

PHP OpenTSDB HTTP Client

0.2.1(2mo ago)282↓100%MITPHPPHP ^8.0CI passing

Since Sep 1Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/cybercog/php-opentsdb-client)[ Packagist](https://packagist.org/packages/cybercog/opentsdb-client)[ Docs](https://komarev.com/sources/php-opentsdb-client)[ Fund](https://paypal.me/antonkomarev)[ RSS](/packages/cybercog-opentsdb-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (9)Used By (0)

PHP OpenTSDB HTTP API Client
============================

[](#php-opentsdb-http-api-client)

[![Discord](https://camo.githubusercontent.com/86e83e2f2ffe2f5caffed9d8886bb512bf42bf927dd8bb8e864d9e9983313ff7/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6f676f3d646973636f7264266c6162656c3d266d6573736167653d446973636f726426636f6c6f723d333633393366267374796c653d666c61742d737175617265)](https://discord.gg/A8Phy8yJH6)[![Releases](https://camo.githubusercontent.com/26c4d110f3537b7d2ee311b0ee9cd8dd6ad5116007c84fd9298cfc0e564fbbdb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6379626572636f672f7068702d6f70656e747364622d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://github.com/cybercog/php-opentsdb-client/releases)[![Build](https://camo.githubusercontent.com/0ea36dd165f33460aaa12ab31bff5e686759e2b6e8ae2ce9f3c029256f9a1db2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6379626572636f672f7068702d6f70656e747364622d636c69656e742f74657374732e796d6c3f7374796c653d666c61742d737175617265)](https://github.com/cybercog/php-opentsdb-client/actions/workflows/tests.yml)[![License](https://camo.githubusercontent.com/2dc7a544decf82f92264b8cf9449e48058f064b6401fe7ad1c949a046fa19cab/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6379626572636f672f7068702d6f70656e747364622d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://github.com/cybercog/php-opentsdb-client/blob/master/LICENSE)

Introduction
------------

[](#introduction)

This package allows you to send (push) metrics (data points) to the OpenTSDB database from the PHP application using an HTTP API.

- [OpenTSDB HTTP API](http://opentsdb.net/docs/build/html/api_http/index.html)

This package does not cover Telnet API, and that's why:

- Telnet API use cases: quick tests, debugging, or simple commands in a development environment.
- HTTP API use cases: production applications, complex data queries, integrations with other systems, and secure communications.

OpenTSDB HTTP API supported by:

- [VictoriaMetrics](https://docs.victoriametrics.com/#sending-opentsdb-data-via-http-apiput-requests) (because of [limited functionality](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/959) only `sendDataPointList` method is supported)

What is OpenTSDB
----------------

[](#what-is-opentsdb)

OpenTSDB is a distributed, scalable Time Series Database (TSDB) written on top of HBase. OpenTSDB was written to address a common need: store, index and serve metrics collected from computer systems (network gear, operating systems, applications) at a large scale, and make this data easily accessible and graphable.

OpenTSDB provides an HTTP based application programming interface to enable integration with external systems. Almost all OpenTSDB features are accessible via the API such as querying time-series data, managing metadata and storing data points.

Usage
-----

[](#usage)

```
$dataPointList[] = new \Cog\OpenTsdbClient\DataPoint(
    metric: 'temperature',
    timestamp: time(),
    value: -38.04,
    tags: ['place' => 'south_pole'],
);
$dataPointList[] = new \Cog\OpenTsdbClient\DataPoint(
    metric: 'temperature',
    timestamp: time(),
    value: -2.12,
    tags: ['place' => 'north_pole'],
);

$openTsdbClient = new \Cog\OpenTsdbClient\OpenTsdbClient(
    httpClient: \Http\Adapter\Guzzle7\Client::createWithConfig(
        [
            'timeout' => 4,
            'connect_timeout' => 2,
            'http_errors' => false,
        ],
    ),
    baseUri: 'http://opentsdb:4242',
);

$openTsdbClient->sendDataPointList($dataPointList);
```

Alternatives
------------

[](#alternatives)

- Java: [sps/metrics-opentsdb](https://github.com/sps/metrics-opentsdb)
- Go: [bluebreezecf/opentsdb-goclient](https://github.com/bluebreezecf/opentsdb-goclient)
- .net: [dejanfajfar/openTSDB.net](https://github.com/dejanfajfar/openTSDB.net)

License
-------

[](#license)

- `PHP OpenTSDB HTTP API Client` package is open-sourced software licensed under the [MIT license](LICENSE) by [Anton Komarev](https://komarev.com).

🌟 Stargazers over time
----------------------

[](#-stargazers-over-time)

[![Stargazers over time](https://camo.githubusercontent.com/055ce1f8b33000da089d09b4f8be3b3d3b3b16ef51824e3f1e5aaaa18eb47a66/68747470733a2f2f63686172742e79687970652e6d652f6769746875622f7265706f7369746f72792d737461722f76312f3834393736343336342e737667)](https://yhype.me?utm_source=github&utm_medium=cybercog-php-opentsdb-client&utm_content=chart-repository-star-cumulative)

About CyberCog
--------------

[](#about-cybercog)

[CyberCog](https://cybercog.su) is a Social Unity of enthusiasts. Research the best solutions in product &amp; software development is our passion.

- [Follow us on Twitter](https://twitter.com/cybercog)

[![CyberCog](https://cloud.githubusercontent.com/assets/1849174/18418932/e9edb390-7860-11e6-8a43-aa3fad524664.png)](https://cybercog.su)

###  Health Score

41

—

FairBetter than 88% of packages

Maintenance93

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~181 days

Total

4

Last Release

69d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b3fddc40462126bbc119e373ed6a3f942a90a400f30c076c447c0625b841c4ef?d=identicon)[antonkomarev](/maintainers/antonkomarev)

---

Top Contributors

[![antonkomarev](https://avatars.githubusercontent.com/u/1849174?v=4)](https://github.com/antonkomarev "antonkomarev (37 commits)")

---

Tags

montoringobservabilityopen-tsdbopentsdbopentsdb-apiopentsdb-httpopentsdb-phpvictoriametricsphpmonitoringMetricscogobservabilitycybercogopentsdbvictoriametrics

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cybercog-opentsdb-client/health.svg)

```
[![Health](https://phpackages.com/badges/cybercog-opentsdb-client/health.svg)](https://phpackages.com/packages/cybercog-opentsdb-client)
```

###  Alternatives

[inspector-apm/inspector-php

Inspector monitoring for PHP applications.

342.4M15](/packages/inspector-apm-inspector-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
