@nitin15j/plugin-sleuth-dora-backend
v0.4.0
Published
A Backstage backend plugin that provides DORA (DevOps Research and Assessment) metrics integration with Sleuth.io. This plugin fetches and serves DORA metrics data to the frontend components.
Downloads
6
Maintainers
Readme
@nitin15j/plugin-sleuth-dora-backend
A Backstage backend plugin that provides DORA (DevOps Research and Assessment) metrics integration with Sleuth.io. This plugin fetches and serves DORA metrics data to the frontend components.
Features
- Sleuth.io Integration: Connects to Sleuth.io API to fetch DORA metrics
- RESTful API: Provides endpoints for retrieving metrics data
- Configurable: Supports custom Sleuth.io organization and API configuration
- Authentication: Integrates with Backstage's authentication system
Prerequisites
- A Backstage application
- A Sleuth.io account with API access
- Your Sleuth.io API key and organization ID
Installation
- Install the plugin in your backend package:
cd packages/backend
yarn add @nitin15j/plugin-sleuth-dora-backend- Add the plugin to your backend:
// packages/backend/src/index.ts
import { createBackend } from '@backstage/backend-defaults';
const backend = createBackend();
// Add the DORA backend plugin
backend.add(import('@nitin15j/plugin-sleuth-dora-backend'));
backend.start();Configuration
Add the following configuration to your app-config.yaml:
dora:
sleuth:
organizationId: 'your-sleuth-organization-id'
apiUrl: 'https://app.sleuth.io'
apiKey: 'your-sleuth-api-key-here'Configuration Options
organizationId: Your Sleuth.io organization identifierapiUrl: The Sleuth.io API base URL (default: https://app.sleuth.io)apiKey: Your Sleuth.io API key for authentication
API Endpoints
The plugin provides the following REST endpoints:
GET /api/dora/metrics- Retrieve DORA metrics for the organizationGET /api/dora/metrics/teams- Retrieve DORA metrics for specific teamsGET /api/dora/metrics/entity- Retrieve DORA metrics for a specific entity/project
Development
Running the Plugin Locally
- Clone the repository
- Install dependencies:
yarn install - Configure your Sleuth.io credentials in
app-config.yaml - Start the backend:
yarn start
Testing
yarn testTroubleshooting
Common Issues
- API Key Issues: Ensure your Sleuth.io API key is valid and has the necessary permissions
- Organization ID: Verify your organization ID is correct in the configuration
- Network Issues: Check that your backend can reach the Sleuth.io API
Logs
The plugin logs important events and errors. Check your backend logs for debugging information.
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests
- Submit a pull request
License
This project is licensed under the Apache 2.0 License.
