Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1122 from grafana/doc-cache-delete
Browse files Browse the repository at this point in the history
document cache delete
  • Loading branch information
Dieterbe authored Oct 29, 2018
2 parents 3ff92ed + 60b0f1f commit 1d8722f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/http-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,25 @@ curl -s http://localhost:6060/priority | jsonpp
}
}
]

## Cache delete

```
GET /ccache/delete
POST /ccache/delete
```
* `X-Org-Id`: required
* patterns: one or more query (glob) patterns. Use `**` to mean "all data" (full reset)
* expr: tag expressions
* propagate: whether to propagate to other cluster nodes. true/false
Remove chunks from the cache for matching series, or wipe the entire cache
#### Example
```bash
curl -v -X POST -d '{"propagate": true, "orgId": 1, "patterns": ["**"]}' -H 'Content-Type: application/json' http://localhost:6060/ccache/delete
```

## Misc
Expand Down

0 comments on commit 1d8722f

Please sign in to comment.