Skip to content

HTTP REST Api endpoint metadata last update time

hwassman edited this page Feb 21, 2025 · 1 revision
  • /metadata/time

    • Supported for both: OpenTSDB API and Prometheus API
    • Returns the timestamp of the last update of the metadata cache.
    • Once a connection to the PM collector has been successfully established at the Grafana Bridge start time, the API begins to retrieve information about how sensors are set up, time series tag keys, and values. This information is called "topology data" or "metadata". Typically, the structure of a system changes during operation, for example, when a new set of files is created or deleted. Grafana-Bridge has a worker thread that detects these changes and starts the update, you can use the above endpoint to find out when the metadata was last updated.

OpenTSDB API

Example output:
```console
# curl http://10.88.3.50:4242/metadata/time -u scale_admin:TXlWZXJ5U3Ryb25nUGFzc3cwcmQhCg==
["2025-02-21 14:46:28"]

```

Prometheus API

Example output:
```console
# curl http://10.88.3.50:9250/metadata/time -u scale_admin:TXlWZXJ5U3Ryb25nUGFzc3cwcmQhCg==
 ["2025-02-21 14:46:28"]

```

User Guide

Installation

Configuration

Maintenance

Troubleshooting

Use cases

Designing dashboards

Developer Guide

Clone this wiki locally