Add examples

Signed-off-by: Alexandre JARDON <28548335+webalexeu@users.noreply.github.com>
This commit is contained in:
Alexandre JARDON
2024-01-25 21:01:13 +01:00
parent 6ca67f7aa2
commit eab87292c1
2 changed files with 16 additions and 4 deletions

View File

@@ -34,10 +34,16 @@ Name | Description | Type | Labels
`Subclass` | Provides the list of references to nodes that can be the owner of this resource. | gauge | `type`, `owner_group`, `owner_node`, `name`
### Example metric
_This collector does not yet have explained examples, we would appreciate your help adding them!_
Query the state of all cluster resource owned by node1
```
windows_mscluster_resource_state{owner_node="node1"}
```
## Useful queries
_This collector does not yet have any useful queries added, we would appreciate your help adding them!_
Counts the number of Network Name cluster resource
```
count(windows_mscluster_resource_state{type="Network Name"})
```
## Alerting examples
_This collector does not yet have alerting examples, we would appreciate your help adding them!_

View File

@@ -32,10 +32,16 @@ Name | Description | Type | Labels
`UpdateDomain` | | gauge | `owner_node`, `name`
### Example metric
_This collector does not yet have explained examples, we would appreciate your help adding them!_
Query the state of all cluster group owned by node1
```
windows_mscluster_resourcegroup_state{owner_node="node1"}
```
## Useful queries
_This collector does not yet have any useful queries added, we would appreciate your help adding them!_
Counts the number of cluster group by type
```
count_values("count", windows_mscluster_resourcegroup_group_type)
```
## Alerting examples
_This collector does not yet have alerting examples, we would appreciate your help adding them!_