meklis / prom-client

Prometheus客户端

0.2.2 2022-04-26 14:25 UTC

This package is auto-updated.

Last update: 2024-09-26 19:52:33 UTC


README

由doc实现 - https://prometheus.ac.cn/docs/prometheus/latest/querying/api/

使用示例

<?php
require  __DIR__ . '/vendor/autoload.php';


$client = new \Meklis\PromClient\Client('http://10.0.30.2:9090');

// Return results of queries
$client->queriesRange(
    ['optical_temperature{iface_name="pon0/0/2:14", ip="10.15.1.2"}'],
);