## 工具
---
### 客戶端庫
在你能夠監控你的服務器之前,你需要通過Prometheus客戶端庫把監控的代碼放在被監控的服務代碼中。下面實現了Prometheus的度量指標類型metric types。
選擇你需要的客戶端語言,在你的服務實例上通過HTTP端口提供內部度量指標。
- [Go](https://github.com/prometheus/client_golang)
- [Java or Scala](https://github.com/prometheus/client_java)
- [Python](https://github.com/prometheus/client_python)
- [Ruby](https://github.com/prometheus/client_ruby)
非正式的第三方客戶端庫
- [Bash](https://github.com/aecolley/client_bash)
- [C++](https://github.com/jupp0r/prometheus-cpp)
- [Common Lisp](https://github.com/deadtrickster/prometheus.cl)
- [Elixir](https://github.com/deadtrickster/prometheus.ex)
- [Erlang](https://github.com/deadtrickster/prometheus.erl)
- [Haskell](https://github.com/fimad/prometheus-haskell)
- [Lua for Nginx](https://github.com/knyar/nginx-lua-prometheus)
- [Lua for Tarantool](https://github.com/tarantool/prometheus)
- [.Net/C#](https://github.com/andrasm/prometheus-net)
- [Node.js](https://github.com/siimon/prom-client)
- [PHP](https://github.com/Jimdo/prometheus_client_php)
- [Rust](https://github.com/pingcap/rust-prometheus)
當Prometheus獲取實例的HTTP端點時,客戶庫發送所有跟蹤的度量指標數據到服務器上。
如果沒有可用的客戶端語言版本,或者你想要避免依賴,你也可以實現一個支持的導入格式到度量指標數據中。
在實現一個新的Prometheus客戶端庫時,請遵循[客戶端指南](https://prometheus.io/docs/instrumenting/writing_clientlibs)。注意,這個文檔在仍然在更新中。同時也請關注[開發郵件列表](https://groups.google.com/forum/#!forum/prometheus-developers)。我們非常樂意地給出合適的意見或者建議。