Skip to content

Add advisor summary metric yaml file #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
# plugin-template

Template repository for plugins

## Description

This is a template repository for CloudForet's plugin.

When you use this template to create a new plugin repository, you can inherit the repository structure, files, and content that are required for developing a plugin service for CloudForet.
When you use this template to create a new plugin repository, you can inherit the repository structure, files, and
content that are required for developing a plugin service for CloudForet.

## How to use
To create a new repository from this template, choose Repository template on the "Repository template" button on Create a new repository page.

To create a new repository from this template, choose Repository template on the "Repository template" button on Create
a new repository page.

![스크린샷 2023-05-31 오전 9 49 56](https://github.com/cloudforet-io/plugin-template/assets/19552819/48f236a5-ae51-454a-8df1-1019223cec35)

Or, you can also click on the "Use this template" button on the template repository page.

![스크린샷 2023-05-31 오후 1 53 02](https://github.com/cloudforet-io/plugin-template/assets/19552819/5175aaff-8a38-4f7c-b70d-3e8a59e6af50)


## Sync up workflows

After creating the repository, please set the "plugin" topic.

![스크린샷 2023-05-31 오후 1 44 19](https://github.com/cloudforet-io/plugin-template/assets/19552819/7d6de464-237e-43f2-b670-b015d79e7185)
Expand Down
26 changes: 26 additions & 0 deletions src/plugin/metrics/Advisor/advisor_summary/advisor_count.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
metric_id: metric-azure-advisor-summary
name: Advisor Summary
metric_type: GAUGE
resource_type: inventory.CloudService:azure.Advisor
query_options:
group_by:
- key: data.impact
name: Impact
default: true
- key: data.category
name: Category
- key: data.tenant_id
name: Tenant ID
- key: data.subscription_name
name: Subscription Name
default: true
- key: data.subscription_id
name: Subscription ID
- key: data.impacted_value_display
name: Impacted Resource Name
fields:
value:
operator: count
namespace_id: ns-azure-advisor-summary
version: '1.0'
8 changes: 8 additions & 0 deletions src/plugin/metrics/Advisor/advisor_summary/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
namespace_id: ns-azure-advisor-summary
name: Advisor/Summary
category: ASSET
resource_type: inventory.CloudService:azure.Advisor
group: azure
icon: https://spaceone-custom-assets.s3.ap-northeast-2.amazonaws.com/console-assets/icons/cloud-services/azure/azure-advisor.svg"
version: '1.0'
Loading