Skip to main content

Murakami

Murakami is a tool for creating an automated internet measurement service, running in a Docker container. A Murakami measurement container can be configured to automatically run supported tests four times a day using a randomized schedule, and export each test result to a local storage device, to one or more remote servers via SCP, or to a Google Cloud Storage bucket. Results are saved as individual files in JSON new line format (.jsonl).

Supported Measurement Tests

Murakami Deployment Scenarios

Murakami supports three types of container deployment scenarios on supported systems:

Supported Operating Systems

Murakami supports Linux operating systems like Ubuntu, Debian, etc. Windows is not supported. Mac OS is supportable as a standalone device, but is not completely compatible with the Webthings interface. Balena cloud has not beed tested on Mac OS.

TO DO: test deployment on MacOS

Murakami Configurations and Customization

A Murkami container can be configured flexibly depending on the deployment scenario. If you simply run a Murakami container using M-Lab's pre-built images on Dockerhub, by default all tests are configured to run four times daily at randomized intervals, but no data exporters enabled. This section focuses on which options can be configured using the file murakami.toml OR using environment variables. Examples are provided in later sections of this document.

The Murakami container can be customized using:

  • environment variables on the command line when running docker (Standalone, Local Managed)
  • environment variables in a file, passed on the command line when running docker (Standalone, Local Managed)
  • customizing the murakami.toml configuration file (Standalone, Local Managed, Balena Cloud)
  • environment variables in your Balena Cloud project, or per device (Balena Cloud)

The table below summarizes the options you can configure in murakami.toml and how to format the options as command line variables at the command line.

murakami.toml corresponding environment variable options/examples function
[settings]
port = 80 MURAKAMI_SETTINGS_PORT 80, 8080 Sets the web port used by the Murakami WebThing code
loglevel = "DEBUG" MURAKAMI_SETTINGS_LOGLEVEL DEBUG, ?, ? Sets the log level for the Murakami service
immediate = 1 MURAKAMI_SETTINGS_IMMEDIATE 0, 1, true, false If set to 1 or true, instructs the container to run the first set of tests when it starts
location = "Baltimore" MURAKAMI_SETTINGS_LOCATION any string Optional - If set, value is used in exported test file names.
network_type = "home" MURAKAMI_SETTINGS_NETWORK_TYPE any string Optional - If set, value is used in exported test file names
connection_type = "wired" MURAKAMI_SETTINGS_CONNECTION_TYPE any string Optional - If set, value is used in exported test file names
[exporters] The 'exporters' configuration sections OR environment variables define where test data should be saved or exported. For each exporter all variables listed must be defined.
[exporters.local] The 'local' exporter defines where on the system's local disk to save test results.
type = "local" MURAKAMI_EXPORTERS_LOCAL_TYPE local
enabled = true MURAKAMI_EXPORTERS_LOCAL_ENABLED 0, 1, true, false
path = "/data/" MURAKAMI_EXPORTERS_LOCAL_PATH Any system path available to the Murakami container service may be used to save local data.
[exporters.scp] The 'scp' exporter defines a remote server where data should be copied. The server must be configured to allow secure copy via SSH using a private key file.
type = "scp" MURAKAMI_EXPORTERS_SCP_TYPE scp
enabled = true MURAKAMI_EXPORTERS_SCP_ENABLED 0, 1, true, false
target = "myserver.com:system/path/" MURAKAMI_EXPORTERS_SCP_TARGET hostname:path/ Defines the remote server and system path where the SCP exporter should save data. A server's IP address is also supported.
port = 22 MURAKAMI_EXPORTERS_SCP_PORT 22, alternate SCP port used by the remote server Defines the port used by the remote server for the server's SCP/SSH service.
username = "murakami" MURAKAMI_EXPORTERS_SCP_USERNAME remote server username Defines the username to be used by the SCP exporter.
private_key = "/murakami/keys/id_rsa_murakami" MURAKAMI_EXPORTERS_SCP_PRIVATE_KEY The system path within the Murakami container where the SCP user's private SSH key is located.
[exporters.gcs] The 'gcs' exporter defines a storage bucket in a Google Cloud Storage project where test data should be saved.
type = "gcs" MURAKAMI_EXPORTERS_GCS_TYPE gcs
enabled = true MURAKAMI_EXPORTERS_GCS_ENABLED 0, 1, true, false
target = "gs://murakami-gcs-test/" MURAKAMI_EXPORTERS_GCS_TARGET gs://bucketname Defines the GCS storage bucket name where data should be stored.
service_account = "murakami-test-gcs@mlab-sandbox.iam.gserviceaccount.com" MURAKAMI_EXPORTERS_GCS_SERVICE_ACCOUNT The name of the GCS service account which has access to write data to the GCS storage bucket.
key = "/murakami/keys/murakami-gcs-serviceaccount.json" MURAKAMI_EXPORTERS_GCS_KEY The system path within the Murakami container where the GCS service account's JSON keyfile is located.

