@backstage-community/plugin-cost-insights 0.22.0 → 0.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +26 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -118,6 +118,32 @@ To expose the plugin to your users, you can integrate the `cost-insights` route
|
|
|
118
118
|
);
|
|
119
119
|
```
|
|
120
120
|
|
|
121
|
+
## New Frontend System
|
|
122
|
+
|
|
123
|
+
### Setup
|
|
124
|
+
|
|
125
|
+
If you're using [feature discovery](https://backstage.io/docs/frontend-system/architecture/app/#feature-discovery), the plugin should be automatically discovered and enabled. Otherwise, you can manually enable the plugin by adding it to your app:
|
|
126
|
+
|
|
127
|
+
```tsx
|
|
128
|
+
// packages/app/src/App.tsx
|
|
129
|
+
import costInsightsPlugin from '@backstage-community/plugin-cost-insights/alpha';
|
|
130
|
+
|
|
131
|
+
const app = createApp({
|
|
132
|
+
features: [
|
|
133
|
+
// ...
|
|
134
|
+
costInsightsPlugin,
|
|
135
|
+
],
|
|
136
|
+
});
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### Extensions
|
|
140
|
+
|
|
141
|
+
The following extensions are available in the plugin:
|
|
142
|
+
|
|
143
|
+
- `api:cost-insights`
|
|
144
|
+
- `page:cost-insights`
|
|
145
|
+
- `nav-item:cost-insights`
|
|
146
|
+
|
|
121
147
|
## Configuration
|
|
122
148
|
|
|
123
149
|
Cost Insights has only one required configuration field: `engineerCost` - the average yearly cost of an engineer including benefits.
|