Installing the ScaleOps Frontend Plugin#
This guide will help you install and set up the ScaleOps frontend plugin in your Backstage instance.
Prerequisites#
Before installing the plugin, ensure you have:
- A working Backstage instance
- Access to a ScaleOps instance
- Authentication credentials (if required)
- Proper proxy configuration
Installation Steps#
1. Add the Package#
Install the plugin package using yarn:
2. Add to Entity Page#
Modify your entity page configuration in packages/app/src/components/catalog/EntityPage.tsx
:
import { ScaleOpsDashboard, isScaleopsAvailable } from '@terasky/backstage-plugin-scaleops-frontend';
const serviceEntityPage = (
<EntityLayout>
<EntityLayout.Route
path="/scaleops"
if={isScaleopsAvailable}
title="ScaleOps"
>
<ScaleOpsDashboard />
</EntityLayout.Route>
</EntityLayout>
);
3. Configure Authentication#
Add authentication configuration to your app-config.yaml
:
With Internal Authentication#
scaleops:
baseUrl: 'https://your-scaleops-instance.com'
linkToDashboard: true
authentication:
enabled: true
user: 'YOUR_USERNAME'
password: 'YOUR_PASSWORD'
proxy:
endpoints:
'/scaleops':
target: 'https://your-scaleops-instance.com'
changeOrigin: true
Without Authentication#
scaleops:
baseUrl: 'https://your-scaleops-instance.com'
linkToDashboard: true
authentication:
enabled: false
proxy:
endpoints:
'/scaleops':
target: 'https://your-scaleops-instance.com'
changeOrigin: true
4. Configure Environment Variables#
Set up any required environment variables:
New Frontend System Support (Alpha)#
The plugin now supports the new frontend system available in the /alpha
export. To use this:
import { createApp } from '@backstage/frontend-defaults';
import { scaleopsPlugin } from '@terasky/backstage-plugin-scaleops-frontend/alpha';
export default createApp({
features: [
...
scaleopsPlugin,
...
],
});
This replaces the need for manual route configuration in EntityPage.tsx
and other files. The plugin will be automatically integrated into the appropriate entity pages.
Verification#
After installation, verify that:
- The plugin appears in your package.json dependencies
- The ScaleOps dashboard is accessible
- Cost data is being displayed
- Authentication is working
- Links to ScaleOps are functioning
Troubleshooting#
Common issues and solutions:
-
Dashboard Not Loading
- Check proxy configuration
- Verify authentication settings
- Check ScaleOps instance URL
- Review browser console
-
Authentication Issues
- Verify credentials
- Check environment variables
- Review proxy headers
- Test ScaleOps access
-
Data Not Displaying
- Check API connectivity
- Verify data availability
- Review permissions
- Check entity configuration
For configuration options and customization, proceed to the Configuration Guide.