Skip to content

Commit

Permalink
Vsphere Cluster Entity Golden Metrics/Tags (#53)
Browse files Browse the repository at this point in the history
Add GM & Tags for several entity types
  • Loading branch information
ikavanaghNR authored Feb 24, 2021
1 parent 9b74e9f commit b4b4daa
Show file tree
Hide file tree
Showing 16 changed files with 101 additions and 27 deletions.
5 changes: 4 additions & 1 deletion definitions/infra-apacheserver/definition.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
domain: INFRA
type: APACHESERVER
goldenTags: []
goldenTags:
- apache.hostname
- apache.port
- apache.version
compositeMetrics:
goldenMetrics:
- golden_metrics.yml
Expand Down
16 changes: 15 additions & 1 deletion definitions/infra-apacheserver/golden_metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,26 @@ requestsPerSecond:
query:
select: average(net.requestsPerSecond)
from: ApacheSample
facet: entityName
eventId: entityGuid
facet: entityName
totalBytesSentPerSecond:
title: Total Bytes Sent per second
query:
select: average(net.bytesPerSecond)
from: ApacheSample
eventId: entityGuid
facet: entityName
busyWorkers:
title: Current number of Busy Workers
query:
select: average(server.busyWorkers)
from: ApacheSample
eventId: entityGuid
facet: entityName
idleWorkers:
title: Current number of Idle Workers
query:
select: average(server.idleWorkers)
from: ApacheSample
eventId: entityGuid
facet: entityName
7 changes: 6 additions & 1 deletion definitions/infra-cassandranode/definition.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
domain: INFRA
type: CASSANDRANODE
goldenTags: []
goldenTags:
- cassandra.hostname
- cassandra.port
- cassandra.version
- cassandra.clusterDatacenter
- cassandra.clusterName
compositeMetrics:
goldenMetrics:
- golden_metrics.yml
Expand Down
5 changes: 4 additions & 1 deletion definitions/infra-elasticsearchnode/definition.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
domain: INFRA
type: ELASTICSEARCHNODE
goldenTags: []
goldenTags:
- elasticsearch.clusterName
- elasticsearch.nodeHostname
- elasticsearch.nodeIpAddress
compositeMetrics:
goldenMetrics:
- golden_metrics.yml
Expand Down
4 changes: 3 additions & 1 deletion definitions/infra-kafkabroker/definition.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
domain: INFRA
type: KAFKABROKER
goldenTags: []
goldenTags:
- kafka.clusterName
- kafka.brokerId
compositeMetrics:
goldenMetrics:
- golden_metrics.yml
Expand Down
4 changes: 3 additions & 1 deletion definitions/infra-mssqlinstance/definition.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
domain: INFRA
type: MSSQLINSTANCE
goldenTags: []
goldenTags:
- mssql.host
- mssql.instance
compositeMetrics:
goldenMetrics:
- golden_metrics.yml
Expand Down
7 changes: 6 additions & 1 deletion definitions/infra-mysqlnode/definition.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
domain: INFRA
type: MYSQLNODE
goldenTags: []
goldenTags:
- mysql.port
- mysql.version
- mysql.edition
- mysql.hostname
- mysql.clusterNodeType
compositeMetrics:
goldenMetrics:
- golden_metrics.yml
Expand Down
7 changes: 7 additions & 0 deletions definitions/infra-mysqlnode/golden_metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,10 @@ slowQueriesPerMinute:
from: MysqlSample
facet: entityName
eventId: entityGuid
connectionsPerSecond:
title: Connections per Second
query:
select: average(net.connectionsPerSecond)
from: MysqlSample
facet: entityName
eventId: entityGuid
6 changes: 5 additions & 1 deletion definitions/infra-nginxserver/definition.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
domain: INFRA
type: NGINXSERVER
goldenTags: []
goldenTags:
- nginx.port
- nginx.version
- nginx.edition
- nginx.hostname
compositeMetrics:
goldenMetrics:
- golden_metrics.yml
Expand Down
3 changes: 2 additions & 1 deletion definitions/infra-postgresqlinstance/definition.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
domain: INFRA
type: POSTGRESQLINSTANCE
goldenTags: []
goldenTags:
- postgres.host
compositeMetrics:
goldenMetrics:
- golden_metrics.yml
Expand Down
6 changes: 5 additions & 1 deletion definitions/infra-redisinstance/definition.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
domain: INFRA
type: REDISINSTANCE
goldenTags: []
goldenTags:
- redis.port
- redis.hostname
- redis.version
- redis.clusterRole
compositeMetrics:
goldenMetrics:
- golden_metrics.yml
Expand Down
6 changes: 5 additions & 1 deletion definitions/infra-vspherecluster/definition.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
domain: INFRA
type: VSPHERECLUSTER
goldenTags: []
goldenTags:
- vsphere.clusterDatacenterLocation
- vsphere.clusterDatacenterName
- vsphere.clusterHostList
- vsphere.clusterDatastoreList
compositeMetrics:
goldenMetrics:
- golden_metrics.yml
Expand Down
25 changes: 13 additions & 12 deletions definitions/infra-vspherecluster/golden_metrics.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
effectiveCpuAvailableToVmsMhz:
title: Effective CPU available to VMs (MHz)

hostsCount:
title: Total Hosts in the Cluster
query:
select: average(cpu.totalEffectiveMHz)
eventId: entityGuid
select: latest(`hosts`)
from: VSphereClusterSample
facet: entityName
eventId: entityGuid
effectiveMemoryAvailableToVmsMb:
title: Effective memory available to VMs (MB)
totalEffectiveMHz:
title: Total Effective CPU resources in MHz
query:
select: average(mem.effectiveSize)
eventId: entityGuid
select: latest(`cpu.totalEffectiveMHz`)
from: VSphereClusterSample
facet: entityName
eventId: entityGuid
numberOfEffectiveHosts:
title: Number of effective hosts
totalMHz:
title: Aggregated CPU resources of all hosts in MHz
query:
select: average(effectiveHosts)
eventId: entityGuid
select: latest(`cpu.totalMHz`)
from: VSphereClusterSample
facet: entityName
eventId: entityGuid
8 changes: 7 additions & 1 deletion definitions/infra-vspherehost/definition.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
domain: INFRA
type: VSPHEREHOST
goldenTags: []
goldenTags:
- vsphere.hostClusterName
- vsphere.hostOverallStatus
- vsphere.hostDatacenterName
- vsphere.hostResourcePoolNameList
- vsphere.hostDatastoreNameList
- vsphere.hostHypervisorHostname
compositeMetrics:
goldenMetrics:
- golden_metrics.yml
Expand Down
11 changes: 9 additions & 2 deletions definitions/infra-vspherehost/golden_metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,26 @@ cpuUsage:
query:
select: average(cpu.percent)
from: VSphereHostSample
facet: entityName
eventId: entityGuid
facet: entityName
memoryUsage:
title: Memory usage (%)
query:
select: average(mem.free)*100/average(mem.size)
from: VSphereHostSample
facet: entityName
eventId: entityGuid
facet: entityName
diskUsageMib:
title: Disk usage (MiB)
query:
select: average(disk.totalMiB)
from: VSphereHostSample
eventId: entityGuid
facet: entityName
connectionState:
title: Connection State of the Host
query:
eventId: entityGuid
select: latest(`connectionState`)
from: VSphereHostSample
facet: entityName
8 changes: 7 additions & 1 deletion definitions/infra-vspherevm/definition.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
domain: INFRA
type: VSPHEREVM
goldenTags: []
goldenTags:
- vsphere.vmClusterName
- vsphere.vmDatacenterName
- vsphere.vmHypervisorHostname
- vsphere.vmResourcePoolName
- vsphere.vmDatastoreNameList
- vsphere.vmVmHostname
compositeMetrics:
goldenMetrics:
- golden_metrics.yml
Expand Down

0 comments on commit b4b4daa

Please sign in to comment.