Skip to content

Commit

Permalink
Set "min_version" for Pacemaker metrics newly added for v3.7.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 715444617
  • Loading branch information
zach-zabetakis authored and copybara-github committed Jan 15, 2025
1 parent bb5c451 commit 7bfac6a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"workload_validation": {
"version": 16,
"version": 17,
"validation_system": {
"system_metrics": [
{
Expand Down Expand Up @@ -820,28 +820,32 @@
{
"metric_info": {
"type": "workload.googleapis.com/sap/validation/pacemaker",
"label": "saphana_notify"
"label": "saphana_notify",
"min_version": "3.7"
},
"value": "SAPHANA_NOTIFY"
},
{
"metric_info": {
"type": "workload.googleapis.com/sap/validation/pacemaker",
"label": "saphana_clone_max"
"label": "saphana_clone_max",
"min_version": "3.7"
},
"value": "SAPHANA_CLONE_MAX"
},
{
"metric_info": {
"type": "workload.googleapis.com/sap/validation/pacemaker",
"label": "saphana_clone_node_max"
"label": "saphana_clone_node_max",
"min_version": "3.7"
},
"value": "SAPHANA_CLONE_NODE_MAX"
},
{
"metric_info": {
"type": "workload.googleapis.com/sap/validation/pacemaker",
"label": "saphana_interleave"
"label": "saphana_interleave",
"min_version": "3.7"
},
"value": "SAPHANA_INTERLEAVE"
}
Expand Down Expand Up @@ -935,28 +939,32 @@
{
"metric_info": {
"type": "workload.googleapis.com/sap/validation/pacemaker",
"label": "saphanatopology_monitor_interval"
"label": "saphanatopology_monitor_interval",
"min_version": "3.7"
},
"value": "SAPHANATOPOLOGY_MONITOR_INTERVAL"
},
{
"metric_info": {
"type": "workload.googleapis.com/sap/validation/pacemaker",
"label": "saphanatopology_monitor_timeout"
"label": "saphanatopology_monitor_timeout",
"min_version": "3.7"
},
"value": "SAPHANATOPOLOGY_MONITOR_TIMEOUT"
},
{
"metric_info": {
"type": "workload.googleapis.com/sap/validation/pacemaker",
"label": "saphanatopology_start_timeout"
"label": "saphanatopology_start_timeout",
"min_version": "3.7"
},
"value": "SAPHANATOPOLOGY_START_TIMEOUT"
},
{
"metric_info": {
"type": "workload.googleapis.com/sap/validation/pacemaker",
"label": "saphanatopology_stop_timeout"
"label": "saphanatopology_stop_timeout",
"min_version": "3.7"
},
"value": "SAPHANATOPOLOGY_STOP_TIMEOUT"
}
Expand Down Expand Up @@ -1046,7 +1054,8 @@
{
"metric_info": {
"type": "workload.googleapis.com/sap/validation/pacemaker",
"label": "op_timeout"
"label": "op_timeout",
"min_version": "3.7"
},
"value": "OP_TIMEOUT"
}
Expand All @@ -1063,14 +1072,16 @@
{
"metric_info": {
"type": "workload.googleapis.com/sap/validation/pacemaker",
"label": "stonith_enabled"
"label": "stonith_enabled",
"min_version": "3.7"
},
"value": "STONITH_ENABLED"
},
{
"metric_info": {
"type": "workload.googleapis.com/sap/validation/pacemaker",
"label": "stonith_timeout"
"label": "stonith_timeout",
"min_version": "3.7"
},
"value": "STONITH_TIMEOUT"
}
Expand Down
2 changes: 1 addition & 1 deletion internal/workloadmanager/systemmetrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ var (
AgentProperties: &cnfpb.AgentProperties{Name: "sapagent", Version: "1.0"},
}

collectionConfigVersion = "16"
collectionConfigVersion = "17"
)

func wantSystemMetrics(ts *timestamppb.Timestamp, labels map[string]string) WorkloadMetrics {
Expand Down

0 comments on commit 7bfac6a

Please sign in to comment.