Simulation

Running the Simulator

Traceback (most recent call last):
  File "/home/docs/.pyenv/versions/3.7.9/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/docs/.pyenv/versions/3.7.9/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/docs/checkouts/readthedocs.org/user_builds/clusterman/checkouts/latest/clusterman/run.py", line 16, in <module>
    from clusterman.args import parse_args
  File "/home/docs/checkouts/readthedocs.org/user_builds/clusterman/checkouts/latest/clusterman/args.py", line 18, in <module>
    import colorlog
ModuleNotFoundError: No module named 'colorlog'

Experimental Input Data

The simulator can accept experimental input data for one or more metric timeseries using the --metrics-data-file argument to clusterman simulate. The simulator expects this file to be stored as a compressed (gzipped) JSON file; the JSON schema is as follows:

{
    'metric_name_1': [
        [<date-time-string>, value],
        [<date-time-string>, value],
        ...
    ],
    'metric_name_2': [
        [<date-time-string>, value],
        [<date-time-string>, value],
        ...
    },
    ...
}

Optional Multi-valued Timeseries Data

Some timeseries data needs to have multiple y-values per timestamp. The metrics data file can optionally accept timeseries in a dictionary with the dictionary keys corresponding to the names of the individual timeseries. For example:

{
    'metric_a': [
        [
            <date-time-string>,
            {
              'key1': value,
              'key2': value
            }
        ],
        [
            <date-time-string>,
            {
              'key3': value
            }
        ],
        [
            <date-time-string>,
            {
              'key1': value,
              'key2': value,
              'key3': value
            }
        ]
    ]
}