I've been wanting to do some work for a while on the UI for our performance monitoring system. But the way the performance monitoring system works, it's difficult to create fake data for development.

The solution? Jump into a Rails console on our staging server and dump a few choice records to YAML files. It's an easy trick:

item = MyItem.find(...)
File.open("sample_item.yml", "w"){ |o| o.write(item.to_yaml)  }

Now you can transfer the file to your computer and load the yaml into a model like so:

item = YAML.load_file("path/to/sample_item.yml")

Get the Honeybadger newsletter

Each month we share news, best practices, and stories from the DevOps & monitoring community—exclusively for developers like you.
    author photo
    Starr Horne

    Starr Horne is a Rubyist and Chief JavaScripter at Honeybadger.io. When she's not neck-deep in other people's bugs, she enjoys making furniture with traditional hand-tools, reading history and brewing beer in her garage in Seattle.

    More articles by Starr Horne
    An advertisement for Honeybadger that reads 'Turn your logs into events.'

    "Splunk-like querying without having to sell my kidneys? nice"

    That’s a direct quote from someone who just saw Honeybadger Insights. It’s a bit like Papertrail or DataDog—but with just the good parts and a reasonable price tag.

    Best of all, Insights logging is available on our free tier as part of a comprehensive monitoring suite including error tracking, uptime monitoring, status pages, and more.

    Start logging for FREE
    Simple 5-minute setup — No credit card required