OpenC3/cosmos

View on GitHub
openc3-cosmos-cmd-tlm-api/config.ru

Summary

Maintainability
Test Coverage
# This file is used by Rack-based servers to start the application.

require_relative 'config/environment'
require 'prometheus/middleware/collector'
require 'prometheus/middleware/exporter'

use Prometheus::Middleware::Collector
use Prometheus::Middleware::Exporter, {:path => '/openc3-api/metrics'}

run Rails.application
Rails.application.load_server