> For the complete documentation index, see [llms.txt](https://hulining.gitbook.io/prometheus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hulining.gitbook.io/prometheus/instrumenting/pushing.md).

# 推送数据指标

有时，您需要监控无法采集数据组件。[ Prometheus Pushgateway](https://github.com/prometheus/pushgateway) 允许您将时间序列从[短暂的服务级别批处理作业](/prometheus/practices/pushing.md)推送到 Prometheus 可以采集的中间作业。结合 Prometheus 的基于文本的简单展示格式，即使没有客户端库，也可以轻松集成，甚至编写 shell 脚本。

* 有关使用 Pushgateway 及在 Unix Shell 中使用的更多信息，请参见该项目的 [README.md](https://github.com/prometheus/pushgateway/blob/master/README.md)。
* 要在 Java 中使用，请参见 [PushGateway](https://prometheus.github.io/client_java/io/prometheus/client/exporter/PushGateway.html)类。
* 要在 Go 中使用，请参见 [Push](https://godoc.org/github.com/prometheus/client_golang/prometheus/push#Pusher.Push) 和 [Add](https://godoc.org/github.com/prometheus/client_golang/prometheus/push#Pusher.Add) 方法。
* 要在 Python 使用，请参阅[导出到 Pushgateway](https://github.com/prometheus/client_python#exporting-to-a-pushgateway)。
* 要在 Ruby 中使用，请参见 [Pushgateway 文档](https://github.com/prometheus/client_ruby#pushgateway)
  * 要了解[在 Prometheus 项目之外维护的客户端库](/prometheus/instrumenting/clientlibs.md)的 Pushgateway 支持，请参阅其各自的文档。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hulining.gitbook.io/prometheus/instrumenting/pushing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
