google / google/slo-generator

💡 [REQUEST] - Add OpenTelemetry Exporter plugin

Open
#347 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
Python
Stars
564
Forks
88
PR merge metrics
No merged PRs in 30d

Description

### Summary

It would be useful to be able to export SLO reports to OpenTelemetry. I've already done some initial work, but ran into a stumbling block when trying to leverage the existing prometheus exporter as a template. The prometheus exporter creates a Gauge to build the time_series. OpenTelemetry says that prometheus gauges must be converted to OTLP Gauges. Unfortunately, at the moment, OpenTelemetry only supports async gauges, while slo-generator's design calls for a synchronous gauge. I'm currently looking at ways to wrap the async gauge to make it synchronous.

### Basic Example

In the case of writing to Grafana Mimir, it would provide a future-facing alternative to pushgateway or remote write. Ideally both grpc and http would be supported.

### Screenshots

```bash
![DESCRIPTION](LINK.png)
```

### Drawbacks

It would add more code to slo-generator that would need to be maintained.

### Unresolved questions

_No response_

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.