Skip to content

Commit c8482a2

Browse files
Update content/nim/system-configuration/configure-clickhouse.md
Co-authored-by: Travis Martin <[email protected]>
1 parent 6f7e124 commit c8482a2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

content/nim/system-configuration/configure-clickhouse.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,10 @@ Set TTL:
154154
ALTER TABLE system.metric_log
155155
MODIFY TTL event_time + INTERVAL 7 DAY;
156156

157-
You can also relieve the memory immediately if its running very low using the below command. Change the interval in the command to how many days of records you want to retain and delete the remaining records.
158-
```shell
157+
Free memory immediately:
158+
159+
```sql
159160
ALTER TABLE system.metric_log DELETE WHERE event_time < now() - INTERVAL 30 DAY;
160-
```
161-
Note: We also have a table called nms.metrics table which stores the metrics collected from the data plane in NIM. Make sure you don't delete the records accidentally from nms.metrics table as deleting from nms.metrics will loose the metrics from the data planes.
162161
163162
- **text_log**: The text_log table contains general logging information, including warnings, errors, system messages, and query-processed events. It is a human-readable diagnostic log for operational debugging. The logging level which goes to this table can be limited to the text_log.level server setting as shown in the below xml snippet.
164163
```shell

0 commit comments

Comments
 (0)