Multiple exporters of any type are supported as well. For example if you wanted to define two different SCP servers or GCS storage buckets where data should be exported, the config file exporters section might look like this:

[exporters]

  [exporters.gcs1]
  type = "gcs"
  enabled = true
  target = "gs://murakami-storage-bucket-archive/"
  service_account = "murakami-test-gcs@mlab-sandbox.iam.gserviceaccount.com"
  key = "/murakami/keys/murakami-gcs-serviceaccount.json"

  [exporters.gcs2]
  type = "gcs"
  enabled = true
  target = "gs://murakami-storage-bucket-access/"
  service_account = "murakami-test-gcs@mlab-sandbox.iam.gserviceaccount.com"
  key = "/murakami/keys/murakami-gcs-serviceaccount.json"

OR as environment variables:

MURAKAMI_EXPORTERS_GCS1_TYPE = "gcs"
MURAKAMI_EXPORTERS_GCS1_ENABLED = "true"
MURAKAMI_EXPORTERS_GCS1_TARGET = "gs://murakami-storage-bucket-archive/"
MURAKAMI_EXPORTERS_GCS1_SERVICE_ACCOUNT = "murakami-test-gcs@mlab-sandbox.iam.gserviceaccount.com"
MURAKAMI_EXPORTERS_GCS1_KEY = "/murakami/keys/murakami-gcs-serviceaccount.json"

MURAKAMI_EXPORTERS_GCS2_TYPE = "gcs"
MURAKAMI_EXPORTERS_GCS2_ENABLED = "true"
MURAKAMI_EXPORTERS_GCS2_TARGET = "gs://murakami-storage-bucket-access/"
MURAKAMI_EXPORTERS_GCS2_SERVICE_ACCOUNT = "murakami-test-gcs@mlab-sandbox.iam.gserviceaccount.com"
MURAKAMI_EXPORTERS_GCS2_KEY = "/murakami/keys/murakami-gcs-serviceaccount.json"

M-Lab Supported Dockerhub Images and Tags

TO DO Describe how we structure tags for different system architectures here.

Metadata

Release files for murakami 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for murakami 0.1.0
File Size Uploaded Provenance Actions
murakami-0.1.0.tar.gz 19.0 kB Without provenance Details for murakami-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for murakami 0.1.0
File Interpreter ABI Platform Actions
murakami-0.1.0-py3-none-any.whl Python 3 none any Details for murakami-0.1.0-py3-none-any.whl

Total release size: 41.7 kB

Release files / murakami-0.1.0.tar.gz

Download URL murakami-0.1.0.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2cfc56629db67f88a28d88be70ecd509ca001cb7460da850d261b404cba1a030
BLAKE2b-256 checksum
How to use checksums
ad81fb662f150175105e22b9888d658f73760abbe14bf257341bc0f5fc48a773
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.17 CPython/3.7.4 Linux/5.3.7.a-1-hardened

Release files / murakami-0.1.0-py3-none-any.whl

Download URL murakami-0.1.0-py3-none-any.whl
Size 22.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2388f0c0c76134434b245bb92570c0cb5e674f920ce4b7f88a2a3a40433ee344
BLAKE2b-256 checksum
How to use checksums
fa54f1c4a8f981746059449d6f456fff28f92ee0d39a795b34a706013efafc77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.17 CPython/3.7.4 Linux/5.3.7.a-1-hardened

Security for murakami 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page