-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: collect external_service_op perf object (#1941)
* feat: collect external_service_op perf object * feat: collect external_service_op perf object * feat: dashboard changes * feat: CI changes * feat: CI changes * feat: added new panels in svm dashboard * feat: moved new panels to new dashboard * feat: merge main * feat: adding operation var, aggregation at servicename and operation * fix: added unique key for topk * fix: minor changes * fix: few name correction * fix: topk default to 5
- Loading branch information
Showing
7 changed files
with
1,327 additions
and
47 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
cmd/collectors/zapiperf/plugins/externalserviceoperation/externalserviceoperation.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright NetApp Inc, 2023 All rights reserved | ||
*/ | ||
package externalserviceoperation | ||
|
||
import ( | ||
"github.com/netapp/harvest/v2/cmd/poller/plugin" | ||
"github.com/netapp/harvest/v2/pkg/matrix" | ||
) | ||
|
||
const Hyphen = "-" | ||
|
||
type ExternalServiceOperation struct { | ||
*plugin.AbstractPlugin | ||
} | ||
|
||
func New(p *plugin.AbstractPlugin) plugin.Plugin { | ||
return &ExternalServiceOperation{AbstractPlugin: p} | ||
} | ||
|
||
func (e *ExternalServiceOperation) Run(dataMap map[string]*matrix.Matrix) ([]*matrix.Matrix, error) { | ||
data := dataMap[e.Object] | ||
datacenterClusterKey := data.GetGlobalLabels().Get("datacenter") + Hyphen + data.GetGlobalLabels().Get("cluster") + Hyphen | ||
for _, instance := range data.GetInstances() { | ||
// generate unique key by appending datacenter, cluster, svm, service_name and operation to support topk in grafana dashboard | ||
key := datacenterClusterKey + instance.GetLabel("svm") + Hyphen + instance.GetLabel("service_name") + Hyphen + instance.GetLabel("operation") | ||
instance.SetLabel("key", key) | ||
} | ||
return nil, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
name: ExternalServiceOperation | ||
query: external_service_op | ||
object: external_service_op | ||
|
||
instance_key: uuid | ||
|
||
counters: | ||
- instance_name | ||
- instance_uuid | ||
- node_name => node | ||
- num_not_found_responses | ||
- num_request_failures | ||
- num_requests_sent | ||
- num_responses_received | ||
- num_successful_responses | ||
- num_timeouts | ||
- operation | ||
- process_name | ||
- request_latency | ||
- request_latency_hist | ||
- server_ip_address | ||
- server_name | ||
- service_name | ||
- vserver_name => svm | ||
|
||
plugins: | ||
- ExternalServiceOperation | ||
|
||
export_options: | ||
instance_keys: | ||
- key | ||
- node | ||
- operation | ||
- process_name | ||
- server_ip_address | ||
- server_name | ||
- service_name | ||
- svm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.