Comment 10 for bug 1202749

Revision history for this message
Frédéric FAURE (frederic-faure) wrote :

I requested the resource corresponding to my instance and got a meters' links list which is smaller than this one http://docs.openstack.org/developer/ceilometer/measurements.html => It lacks all the "notification" meters.

If i try http://localhost:8777/v2/meters/memory?q.field=resource_id&q.value=989615b4-aa18-4772-b9dc-2bf439664f23 (which is not in the returned meters' links list), I actually got [], idem for all the "notification" meters: memory, vcpus, disk.root.size and disk.ephemeral.size.

"pollster" and "both" meters are OK => filled with samples.

By the way "disk.read.request" & "disk.write.request": it lacks the "s" at the end of "request" in the doc "measurements.html".

The missing metadata are corresponding to the missing meters "memory_mb", "vcpus", "root_gb" and "ephemeral_gb" + "disk_gb" (?), "architecture", "os_type" and "reservation_id".

Terminating instance do NOT add neither meters nor metadata to the resource (I waited 20min).

---------------------------------------------------------

Here is the result of the request on the resource corresponding to my instance "test-fred-001":

[
    {
        "resource_id": "989615b4-aa18-4772-b9dc-2bf439664f23",
        "project_id": "7da74e1b45264cc1897a0efd4e9a0acb",
        "user_id": "1c4eb0efcdf144e187339e6f8ef2e8d9",
        "links": [
            {
                "href": "http://localhost:8777/v2/resources/989615b4-aa18-4772-b9dc-2bf439664f23",
                "rel": "self"
            },
            {
                "href": "http://localhost:8777/v2/meters/cpu?q.field=resource_id&q.value=989615b4-aa18-4772-b9dc-2bf439664f23",
                "rel": "cpu"
            },
            {
                "href": "http://localhost:8777/v2/meters/instance?q.field=resource_id&q.value=989615b4-aa18-4772-b9dc-2bf439664f23",
                "rel": "instance"
            },
            {
                "href": "http://localhost:8777/v2/meters/instance:m1.nano?q.field=resource_id&q.value=989615b4-aa18-4772-b9dc-2bf439664f23",
                "rel": "instance:m1.nano"
            },
            {
                "href": "http://localhost:8777/v2/meters/disk.read.requests?q.field=resource_id&q.value=989615b4-aa18-4772-b9dc-2bf439664f23",
                "rel": "disk.read.requests"
            },
            {
                "href": "http://localhost:8777/v2/meters/disk.read.bytes?q.field=resource_id&q.value=989615b4-aa18-4772-b9dc-2bf439664f23",
                "rel": "disk.read.bytes"
            },
            {
                "href": "http://localhost:8777/v2/meters/disk.write.requests?q.field=resource_id&q.value=989615b4-aa18-4772-b9dc-2bf439664f23",
                "rel": "disk.write.requests"
            },
            {
                "href": "http://localhost:8777/v2/meters/disk.write.bytes?q.field=resource_id&q.value=989615b4-aa18-4772-b9dc-2bf439664f23",
                "rel": "disk.write.bytes"
            },
            {
                "href": "http://localhost:8777/v2/meters/cpu_util?q.field=resource_id&q.value=989615b4-aa18-4772-b9dc-2bf439664f23",
                "rel": "cpu_util"
            }
        ],
        "metadata": {
            "ephemeral_gb": "",
            "display_name": "test-fred-001",
            "name": "instance-00000001",
            "disk_gb": "",
            "kernel_id": "7c8761a4-a68c-4a66-a16e-c3183d26a431",
            "ramdisk_id": "8ef3d28b-92d3-4a49-aee7-a5c8f2ee0035",
            "host": "c582b90d33f3cadf6a241e4c1312250f5b40ef73675e2b079caff05f",
            "memory_mb": "",
            "instance_type": "f56f1dde-2518-4543-bb22-86c45485a572",
            "vcpus": "",
            "root_gb": "",
            "image_ref": "478d18e7-0a55-4e59-b95a-ebb1f4b3bee9",
            "architecture": "",
            "os_type": "",
            "OS-EXT-AZ:availability_zone": "nova",
            "reservation_id": "",
            "image_ref_url": "http://10.0.2.15:8774/bbd9449fbe5f4d7ca750a75bb9fd0e39/images/478d18e7-0a55-4e59-b95a-ebb1f4b3bee9"
        }
    }
]