Skip to content

Commit

Permalink
[src] Add insights integration for Stateful Node
Browse files Browse the repository at this point in the history
[src] Add integrations for Azure Elastigroup (both insights and azureDns)
  • Loading branch information
yardenE committed Feb 11, 2025
1 parent 2ef2940 commit c1da95f
Show file tree
Hide file tree
Showing 7 changed files with 186 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1515,4 +1515,79 @@ properties:
type: integer
description: |
Indicates (in seconds) the timeout to wait until instance become healthy based on the healthCheckType.
minimum: 1
minimum: 1
integrations:
type: object
title: Elastigroup Integrations
description: |
Set integrations for the VMs in the Elastigroup.
properties:
azureDns:
description: |
Set DNS zones for the VMs in the Elastigroup.
[Read more](https://docs.spot.io/elastigroup/features-azure/dns)
type: object
required:
- dnsZones
properties:
dnsZones:
type: array
items:
type: object
title: Azure DNS
required:
- type
- resourceGroup
- name
- recordSets
properties:
type:
type: string
description: |
The type of the DNS zone. Currently we only support public DNS zones.
enum:
- "public"
example: "public"
resourceGroup:
type: string
description: |
The resource group name of the DNS zone.
example: "myResourceGroup"
name:
type: string
description: |
The name of the DNS zone.
example: "myDnsName"
recordSets:
type: array
description:
List of record sets to be add the Virtual Machine IPs to the DNS.
items:
type: object
title: Record Sets
properties:
name:
type: string
example: "myRecordSet"
spotAccountId:
type: string
description: |
The Spot account ID that connected to the Azure subscription to which the DNS zone belongs.
Relevant only in case of cross-subscription shared DNS zones.
insights:
type: object
description: |
Set insights for the VMs in the Elastigroup.
required:
- isEnabled
- dataCollectionRuleId
properties:
isEnabled:
type: boolean
description: |
Enable insights for the VMs in the Elastigroup.
dataCollectionRuleId:
type: string
description:
The ID of the data collection rule to be associated with the VMs in the Elastigroup.
example: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionRules/myDataCollectionRule"
Original file line number Diff line number Diff line change
@@ -1,2 +1,64 @@
type: object
title: Elastigroup Integrations
title: Elastigroup Integrations
description: |
Set integrations for the VMs in the Elastigroup.
properties:
azureDns:
description: |
Set DNS zones for the VMs in the Elastigroup.
[Read more](https://docs.spot.io/elastigroup/features-azure/dns)
type: object
properties:
dnsZones:
type: array
items:
type: object
title: Azure DNS
properties:
type:
type: string
description: |
The type of the DNS zone. Currently we only support public DNS zones.
enum:
- "public"
example: "public"
resourceGroup:
type: string
description: |
The resource group name of the DNS zone.
example: "myResourceGroup"
name:
type: string
description: |
The name of the DNS zone.
example: "myDnsName"
recordSets:
type: array
description:
List of record sets to be add the Virtual Machine IPs to the DNS.
items:
type: object
title: Record Sets
properties:
name:
type: string
example: "myRecordSet"
spotAccountId:
type: string
description: |
The Spot account ID that connected to the Azure subscription to which the DNS zone belongs.
Relevant only in case of cross-subscription shared DNS zones.
insights:
type: object
description: |
Set insights for the VMs in the Elastigroup.
properties:
isEnabled:
type: boolean
description: |
Enable insights for the VMs in the Elastigroup.
dataCollectionRuleId:
type: string
description:
The ID of the data collection rule to be associated with the VMs in the Elastigroup.
example: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionRules/myDataCollectionRule"
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ properties:
$ref: "../schemas/elastigroupVm-health.yaml"
scheduling:
$ref: "../schemas/elastigroupVm-scheduling.yaml"
integrations:
$ref: "../schemas/elastigroupVm-integrations.yaml"
createdAt:
type: string
readOnly: true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
type: object
title: Stateful Node Integrations
description: |
Set integrations for the VMs in the Stateful Node.
properties:
insights:
type: object
description: |
Set insights for the the Stateful Node.
required:
- isEnabled
- dataCollectionRuleId
properties:
isEnabled:
type: boolean
description: |
Enable insights for the Stateful Node.
dataCollectionRuleId:
type: string
description:
The ID of the data collection rule to be associated with the Stateful Node.
example: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionRules/myDataCollectionRule"
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ properties:
$ref: "create/createStatefulNodeScheduling.yaml"
health:
$ref: "create/createStatefulNodeHealth.yaml"
integrations:
$ref: "create/createStatefulNodeIntegrations.yaml"
createdAt:
type: string
readOnly: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ properties:
$ref: "updateStatefulNodeScheduling.yaml"
health:
$ref: "updateStatefulNodeHealth.yaml"
integrations:
$ref: "updateStatefulNodeIntegrations.yaml"
createdAt:
type: string
readOnly: true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
type: object
title: Stateful Node Integrations
description: |
Set integrations for the VMs in the Stateful Node.
properties:
insights:
type: object
description: |
Set insights for the the Stateful Node.
properties:
isEnabled:
type: boolean
description: |
Enable insights for the Stateful Node.
dataCollectionRuleId:
type: string
description:
The ID of the data collection rule to be associated with the Stateful Node.
example: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionRules/myDataCollectionRule"

0 comments on commit c1da95f

Please sign in to comment.