feat: update lagtime based on lasttransfersize #2091
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Zapi:
![image](https://github.com/NetApp/harvest-private/assets/83282894/7e80a7d1-8068-47ca-8637-333541a75d66)
2023-05-15T19:03:43+05:30 INF ./poller.go:539 > updated status, up collectors: 1 (of 1), up exporters: 1 (of 1) Poller=cluster-02
2023-05-15T19:03:48+05:30 INF snapmirror/snapmirror.go:240 > lagTime value set from 33765.000000 to 0. Healthy: true, Schedule: 5min, LastBytes: 0.000000, LastError: Poller=cluster-02 object=SnapMirror plugin=Zapi:Snapmirror
2023-05-15T19:03:48+05:30 INF collector/collector.go:483 > Collected Poller=cluster-02 apiMs=787 calcMs=0 collector=Zapi:SnapMirror instances=62 metrics=1474 parseMs=9 pluginMs=476
Rest:
![image](https://github.com/NetApp/harvest-private/assets/83282894/a4ebfca8-343b-42a0-8e59-c6c75921c1ee)
2023-05-15T19:21:12+05:30 INF ./poller.go:539 > updated status, up collectors: 1 (of 1), up exporters: 1 (of 1) Poller=cluster-12
2023-05-15T19:21:33+05:30 INF snapmirror/snapmirror.go:231 > lagTime value set from 34815.000000 to 0 for 2f7af98c-51c8-11e8-8d6b-00a09865fe59. Healthy: true, Schedule: 5min, LastBytes: 0.000000, LastError: Poller=cluster-12 object=SnapMirror plugin=Rest:Snapmirror
2023-05-15T19:21:33+05:30 INF collector/collector.go:483 > Collected Poller=cluster-12 apiMs=4051 calcMs=0 collector=Rest:SnapMirror instances=58 metrics=1373 parseMs=15239 pluginMs=1980