TomG
TomG

Reputation: 1751

Can Graphite (whisper) metrics be renamed?

I'm preparing to refactor some Graphite metric names, and would like to be able to preserve the historical data. Can the .wsp files be renamed (and possibly moved to new directories if the higher level components change)?

Example: group.subgroup1.metric is stored as:

/opt/graphite/storage/whisper/group/subgroup1/metric.wsp

Can I simply stop loading data and move metric.wsp to metricnew.wsp?

Can I move metric.wsp to whisper/group/subgroup2/metric.asp?

Upvotes: 9

Views: 3582

Answers (1)

Matt Self
Matt Self

Reputation: 20105

Yes.

The storage architecture is pretty flexible. Rename/move/delete away, just make sure update your storage-schema and aggregation settings for the new location/pattern.

More advanced use cases, like merging into existing whisper files, can get tricky but also can be done with the help of the included scripts. This contains an overview of the Whisper Scripts included. Check it out: https://github.com/graphite-project/whisper

That said, it sounds like you don't already have existing data in the new target location so you can just move them.

Upvotes: 8

Related Questions