{"id":39656874,"url":"https://github.com/max-te/ottotom","last_synced_at":"2026-01-20T11:00:57.913Z","repository":{"id":332435250,"uuid":"1133767235","full_name":"max-te/ottotom","owner":"max-te","description":"Conversion of opentelemetry-rust metrics into openmetrics text format to replace opetelemetry-prometheus","archived":false,"fork":false,"pushed_at":"2026-01-13T20:40:44.000Z","size":86,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-13T22:21:53.620Z","etag":null,"topics":["openmetrics","opentelemetry","prometheus","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/max-te.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-13T19:43:28.000Z","updated_at":"2026-01-13T20:40:48.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/max-te/ottotom","commit_stats":null,"previous_names":["max-te/ottotom"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/max-te/ottotom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-te%2Fottotom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-te%2Fottotom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-te%2Fottotom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-te%2Fottotom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/max-te","download_url":"https://codeload.github.com/max-te/ottotom/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-te%2Fottotom/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28565047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["openmetrics","opentelemetry","prometheus","rust"],"created_at":"2026-01-18T09:18:47.339Z","updated_at":"2026-01-19T10:00:40.493Z","avatar_url":"https://github.com/max-te.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ottotom (OpenTelemetry to text OpenMetrics)\n\nA Rust crate for exporting OpenTelemetry metrics in the [OpenMetrics](https://github.com/prometheus/OpenMetrics) text format.\nThis serves as a protobuf-free alternative to the discontinued `opentelemetry-prometheus` crate.\n\n\u003e ⚠️ **Warning:** This implementation is not fully spec-compliant for [OpenTelemetry-to-OpenMetrics conversion](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.45.0/specification/compatibility/prometheus_and_openmetrics.md). Some edge cases and complex metrics setups may not be handled correctly. This library is still in an experimental state.\n\n## Features\n\n- **Conversion** of `opentelemetry-sdk` metric data to OpenMetrics-compliant text.\n- **Ready-to-use Exporter** to register in `opentelemetry`, outputs metrics in the OpenMetrics text format.\n\n## Usage\n\n```rust,no_run\nuse std::time::Duration;\nuse ottotom::exporter::OpenMetricsExporter;\nuse opentelemetry_sdk::metrics::PeriodicReader;\nuse opentelemetry_sdk::metrics::SdkMeterProvider;\n\npub fn init_openmetrics_exporter() -\u003e OpenMetricsExporter {\n    let exporter = OpenMetricsExporter::default();\n    let reader = PeriodicReader::builder(exporter.clone())\n        .with_interval(Duration::from_secs(1))\n        .build();\n    let meter_provider = SdkMeterProvider::builder()\n        .with_reader(reader)\n        .build();\n    opentelemetry::global::set_meter_provider(meter_provider);\n    exporter\n}\n\nlet exporter = init_openmetrics_exporter();\n// Retain the exporter in you app state. Register some opentelmetry meters and fill them with data.\n// Later on (e.g. in a `/metrics` endpoint) read the current metrics:\nasync {\n    let openmetrics = exporter.text().await;\n    println!(\"{}\", openmetrics);\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmax-te%2Fottotom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmax-te%2Fottotom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmax-te%2Fottotom/lists"}