Description of problem: Some Hawkular metrics do not have metadata in the "tags" dictionary. This causes troubles when trying to create graphs filtering by some of this tags. Version-Release number of selected component (if applicable): registry.access.redhat.com/openshift3/metrics-cassandra 3.5.0 registry.access.redhat.com/openshift3/metrics-hawkular-metrics 3.5.0 registry.access.redhat.com/openshift3/metrics-heapster 3.5.0 How reproducible: Always Steps to Reproduce: 1. Deploy metrics 3.5.0 2. Use curl command as: curl -sH "Hawkular-Tenant: logging" -H 'Authorization: Bearer XXX' "https://hawkular-metrics.example/hawkular/metrics/gauges/fluentd-elasticsearch%2F46e45c6b-46d5-11e7-b994-005056a23f44%2Fmemory%2Fusage" | jq . 3. Actual results: Some of the metrics do not include metadata: Metric with correct metadata: $ curl -sH "Hawkular-Tenant: logging" -H 'Authorization: Bearer XXX' "https://hawkular-metrics.apps-dev.hi.inet/hawkular/metrics/gauges/elasticsearch%2Fad61ea58-6637-11e7-89ec-005056a24ea1%2Fmemory%2Fusage" | jq . { "id": "elasticsearch/ad61ea58-6637-11e7-89ec-005056a24ea1/memory/usage", "tags": { "container_base_image": "registry.access.redhat.com/openshift3/logging-elasticsearch:3.5.0", "container_name": "elasticsearch", "descriptor_name": "memory/usage", "group_id": "elasticsearch/memory/usage", "host_id": "prod-epg-ocpi-03.hi.inet", "hostname": "prod-epg-ocpi-03.hi.inet", "labels": "component:es,deployment:logging-es-6uiyr7lz-2,deploymentconfig:logging-es-6uiyr7lz,logging-infra:elasticsearch,provider:openshift", "namespace_id": "6c43dbd5-4554-11e7-ab6a-005056a24ea1", "namespace_name": "logging", "nodename": "prod-epg-ocpi-03.hi.inet", "pod_id": "ad61ea58-6637-11e7-89ec-005056a24ea1", "pod_name": "logging-es-6uiyr7lz-2-fwq6s", "pod_namespace": "logging", "type": "pod_container", "units": "bytes" }, "dataRetention": 7, "type": "gauge", "tenantId": "logging", "minTimestamp": 1500293520000, "maxTimestamp": 1500296700000 } Metric with missing metadata: $ curl -sH "Hawkular-Tenant: logging" -H 'Authorization: Bearer XXX' "https://hawkular-metrics.apps-dev.hi.inet/hawkular/metrics/gauges/fluentd-elasticsearch%2F46e45c6b-46d5-11e7-b994-005056a23f44%2Fmemory%2Fusage" | jq . { "id": "fluentd-elasticsearch/46e45c6b-46d5-11e7-b994-005056a23f44/memory/usage", "dataRetention": 7, "type": "gauge", "tenantId": "logging", "minTimestamp": 1499688000000, "maxTimestamp": 1500297090000 } Expected results: All metrics including metadata Additional info:
*** This bug has been marked as a duplicate of bug 1469291 ***