lmachens / meteor-apm-server Goto Github PK
View Code? Open in Web Editor NEWSource code to Meteor APM
License: MIT License
Source code to Meteor APM
License: MIT License
I was taking a look at this over the weekend, I thought I should open up an issue and ask for opinions before diving too far into a solution...
Right now:
I propose:
Thoughts? I've started tinkering and it won't take much to implement, I could probably get a PR up pretty shortly...
I don't get any data on apm server after connecting my application to the server.
The apm application page still display settings instructions even after I get the message "Kadira: Successfully connected" and "Kadira: completed instrumenting the app" with the keyid and keysecret.
I don't have a firewall blocking connection.
Just deployed this to production for the first time and I'm seeing this error come up in the Kadira logs:
message: Method '__dynamicImport' not found [404]
stack:
Error: Method '__dynamicImport' not found [404]
at Session.method (packages/ddp-server/livedata_server.js:671:18)
at packages/lmachens_kadira.js:2617:38
at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1186:15)
at Session.sessionProto.protocol_handlers.method (packages/lmachens_kadira.js:2616:44)
at packages/ddp-server/livedata_server.js:559:43
I'm running Meteor 1.6.1 -- not sure if that has something to do with it?
@lmachens Could you please update docker image to 1.3.0?
And README contains 1.1.0, but last version is 1.2.0 in docker hub.
Thanks so much for this great effort! We deployed and it's working great.
We want to contribute to improving the APM. So I just listing the issues we faced so that we can start a conversation on what can be done, and what we can do to help
And .. we should market it on the Meteor forums as working out of the box. I can add a post there so people know it's available and how it helped us
(more to come)
Hi,
I setup mongoDB in my system manually and I use this Docker command:
sudo docker run -d --name meteor-apm-server --net="host" \
-p 4000:80 \
-p 7007:7007 \
-p 11011:11011 \
-e PORT=80 \
-e MONGO_URL=mongodb://localhost:27017/meteor \
-e MONGO_OPLOG_URL=mongodb://localhost:27017/local \
-e ROOT_URL=http://url.domain.com \
strictlyskyler/meteor-apm-server:1.1.0
Kadira-UI run and I changed my password. On my Meteor application I have I20180612-20:23:50.341(2)? Kadira: completed instrumenting the app
and I20180612-20:23:50.362(2)? Kadira: Successfully connected
. But, the dashboard is always at the Configure Your App page.
And with a Docker logs I have this message:
in the root directory of your application.
Kadira Alertsman started
Fetchman started on port: 7007
starting apm-engine on port 11011
very strange! - no entries found
very strange! - no entries found
very strange! - no entries found
very strange! - no entries found
very strange! - no entries found
very strange! - no entries found
very strange! - no entries found
very strange! - no entries found
very strange! - no entries found
very strange! - no entries found
very strange! - no entries found
very strange! - no entries found
cleaned up 0 in 7 ms
Any ideas ? Thanks.
After setting up the MAIL_URL and trying to setup an alert I kept getting the same alert multiple times (60+ emails), even when setting it to be sent once.
I deployed the APM on a fresh EC2 instance and everything went through without any issues.
I can access the UI and log in, but after I re-deployed my app with the credentials from the UI, I get
"Kadira: Successfully connected" but nothing else.
The UI is still displaying the credentials and not loading the data from the app.
Any idea?
I've got a 2-core system running on Digital Ocean, and after ~3 days of tracking data, everything totally freezes up with Mongodb stuck at 100% on both cores. I'm using redis-oplog for oplog tailing, but that doesn't seem to help :(
Anyone else experiencing similar?
After sometime of meteor-apm-server
deployment, the UI crashes with 401 error in frontend while engine keeps on collecting the data.
Logs shows something like below:
blocked due missing appId: /
blocked due missing appId: /
blocked due missing appId: /
blocked due missing appId: /
blocked due missing appId: /
blocked due missing appId: /
blocked due missing appId: /
blocked due missing appId: /kadira-logo-light.png
blocked due missing appId: /kadira-logo-light.png
blocked due missing appId: /kadira-logo-light.png
blocked due missing appId: /
blocked due missing appId: /
I tried accessing static resource as well, but same issue even those could not be loaded.
If anybody here, have insight into this, please help.
Overall everything is running smoothly now, but the last issue I'm seeing is a constant disk space usage that I can't explain yet.
The cleanup.js
seems to be removing old data, based on looking at the site, but actual disk space usage continuously rises at something like 500MB per day.
I did a little digging and I was able to find a few things but nothing yet which confirms why:
docker ps -s
are all reasonable, under 700 MB./var/lib/docker/
at 3.7GB and /var/lib/mongodb/
at 1.1 GB.I think the size of mongodb is expected, but the docker folder seems to be the one that is growing.
I've already removed the console.log
commands, and I've verified using mup logs
that there isn't excessive logging going on, so I'm not sure what is eating up all the disk space here. I'll follow up if I figure out what's going on.
Although I'm sure scaling will depend on usage, it'd be great to have some kind of minimum requirements specified in the Readme for deploying this.
I'm planning on deploying this myself soon and may have some feedback on this but would like to get the conversation started and see if anyone else has experience running a minimal deploy.
I have setup server via docker image
I tried connecting my app after running meteor add meteorhacks:kadira
it added two packages to my project
meteorhacks:kadira added, version 2.30.4
meteorhacks:meteorx added, version 1.4.1
Then my application doesn't want to start, is there is a specific meteor-apm-server agent I could use instead?
=> Started proxy.
W20200428-12:32:07.569(-4)? (STDERR) /Users/dean/.meteor/packages/meteor-tool/.1.10.2.szrfc1.fymg++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:280
W20200428-12:32:07.605(-4)? (STDERR) throw(ex);
W20200428-12:32:07.605(-4)? (STDERR) ^
W20200428-12:32:07.606(-4)? (STDERR)
W20200428-12:32:07.606(-4)? (STDERR) TypeError: Cannot read property 'constructor' of undefined
W20200428-12:32:07.606(-4)? (STDERR) at exposeSubscription (packages/meteorhacks_meteorx.js:61:41)
W20200428-12:32:07.606(-4)? (STDERR) at exposeLivedata (packages/meteorhacks_meteorx.js:31:5)
W20200428-12:32:07.606(-4)? (STDERR) at packages/meteorhacks_meteorx.js:175:1
W20200428-12:32:07.606(-4)? (STDERR) at packages/meteorhacks_meteorx.js:200:4
W20200428-12:32:07.607(-4)? (STDERR) at packages/meteorhacks_meteorx.js:208:3
W20200428-12:32:07.607(-4)? (STDERR) at /Users/dean/Projects/swiftdental/.meteor/local/build/programs/server/boot.js:401:38
W20200428-12:32:07.607(-4)? (STDERR) at Array.forEach (<anonymous>)
W20200428-12:32:07.608(-4)? (STDERR) at /Users/dean/Projects/swiftdental/.meteor/local/build/programs/server/boot.js:226:21
W20200428-12:32:07.608(-4)? (STDERR) at /Users/dean/Projects/swiftdental/.meteor/local/build/programs/server/boot.js:464:7
W20200428-12:32:07.608(-4)? (STDERR) at Function.run (/Users/dean/Projects/swiftdental/.meteor/local/build/programs/server/profile.js:280:14)
W20200428-12:32:07.608(-4)? (STDERR) at /Users/dean/Projects/swiftdental/.meteor/local/build/programs/server/boot.js:463:13
Thanks
Hello @lmachens
Long time!
Sorry for silence, got distracted with work and life.
What is the status of this amazing project? I recall having challenges editing the code, Kadira's code tends to be high on the spaghetti scale ;)
Let me know what else needs to be done? Are there any other community developments you are aware of we can use as inspiration?
Thanks
Thanks for creating this!
I'm using mup to deploy this to a Digital Ocean droplet. My setup is as follows:
I keep encountering this issue: "Failed to load https://kadira.domain.com/simplentp/sync: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://www.domain.com' is therefore not allowed access."
I've tried jiggling with the settings in server/config/security.js
-- am I on the right path?
Firstly, thanks very much for your work on this project!
When running ‘npm run mup-deploy’ the following error was appearing during the app build/bundling part of the process:
Building App Bundle Locally
local:jobs: updating npm dependencies -- aws-sdk...
local:kadira-data: updating npm dependencies -- lru-cache...
Errors prevented bundling:
While processing files with less (for target web.browser):
client/0config/bootstrap/custom.bootstrap.import.less:6: Unknown import:
custom.bootstrap.mixins.import.less
I managed to fix the problem by editing the "/client/0config/bootstrap/custom.bootstrap.import.less" file and change this line:
@import "custom.bootstrap.mixins.import.less";
to
@import "{}/client/0config/bootstrap/custom.bootstrap.mixins.import.less";
Nemo64/meteor-bootstrap#64 pointed me in the right direction for the fix.
Is there a way to collect more traces? What is the rule and can we customize it? Thank you!
How amazingly awesome this is. Thank you so much for doing this!
Roughly 9 days ago the MDG rolled out some updates to meteorhacks:kadira. I'm wondering if these changes need to be integrated?
Hi, I am looking for maintainers for this project, because I don't use Meteor in my projects anymore.
If you want to become a maintainer, please answer to this thread.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.