It should use the mesos-go agent package.
Each metric which is processed by the plugin should be checked for the presence of a container_id tag. If so, the plugin should add further tags (see below). If not, the metric should not be altered.
Metrics must always be tagged with:
- service_name (ie framework name)
Metrics must also be tagged with any labels on the task which are prefixed DCOS_METRICS_. For example, any metric from a task labeled DCOS_METRICS_FOO=bar must be tagged FOO=bar