Uploaded image for project: 'DC/OS'
  1. DC/OS
  2. DCOS_OSS-2043

dcos-metrics doesn't expose container metrics dimensions on parent containers

    Details

      Description

      I needed to create https://github.com/sensu-plugins/sensu-plugins-dcos/pull/12 to handle this change in behaviour (was sorking in dcos 1.9, but not in 1.10.1) in dcos-metrics (containers/<container-id> has no metrics but containers/<container-id>/app has some)

      [centos@ip-10-0-18-87 ~]$ curl -s `hostname -i`:61001/system/v1/metrics/v0/containers/40836880-c202-4ea8-a3f1-7d2cfd129c16 | jq .
      [centos@ip-10-0-18-87 ~]$ curl -s `hostname -i`:61001/system/v1/metrics/v0/containers/40836880-c202-4ea8-a3f1-7d2cfd129c16/app | jq . | head
      {
        "datapoints": [
          {
            "name": "org.apache.cassandra.metrics.Table.CasProposeLatency.system_schema.keyspaces.max",
            "value": 0,
            "unit": "",
            "timestamp": "2018-01-09T15:41:16Z"
          },
          {
            "name": "org.apache.cassandra.metrics.Table.CasPrepareLatency.system_distributed.repair_history.max",
      [centos@ip-10-0-18-87 ~]$ 
      
      Jan 09 18:08:05 ip-10-0-18-87.ec2.internal dcos-metrics[9301]: time="2018-01-09T18:08:05Z" level=error msg="/v0/containers/{id} - not found in store: dcos.metrics.container.40836880-c202-4ea8-a3f1-7d2cfd129c16" producer=http
      

      The task/container is reported as RUNNING in mesos UI:

      [centos@ip-10-0-18-87 ~]$ /opt/mesosphere/bin/dcos-metrics -version; echo
      DC/OS Metrics Service ()
      Version: 1.10.0-2-g74c87c6
      Revision: 74c87c6
      HTTP User-Agent: dcos-metrics/1.10.0-2-g74c87c6
      [centos@ip-10-0-18-87 ~]$ 
      
      

      From slack chat: https://dcos-community.slackarchive.io/day2ops/page-16/ts-1515512521000079

        Attachments

          Activity

            People

            • Assignee:
              klueska Kevin Klues (Inactive)
              Reporter:
              bergerx Bekir Dogan
              Team:
              DELETE Cluster Ops Team
              Watchers:
              Bekir Dogan, Kevin Klues (Inactive), Lee Hambley (Inactive)
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support

                  NextupJiraPlusStatus

                  Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your JIRA administrators.