Deployment Integrations
On-premise Integrations
Platform Integrations

Integration Options for Containers and VMs

Step 1: Install the @thundra/core package

npm install @thundra/core --save

Step 2: Add Thundra Express middleware

After installing the @thundra/core module, you will need to add Thundra Express middleware to your application. Thundra will monitor your application automatically.

app.js
const thundra = require("@thundra/core");
const express = require('express');
const app = express()
app.use(thundra.expressMW());
app.get('/', function (req,res) {
res.send("Response")
});
app.listen(3000)

Step 3: Add Thundra apikey

Set the thundra_apiKey environment variable to the API key value you got from the Thundra console.

app.js
const thundra = require("@thundra/core");
// adding apiKey programmatically
thundra.init({
apiKey:<Thundra-ApiKey>
})
Shell
export thundra_apiKey=<Thundra-ApiKey>
Dockerfile
ENV thundra_apiKey=<Thundra-ApiKey>