Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support type label for volume for backward compatibility #2132

Merged
merged 3 commits into from
Jun 12, 2023

Conversation

rahulguptajss
Copy link
Contributor

No description provided.

@@ -15,22 +15,41 @@ import (

type Volume struct {
*plugin.AbstractPlugin
historicalLabels bool
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be removed, not used

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are used in init method

@@ -11,18 +11,37 @@ import (

type Volume struct {
*plugin.AbstractPlugin
historicalLabels bool
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be removed not used

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are used in init method

@cgrinds
Copy link
Collaborator

cgrinds commented Jun 12, 2023

Probably worth providing a snippet of the two changes required in the volume.yaml template to use this

@cgrinds
Copy link
Collaborator

cgrinds commented Jun 12, 2023

To modify your existing template make the following two changes

  1. In the plugins section, replace the Volume line with
  - Volume:
      historicalLabels: true
  1. In the export_options instance_keys section replace style with type

Example

...
plugins:
  - Aggregator:
    - node
  - Volume:
      historicalLabels: true

export_options:
  instance_keys:
    - aggr
    - node
    - type
    - svm
    - volume

@cgrinds cgrinds enabled auto-merge (squash) June 12, 2023 17:28
@cgrinds cgrinds merged commit 42a7b38 into main Jun 12, 2023
@cgrinds cgrinds deleted the rg2-volume-historic branch June 12, 2023 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants