docstr: Represent a component that requests to proxy export metrics
  
  Args:
      id: Id of this component.
docstr_tok: ["Represent","a","component","that","requests","to","proxy","export","metrics","Args",":","id",":","Id","of","this","component","."]
code: def __init__(self, id: str):
      """Represent a component that requests to proxy export metrics
  
      Args:
          id: Id of this component.
      """
      self.id = id
      # -- The time this component reported its metrics last time --
      # It is used to figure out if this component is stale.
      self._last_reported_time = time.monotonic()
      # -- Metrics requested to proxy export from this component --
      # metrics_name (str) -> metric (OpencensusProxyMetric)
      self._metrics = {}
  
imports: import json
  import logging
  import os
  import re
  import threading
  import time
  import traceback
  from collections import namedtuple
  from typing import List, Tuple, Any, Dict
  from prometheus_client.core import CounterMetricFamily, GaugeMetricFamily, HistogramMetricFamily
  from opencensus.metrics.export.value import ValueDouble
  from opencensus.stats import aggregation
  from opencensus.stats import measure
  from opencensus.stats.view_manager import ViewManager
  from opencensus.stats.stats_recorder import StatsRecorder
  from opencensus.stats.base_exporter import StatsExporter
  from prometheus_client.core import Metric
  from opencensus.stats.aggregation_data import CountAggregationData, DistributionAggregationData, LastValueAggregationData
  from opencensus.stats.view import View
  from opencensus.tags import tag_key
  from opencensus.tags import tag_map
  from opencensus.tags import tag_value
  import ray
  from ray._raylet import GcsClient
  from ray.core.generated.metrics_pb2 import Metric
label_desc: Use image node_id 1 to create a new Component object  with example: obj = Component(id)