mirror of
https://github.com/jomjol/AI-on-the-edge-device-docs.git
synced 2025-12-06 19:46:56 +03:00
update prometheus doc
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
# Prometheus/OpenMetrics
|
# Prometheus/OpenMetrics
|
||||||
|
|
||||||
A set of metrics is exported via the `/metrics` path on the device. Besides the current value, a set of device properties are exported. Multiple sequences (aka *numbers*) are supported via a label. The metrics are provided in text wire format.
|
A set of metrics is exported via the `/metrics` REST API path on the device. Besides the current value, a set of device properties are exported. Multiple sequences (aka *numbers*) are supported via a label. The metrics are provided in text wire format.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ curl http://192.168.178.23/metrics
|
$ curl http://<IP>/metrics
|
||||||
# HELP ai_on_the_edge_device_flow_value current value of meter readout
|
# HELP ai_on_the_edge_device_flow_value current value of meter readout
|
||||||
# TYPE ai_on_the_edge_device_flow_value gauge
|
# TYPE ai_on_the_edge_device_flow_value gauge
|
||||||
ai_on_the_edge_device_flow_value{sequence="main"} 240.7064
|
ai_on_the_edge_device_flow_value{sequence="main"} 240.7064
|
||||||
@@ -36,7 +36,7 @@ scrape_configs:
|
|||||||
scrape_interval: 300s
|
scrape_interval: 300s
|
||||||
metrics_path: /metrics
|
metrics_path: /metrics
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['192.168.178.23']
|
- targets: ['<IP>']
|
||||||
```
|
```
|
||||||
|
|
||||||
## References
|
## References
|
||||||
|
|||||||
Reference in New Issue
Block a user