title: Send custom data to Prometheus
body: <p>I am new to Prometheus and I would like to send some custom metrics to Prometheus. I am using this <a href="https://github.com/prometheus/client_python#wsgi" rel="nofollow noreferrer">client lib</a>.</p>
  
  <pre><code>from prometheus_client import make_wsgi_app
  from wsgiref.simple_server import make_server
  
  def prometheus_config():
      app = make_wsgi_app()
      httpd = make_server('', 1618, app)
      httpd.serve_forever()
  
  
  def start_prometheus_server():
      threading.Thread(target=prometheus_config).start()enter code here
  </code></pre>
  
  <p>I have started service for Prometheus. </p>
  
  <ol>
  <li>How could I now up <code>/custom</code> endpoint? </li>
  <li>How can I send there my
  custom data?</li>
  </ol>