Connect your ZEIT Now Projects to LogDNA
• Our Vision • Key Features • How to Use • Dev Setup • Contact • LogDNA • ZEIT
LogDNA For All -
be smart
,take responsibility
.
We are making our best efforts to bring you the best logging integrations.
If you like our integration, you can help us by donate and become a backer.
🎆 Try it out! 🎆
Allow every developer to take responsibility over their creation by delivering the best integration
to connect their project for _logging:chart_with_upwards_trend: & monitoring:traffic_light: service.
- Integrate your ZEIT Now project with LogDNA 🔌
- Connect team projects 👪
- Connect user projects
- Consistently transfer all your logs to your LogDNA project
- Select one of the following:
- The fastest way 🚀 - Go here
Or
Go to Our integration page- Press
add
- Press
Or manually
✋ Go to the marketplace:- Go to
[logging category](https://zeit.co/integrations?category=logging)
- select our integration
LogDNA
- select our integration
- Go to
- Select which workspaces you want to connect to LogDNA -
User or teams
- Press
add
- For each project of your workspaces that you want to connect:
- Insert your LogDNA token 🔑 (get it via your project page on LogDNA
- Press
Connect
- Now you are ready to go by yourself. Enjoy! 🎉
We hope you have the great Logging & Monitoring Experience of your life! 🌈
In order to contribute you will need the following accounts 🔖:
# Clone this repository
$ git clone https://github.com/doron050/logdna-for-all.git
# Go into the repository
$ cd logdna-for-all
# Install dependencies
$ npm install
- Follow the instructions on the ZEIT Integrations documentation to setup your integration
- On your integration settings page:
- Leave the
redirect url
empty - Set the
ui-hook url
to: http://localhost:5005/ui-hooks
- Leave the
- Go to your integration page and add it to your user/team
- Add your logDNA token 🔑
- Register for MongoDB cloud
- Create your cluster and get the connection details 📑
- Make sure you set your
.env
file ✏️:
# DB
+ DB_USER_NAME=[your mongodb cloud user name]
+ DB_PASSWORD=[your mongodb cloud password]
+ DB_URL=[your mongodb url]
+ DB_SCHEME=[your mongodb scheme]
+ DB_NAME=[your mongodb db name]
+ DB_COLLECTION_NAME=[your mongodb collection name]
Specify what environment you are targeting:
# ENV
+ ENVIRONMENT=[production / development]
If you want to, you can control some of our intervals 🕐:
+ CONSUME_PROJECT_LOG_INTERVAL=[time between reading and sending logs - default is 3000]
+ SYNC_SUBSCRIBER_WITH_DB_INTERVAL=[time between sync with the metadata inside the db - default is 6000]
If you want your integration to send logs to LogzIO you need to configure this setting:
# LOGGER
+ LOGGER_TOKEN=[LogzIO token]
- Run your integration locally using
npm run zeit
- Use your browser and go to your integration configuration page 📜
- You should now see the integration configuration page (it is connected to your localhost)
If you want to debug and change the configuration UI you are good to go! Every configuration you create will be saved inside your database. You use this data in the following background node app.
Since we cannot use our localhost as the redirect endpoint for the oauth proccess
you will miss 2 critical fields on every database document (ZeitToken, teamId) 😓
In order to get over it 💪:
- Upload your app to ZEIT using the
now
command (thenow.json
file is provided for you) 📤 - Set your integrations
redirect url
to<zeit-host-name>/redirect
- Set the following
secret
s 🔐:
# Zeit
+ INTEGRATION_CLIENT_ID=[Your app auth client id]
+ INTEGRATION_CLIENT_SECRET=[Your app secret]
- Now you should follow the How to Use steps in order to use your integration 😅
Now you can run the background node!
- Use
npm start
in order to start the sync
Have fun. Keep Coding. 💻
LogDNA-For-All © 2019+, DE, MB, NM Released under the MIT License.
Authored and maintained by DE, MB, NM. with help from contributors.
GitHub @Niv
GitHub @Doron Eli
GitHub @Moshe Basher
Contact us via mail: logs_for_all@yahoo.com