From: "Grobelny, Krzysztof" <krzysztof.grobelny@linux.intel.com>
To: openbmc@lists.ozlabs.org
Subject: Re: create telemetry metric report definition
Date: Wed, 30 Jun 2021 11:24:05 +0200 [thread overview]
Message-ID: <c86a2844-c5a8-bff7-81ef-d6a09fe31e3a@linux.intel.com> (raw)
In-Reply-To: <PS2PR02MB354169FE1A228DAB09D78A8B90039@PS2PR02MB3541.apcprd02.prod.outlook.com>
Hello,
About your dbus call it should look like this:
busctl call xyz.openbmc_project.Telemetry
/xyz/openbmc_project/Telemetry/Reports
xyz.openbmc_project.Telemetry.ReportManager AddReport 'ssbbta(osss)'
'TelemetryService/ReportName' 'Periodic' true true 1000 1
'/xyz/openbmc_project/sensors/current/HSC_IOUT' 'SINGLE' 'MetricName'
'/redfish/v1/Chassis/Transformers_MotherBoard/Sensors/HSC_IOUT/Reading'
You are missing method signature 'ssbbta(osss)'
You are missing number of elements in array a(osss)
About your post request it works for me:
curl --user root:root --insecure --location --request POST
https://localhost:4443/redfish/v1/TelemetryService/MetricReportDefinitions
-d
'{"Id":"MyMetric","Metrics":[{"MetricId":"HSC_IOUT_reading","MetricProperties":["/redfish/v1/Chassis/Transformers_MotherBoard/Sensors/HSC_IOUT/Reading"]}],"MetricReportDefinitionType":"Periodic","ReportActions":["RedfishEvent","LogToMetricReportsCollection"],"Schedule":{"RecurrenceInterval":"PT1S"}}'
Are you sure your curl params are ok? Can you perform post with for
example invalid parameters to verify your request. You could change
RecurrenceInterval to something not recongnized or Id to contain invalid
characters like '@' and see if you get correct reponse from bmcweb.
BR, Krzysztof
On 2021-06-28 23:14, Mohammed.Habeeb ISV wrote:
> Hi
>
> How to create a telemetry metric report definition? I tried to set via dbus command as below, but got an error.
> busctl call xyz.openbmc_project.Telemetry /xyz/openbmc_project/Telemetry/Reports xyz.openbmc_project.Telemetry.ReportManager AddReport MyMetric Periodic 1 1 1000 "/xyz/openbmc_project/sensors/current/HSC_IOUT" "SINGLE" 1 "/redfish/v1/Chassis/Transformers_MotherBoard/Sensors/HSC_IOUT/Reading"
> Unknown signature type M.
>
> Tried to use redfish also, but got an internal service error. Please let me know if I miss anything here in both commands.
> habeeb@nsit-160:~/openbmc_nibu06$ curl -k -H "X-Auth-Token: $token" -X POST https://${bmc}/redfish/v1/TelemetryService/MetricReportDefinitions -d '{
> "Id":"MyMetric",
> "Metrics":[
> {
> "MetricId": "HSC_IOUT_reading",
> "MetricProperties":
> ["/redfish/v1/Chassis/Transformers_MotherBoard/Sensors/HSC_IOUT/Reading"]
> }
> ],
> "MetricReportDefinitionType": "Periodic",
> "ReportActions": ["RedfishEvent", "LogToMetricReportsCollection"],
> "Schedule": {
> "RecurrenceInterval": "PT1S"
> }
> }'
>
> {
> "error": {
> "@Message.ExtendedInfo": [
> {
> "@odata.type": "#Message.v1_1_1.Message",
> "Message": "The request failed due to an internal service error. The service is still operational.",
> "MessageArgs": [],
> "MessageId": "Base.1.8.1.InternalError",
> "MessageSeverity": "Critical",
> "Resolution": "Resubmit the request. If the problem persists, consider resetting the service."
> }
> ],
> "code": "Base.1.8.1.InternalError",
> "message": "The request failed due to an internal service error. The service is still operational."
> }
> }
> ---
> I see xyz.openbmc_project.Telemetry.ReportManager Interface is present.
> sysadmin@transformers:~# busctl tree --no-pager xyz.openbmc_project.Telemetry
> `-/xyz
> `-/xyz/openbmc_project
> `-/xyz/openbmc_project/Telemetry
> `-/xyz/openbmc_project/Telemetry/Reports
>
> Regards
> Habeeb
prev parent reply other threads:[~2021-06-30 9:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-28 21:14 create telemetry metric report definition Mohammed.Habeeb ISV
2021-06-30 9:24 ` Grobelny, Krzysztof [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c86a2844-c5a8-bff7-81ef-d6a09fe31e3a@linux.intel.com \
--to=krzysztof.grobelny@linux.intel.com \
--cc=openbmc@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).