Hello! First, I'm a big fan of y'alls work. Thank you again for streaming your talk at Rust NYC @emschwartz 🙏
I am doing a 'zero-to-prod' style conference talk next month on Rust, with an emphasis on observability. I'd like to showcase autometrics, and am able to get autometrics working when I implement AM alone using the the AM prometheus exporter & metrics endpoint handler (i.e. follow the quickstart guide).
However, I also want to show off opentelemetry-prometheus metrics, and expose both metrics together. Is this a supported use case? If so, any pointers as to what I'm doing wrong? The current behavior is that only the OTEL-prom metrics are being exposed, not the autometrics metrics.
curl --location 'localhost:8000/' \
--header 'Content-Type: application/json' \
--data '{
"environment" : "howderino"
}'
curl --location 'localhost:9464/metrics'
# HELP http_server_active_requests HTTP concurrent in-flight requests per route
# TYPE http_server_active_requests gauge
http_server_active_requests{http_flavor="HTTP/1.1",http_host="localhost:8000",http_method="POST",http_scheme="http",http_server_name="0.0.0.0:8000",http_target="/",net_host_port="8000",service_name="unknown_service"} 0
# HELP http_server_duration HTTP inbound request duration per route
# TYPE http_server_duration histogram
http_server_duration_bucket{http_flavor="HTTP/1.1",http_host="localhost:8000",http_method="POST",http_scheme="http",http_server_name="0.0.0.0:8000",http_status_code="200",http_target="/",net_host_port="8000",service_name="unknown_service",le="1"} 0
http_server_duration_bucket{http_flavor="HTTP/1.1",http_host="localhost:8000",http_method="POST",http_scheme="http",http_server_name="0.0.0.0:8000",http_status_code="200",http_target="/",net_host_port="8000",service_name="unknown_service",le="2"} 0
http_server_duration_bucket{http_flavor="HTTP/1.1",http_host="localhost:8000",http_method="POST",http_scheme="http",http_server_name="0.0.0.0:8000",http_status_code="200",http_target="/",net_host_port="8000",service_name="unknown_service",le="5"} 0
http_server_duration_bucket{http_flavor="HTTP/1.1",http_host="localhost:8000",http_method="POST",http_scheme="http",http_server_name="0.0.0.0:8000",http_status_code="200",http_target="/",net_host_port="8000",service_name="unknown_service",le="10"} 0
http_server_duration_bucket{http_flavor="HTTP/1.1",http_host="localhost:8000",http_method="POST",http_scheme="http",http_server_name="0.0.0.0:8000",http_status_code="200",http_target="/",net_host_port="8000",service_name="unknown_service",le="20"} 0
http_server_duration_bucket{http_flavor="HTTP/1.1",http_host="localhost:8000",http_method="POST",http_scheme="http",http_server_name="0.0.0.0:8000",http_status_code="200",http_target="/",net_host_port="8000",service_name="unknown_service",le="50"} 1
http_server_duration_bucket{http_flavor="HTTP/1.1",http_host="localhost:8000",http_method="POST",http_scheme="http",http_server_name="0.0.0.0:8000",http_status_code="200",http_target="/",net_host_port="8000",service_name="unknown_service",le="+Inf"} 1
http_server_duration_sum{http_flavor="HTTP/1.1",http_host="localhost:8000",http_method="POST",http_scheme="http",http_server_name="0.0.0.0:8000",http_status_code="200",http_target="/",net_host_port="8000",service_name="unknown_service"} 29.957
http_server_duration_count{http_flavor="HTTP/1.1",http_host="localhost:8000",http_method="POST",http_scheme="http",http_server_name="0.0.0.0:8000",http_status_code="200",http_target="/",net_host_port="8000",service_name="unknown_service"} 1