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

Telemetry: Calculated (Min, Max, Average) #2968

Closed
gtmills opened this issue Feb 24, 2021 · 13 comments
Closed

Telemetry: Calculated (Min, Max, Average) #2968

gtmills opened this issue Feb 24, 2021 · 13 comments
Assignees
Labels
Migrate-No Do not migrate to Jira prio_medium ReadyForDev Stories ready for development work
Milestone

Comments

@gtmills
Copy link

gtmills commented Feb 24, 2021

A Telemetry service is being added here:
https://gerrit.openbmc-project.xyz/q/topic:%22telemetry%22+(status:open%20OR%20status:merged)

One thing it is missing is the ability to do "Calculated " metrics, specifically Min, Max, and Average.

These are defined in the https://redfish.dmtf.org/schemas/v1/MetricReportDefinition.v1_4_0.json

These will need to work with the CollectionTimeScope, etc.

        "CalculationAlgorithmEnum": {
            "description": "The function to apply to the list of metric properties.",
            "enum": [
                "Average",
                "Maximum",
                "Minimum",
                "Summation"
            ],
            "enumDescriptions": {
                "Average": "The metric is calculated as the average metric reading over a duration.",
                "Maximum": "The metric is calculated as the maximum metric reading over a duration.",
                "Minimum": "The metric is calculated as the minimum metric reading over a duration.",
                "Summation": "The metric is calculated as the sum of the values over a duration."
            },
            "enumLongDescriptions": {
                "Average": "This value shall indicate the metric is calculated as the average metric reading over a duration.  The duration shall be the CollectionDuration property value.",
                "Maximum": "This value shall indicate the metric is calculated as the maximum metric reading over a duration.  The duration shall be the CollectionDuration property value.",
                "Minimum": "This value shall indicate the metric is calculated as the minimum metric reading over a duration.  The duration shall be the CollectionDuration property value.",
                "Summation": "This value shall indicate the metric is calculated as the sum of the specified metric reading over a duration.  The duration shall be the CollectionDuration property value."
            },
            "longDescription": "This type shall specify the function to apply to the list of metric properties.",
            "type": "string"
        },

These changes will need to happen in bmcweb and the telemetry repo.
Please work with the community on these changes.

When this is complete a client should be able to sign up for a max over 30 seconds of CPU temperatures or a 1 min average of the inlet temperature

Additional references:
https://www.dmtf.org/documents/redfish-spmf/redfish-telemetry-white-paper-0
https://redfish.dmtf.org/redfish/mockups/v1/1027
https://lists.ozlabs.org/pipermail/openbmc/2021-February/025141.html

@gtmills gtmills added the ReadyForDev Stories ready for development work label Feb 24, 2021
@rfrandse rfrandse modified the milestones: A.1.213.1, A.1.888 Feb 25, 2021
@rfrandse rfrandse modified the milestones: A.1.888, A.1.213.1 Mar 1, 2021
@gtmills
Copy link
Author

gtmills commented Aug 16, 2021

@lxwinspur @ChicagoDuan @XiaochaoMa Is there an owner for this?
Could the owner review / test https://gerrit.openbmc-project.xyz/c/openbmc/telemetry/+/41064 ?

@lxwinspur
Copy link

Could the owner review / test https://gerrit.openbmc-project.xyz/c/openbmc/telemetry/+/41064 ?

Sure, Let me review / test this patch.

@lxwinspur
Copy link

@gtmills

I saw that Intel has implemented this function, could you take a look at this patch?

https://gerrit.openbmc-project.xyz/c/openbmc/bmcweb/+/46349/5/redfish-core/lib/metric_report_definition.hpp#32

@gtmills
Copy link
Author

gtmills commented Sep 7, 2021

@lxwinspur I will take a look, can you review as well?

@lxwinspur lxwinspur self-assigned this Sep 7, 2021
@lxwinspur
Copy link

@lxwinspur I will take a look, can you review as well?

Yes, I am testing

@lxwinspur
Copy link

@gtmills
https://redfish.dmtf.org/redfish/mockups/v1/1027
This link is no longer valid

@gtmills
Copy link
Author

gtmills commented Sep 9, 2021

https://redfish.dmtf.org/redfish/v1 are the mockups

@lxwinspur
Copy link

@gtmills can we close this issue?

@gtmills
Copy link
Author

gtmills commented Jan 19, 2022

@lxwinspur Has this been merged upstream ?

@lxwinspur
Copy link

@lxwinspur Has this been merged upstream ?

No, still reviewing
https://gerrit.openbmc-project.xyz/c/openbmc/bmcweb/+/44270/

@gtmills
Copy link
Author

gtmills commented Jan 19, 2022

Let's use this to track getting in.
Since we have this downstream, I moved this to Code Review in Driver. I also lowered the priority since we have this downstream

@mzipse mzipse added the Migrate-No Do not migrate to Jira label Oct 26, 2022
@gtmills
Copy link
Author

gtmills commented Jun 21, 2023

@gtmills gtmills closed this as completed Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Migrate-No Do not migrate to Jira prio_medium ReadyForDev Stories ready for development work
Projects
None yet
Development

No branches or pull requests

4 participants