Skip to content

dropcaches

LUYONGQIANG edited this page Nov 29, 2019 · 6 revisions

This endpoint purges the in-memory data cached in OpenTSDB. This includes all UID to name and name to UID maps for metrics, tag names and tag values. http://opentsdb.net/docs/build/html/api_http/dropcaches.html

C# Code

    ApiUrlConfig.ChangeBaseUrl("http://192.168.1.22:4242/");
    OpenTsdbClient apiClient = new OpenTsdbClient();
    var result = await apiClient.GetAsync<dynamic>("api/dropcaches");
    Console.WriteLine(result);

Result

{
 "message": "Caches dropped",
  "status": "200"
} 

Clone this wiki locally