| Summary: | postgres plugin Query resource cannot obtain metric | |||
|---|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | John Mazzitelli <mazz> | |
| Component: | Plugins | Assignee: | John Mazzitelli <mazz> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 4.3 | CC: | hrupp | |
| Target Milestone: | --- | |||
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 801186 (view as bug list) | Environment: | ||
| Last Closed: | 2013-09-01 19:19:43 UTC | Type: | --- | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Bug Depends On: | ||||
| Bug Blocks: | 801186 | |||
|
Description
John Mazzitelli
2012-03-07 20:05:58 UTC
I was totally wrong in my guess of what's going on. Turns out, the metric query should return one row, TWO columns - in this case, the first column must have the value 'metricColumn' (literally) and the second is the numeric value. select 'metricColumn', count(id) from my_table is one example. I did tweek the code slightly to support the use case where you don't want to supply a metric query and I allow for the name/description to be optional. I also added some debug log messages. But the core functionality was already there and working. So, this should be considered a doc issue more than anything. We need better docs to explain how to use this resource. master git commit: 0910465 Bulk closing of BZs that have no target version set, but which are ON_QA for more than a year and thus are in production for a long time. |