maxfrerichs/t3-prometheus-client 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

maxfrerichs/t3-prometheus-client

最新稳定版本:0.10.2

Composer 安装命令:

composer require maxfrerichs/t3-prometheus-client

包简介

TYPO3 client for Prometheus

README 文档

README

About this extension:

This extension provides a client for Prometheus to access and process timeseries data from system status informations (more info on "How it works"). Both scraping and pushing to a gateway are supported.

Requirements

  • TYPO3 12.4 or higher
  • PHP 8.2 or higher
  • Prometheus

How to use:

  • Install extension with composer req maxfrerichs/t3-prometheus-client in your TYPO3 distribution
  • Install and configure prometheus. Please refer to the Prometheus documentation for more information regarding this topic.
  • Configure the extension. The "DevOps' way to use Prometheus is to expose the app on a separate, non-public port and deploy Prometheus on the same webserver. Exposing the TYPO3 instance on a separate port can be achieved with a VirtualHost config (if you're using apache2). However, you can also configure this extension to provide Basic authentication or Token-based authentication, so you can expose the /metrics endpoint securely to the public, if needed.
  • Configure your host. If you want to run Prometheus on the same server, you need to create a VirtualHost config for the non-public port. An example for this config can be found in Examples/config/other-vhosts.example.config Make sure to set a Host header, otherwise TYPO3 will throw an Exception.
  • Make sure that the Prometheus config and the extension config match.

Known issues

(Your issue?)

API

Registration of custom metrics is possible by creating a class that implements MFR\T3PromClient\Metrics\MetricInterface or by registering the service with the prometheus.metric tag in Configuration/Services.yaml

TODO:

  • Add support for other metric types [WIP].
  • Add more default metrics [WIP]
  • Write more documentation [WIP]

Contribution:

Every contribution is appreciated. Open an issue, tell me your ideas, request a specific feature, report bugs and so on. You can also write an e-mail to "maxfrerichs@gmx.de" or "max.frerichs@lfda.de" :-)

统计信息

  • 总下载量: 136
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2025-01-21