Skip to content

HTTP REST Api endpoint initiate metadata update

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

    • Supported for both: OpenTSDB API and Prometheus API
    • Initiates a metadata cache update.
    • Once a connection to the PM collector has been successfully established at startup of Grafana Bridge, 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 automatically sends a request for the latest metadata. To avoid overloading the system, the automatic metadata update frequency is set to no more than every 5 minutes. This endpoint allows you to initiate the metadata update immediately.

OpenTSDB API

Example output:
```console
# curl http://10.88.3.50:4242/metadata/update -u scale_admin:TXlWZXJ5U3Ryb25nUGFzc3cwcmQhCg==
 {"msg": "Successfully retrieved MetaData"}

```

Prometheus API

Example output:
```console
# curl http://10.88.3.50:9250/metadata/update -u scale_admin:TXlWZXJ5U3Ryb25nUGFzc3cwcmQhCg==
 {"msg": "Successfully retrieved MetaData"}

```

User Guide

Installation

Configuration

Maintenance

Troubleshooting

Use cases

Designing dashboards

Developer Guide

Clone this wiki locally