Running a own Kadira instance Update: now with a guide!

are you able to run the CPU profiler for your kadira setup ?

I did. The problem is the that the CPU profiler configurations are hardcoded. You can find them in file:

./kadira-ui/packages/jobs/lib/server/methods.js approx on line 7:

 AWS.config.region = 'us-east-1';
 var params = {
    Bucket: 'profdata.kadira.io',
    ContentType: 'application/json',
    ACL: 'public-read'
 };

Iā€™ve changed that to be meteor settings:

  AWS.config.region = Meteor.settings.s3.region;
  
  // Below is similar to lodash _.pick to pick a subset of the object's property
  var params = (({ Bucket, ContentType, ACL }) => ({ Bucket, ContentType, ACL }))(Meteor.settings.s3);

Thanks for putting this up.
And also thanks to the contributors: lampe, vladgolubev, dkoo761

Using this forum guide, Iā€™ve managed to get my own kadira ui, engine and rma up and running nicely!

1 Like

What is the correct value for the bucket ? What should be passed instead of ā€˜profdata.kadira.ioā€™ ?

How do you trim the Kadira db, eā€¦g delete all data before 1 week? Do we have to do this manually using mongo commands on each collection?

You need an aws s3 account for this and create a bucket. The name of that bucket would be the value. The important thing is that this file and method are responsible for signing an url to allow your application to push the file to s3. You can change it into whatever you want.

@lampe Thanks a ton for the tutorials! Sadly, I canā€™t get past the Nginx step. Running into all sorts of issues when trying to adjust the config files. Since Iā€™ve never had to do these kind of things, I donā€™t understand what lines should be edited, what is correct, and how to properly modify said lines. Which then lead me to an array of SSL issues, as letā€™s encrypt clashes with the config files (and I donā€™t know whether these are letā€™s encrypt or nginx-config related).

For future reference, maybe you could add a couple lines on how you set that up?

EDIT: Wasnā€™t able to fix it, so I put kadira on a subdomain and used my main domainā€™s wildcard certificate instead.

Kadira on Digital Ocean w/ Compose and Cloudflare:

1 Like

I notice a lot of people here are familar with Kadira internals. Maybe this could be a fun project.

Thanks a lot to @vyvegard. Iā€™ve updated his instructions slightly, and included SSL by lets encrypt. Very easy setup with Docker:

1 Like

Works perfectly. Thanks to everyone

I used this guide (https://sergiotapia.me/how-to-setup-your-own-kadira-instance-on-a-vps-like-digitalocean-75ef1458adbd) to set up a Kadira instance, but after 3 days of running, it just stops reporting any metrics.

Earlier collected metrics still show up. I did the setup from scratch on AWS once and DO once, and the exact same thing happened both times. I made sure I have enough RAM, disk space, CPU, etc available. Rebooting the instance didnā€™t help either. Anyone have any ideas what could cause this? It seems extremely bizarre to me.

1 Like

Starting to pinpoint this a little more. If I delete my old app and create a new one, the new one starts collecting data again. It doesnā€™t collect data if I just connect to a new app while having the old one hanging around, I have to delete the old one to get it to work. Weird. Any ideas?

We have been running kadira on digital ocean with local instance of mongodb. It was running fine, but as we connected our production environment, we started to see mongodb running hot and also the kadira UI rendering has also become slow.

Did any one see similar issue ? not sure if all the necessary indexes were setup on the collection while setting up the kadira databases. If any one saw similar issue and handled it, please let me know.

Also interested in this. Iā€™ve been running Kadira on EC2 instance and every few days itā€™ll become unresponsive/crash. Any insight from anyone?

1 Like

@sashko Maybe you can chip in here? Kadira is a very important tool for the community, and Iā€™m sad to see that thereā€™s this feeling of almost complete abandonment associated with it now.

NodeChef provides hosted Meteor APM based on open source Kadira which anyone can use to analyze the performance of their apps.

3 Likes

What is the cost for this service? There doesnā€™t seem to be any pricing
for accessing the Meteor APM.

wow thanks, there should be an announcement for this!

Pricing can be found on this blog post and also when you log into the add-on section of the dashboard.

1 Like