.agents/skills/project-prometheus-profiles/sqlite-metadata-reset.md
Do not reset Netdata SQLite metadata as a routine profile-authoring step. Profile correctness is proved by the collector/chartengine validation path and live advancing charts, not by deleting historical metadata until the dashboard looks clean.
Contexts, chart IDs, dimensions, and labels are durable identity surfaces. A profile edit can create a new identity while the previous chart metadata and stored history remain available until normal lifecycle/retention removes or ages them. A restart does not imply that all historical identities disappear.
This is normally desirable:
First distinguish three cases:
Netdata metadata spans more than one obvious context row. Correct handling can depend on:
Deleting rows by a context-like pattern while Netdata is running can leave the on-disk database, WAL, and in-memory state disagreeing. Moving or deleting a single database file can also affect unrelated applications and historical data. Therefore this skill intentionally provides no copy-paste SQL reset.
Treat a reset as a destructive production/database change. Before proposing one:
If any assumption changes during execution, stop. Do not improvise a broader query, remove another database file, or continue after a partial result.
During normal profile work:
This preserves history while proving that future collection follows the new design.