class_docstr: Container for all the COUNTER and GAUGE metrics extracted from an OpenMetrics endpoint.
class_docstr_tok: ["Container","for","all","the","COUNTER","and","GAUGE","metrics","extracted","from","an","OpenMetrics","endpoint","."]
code: def sample(self) -> None:
      s = self.parse_open_metrics_endpoint()
      self.samples.append(s)
  
imports: import logging
  import re
  import sys
  import threading
  from collections import defaultdict, deque
  from functools import lru_cache
  from types import ModuleType
  from typing import TYPE_CHECKING, Dict, List, Mapping, Sequence, Tuple, Union
  import requests
  import requests.adapters
  import urllib3
  import wandb
  from wandb.sdk.lib import hashutil, telemetry
  from .aggregators import aggregate_last, aggregate_mean
  from .interfaces import Interface, Metric, MetricsMonitor
label_desc: Use image node_id 5 for calling the OpenMetricsMetric obj's underlying member method code with example usage: obj.sample() without return types