No project description provided
Project description
a simple tool to help you migrate your graphite metrics
What is metrics-migration ?
metrics-migration a Python3 tool (async io), designed to help graphite users to migrate metrics in several ways.
Migrate whole storage directory.
Migrate specific whisper file (with new metric name).
Allow schema change during Migration (Provide schema rule).
Examples
Let’s get started with several examples.
Example 1.
from migration.migration import Migration
import asyncio
loop = asyncio.get_event_loop()
host = "127.0.0.1"
port = 2003
directory = '/Users/yunx/Documents/PROJECTS/metrics-migration/examples'
async def go():
migration_worker = Migration(directory, host, port, loop=loop)
await migration_worker.connect_to_graphite()
await migration_worker.run()
await migration_worker.close_conn_to_graphite()
def main():
loop.run_until_complete(go())
loop.close()
if __name__ == '__main__':
main()
Development
Dev mode. Need more unit tests.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for metrics_migration-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 546a0664404fe925caf600697adb9e697a5e8977c2797415ee4072ae11658e8f |
|
MD5 | bf62fdbe1f70576eeea5842c562f21c4 |
|
BLAKE2b-256 | 79d0d8a2b9f4f351564a4ef95a8e68d3b3752640ac26d5975b8db382319eb5f2 |