Installing the ScaleOps Backend Plugin#
This guide will help you install and set up the ScaleOps backend plugin in your Backstage instance.
Prerequisites#
Before installing the backend plugin, ensure you have:
- A working Backstage instance (version 1.47.1 or later)
- Node.js 18+ and Yarn installed
- Access to a ScaleOps instance
- ScaleOps credentials (username and password)
Installation Steps#
1. Add Required Package#
Install the package using your package manager:
2. Add to Backend#
Modify your backend entry point (typically packages/backend/src/index.ts):
// In your backend initialization
backend.add(import('@terasky/backstage-plugin-scaleops-backend'));
Example:
import { createBackend } from '@backstage/backend-defaults';
const backend = createBackend();
// ... other plugins
backend.add(import('@backstage/plugin-catalog-backend'));
backend.add(import('@backstage/plugin-scaffolder-backend'));
// Add ScaleOps backend plugin
backend.add(import('@terasky/backstage-plugin-scaleops-backend'));
backend.start();
3. Configure the Plugin#
Add the following to your app-config.yaml:
scaleops:
baseUrl: https://your-scaleops-instance.com
authentication:
enabled: true
type: internal # or 'ldap'
user: ${SCALEOPS_USER}
password: ${SCALEOPS_PASSWORD}
Verification#
After installation, verify that:
- The plugin appears in your package.json dependencies
- The backend starts without errors
- The API endpoints are accessible at
/api/scaleops/api/* - MCP actions are registered (if using AI agents)
Testing the Installation#
Check API Health:
curl http://localhost:7007/api/scaleops/api/v1/dashboard/byNamespace \
-H "Authorization: Bearer YOUR_BACKSTAGE_TOKEN"
This should return a ScaleOps authentication error if not yet configured, or data if configured correctly.
Next Steps#
After successful installation:
- Configure authentication credentials
- Install the frontend plugin (optional)
- Configure entity annotations
- Start using MCP actions with AI agents
Proceed to the Configuration Guide for detailed setup instructions.