-
Notifications
You must be signed in to change notification settings - Fork 10
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
Using propertyAlias to query does not work #211
Comments
Hi @oliverschenk ! Thanks for the bug report and the detailed repro, I managed to reproduce it and I'll take a look at it |
I tried to reproduce it using the most recent version of the Sitewise datasource (v1.10.3), and it was fixed. @oliverschenk can you try using v1.10.3 and see if you're still having this issue? |
Hi @iwysiu - I tried for half an hour to figure out how to update a plugin in Amazon Grafana. I looked in the console for an update button or feature and I looked in the Grafana plugins page, but I can't any way to update plugins. Are the plugin versions in Amazon Grafana fixed and can't be updated? Do I have to rebuild a new instance? The documentation doesn't seem to mention how to update a plugin. I have a suspicion that Managed Grafana is not keeping up-to-date with the latest plugin versions and you can't update the plugins, even the AWS plugins... do you know how soon the plugins will be updated in Managed Grafana? |
Hi @oliverschenk ! Yeah, sorry that I missed that you were using Amazon Managed Grafana. I've asked our AWS contact when they'll be able to update the SiteWise plugin and I'll tell you what they respond. |
While AWS never got back to me, I'm assuming that it's been updated by now, as it's been 2 months. If the problem persists, please reply on this issue and I'll reopen it! |
What happened:
When using the Grafana AWS IoT SiteWise data source and choosing a Query Type of Get property value, then selecting the Asset and Property from the drop-down boxes works fine.
Using the Property Alias text box instead does not. It returns an error:
failed to fetch query data: InvalidRequestException: Entries size failed to satisfy constraint: Must be at least 1 entry per request.
What you expected to happen:
As per the docs, the query should work by using either:
a) The assetID and propertyID; or
b) The propertyAlias
(a) works fine, (b) does not
How to reproduce it (as minimally and precisely as possible):
In AWS SiteWise:
Write some data to this new property:
In Grafana:
Try setting using Asset/Propert ID:
Why do I want to do this?
Because the SiteWise IoT driver in Grafana does not support populating the "Alarms" listed in an Asset. It only lists Measurements, Attributes, Transforms and Metrics (as far as I can see). In order to get access to alarms, I have set a property alias on each Alarm.
I tried manually setting the property ID based on the alarm property ID, but this also didn't work. I can't seem to populate any Grafana dashboard, because alarms return string values, not numeric values.
Screenshots
Running the command manually via the CLI works fine.
Query Result
This is the full detail of a Grafana query in the inspector. You can see it populates propertyAlias and not propertyId and assetIds, which is correct, but I think maybe something in the underlying logic that converts this into an AWS SiteWise API call doesn't quite get the "entries" part right?
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: