Metadata-Version: 2.1
Name: xpuls-mlmonitor
Version: 0.0.2
Summary: Automated telemetry and monitoring for ML & LLM Frameworks
Home-page: https://github.com/xpuls-labs/xpuls-mlmonitor-python
Author: Sai Sharan Tangeda
Author-email: saisarantangeda@gmail.com
License: Apache License 2.0
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: opentelemetry-instrumentation-requests
Requires-Dist: opentelemetry-api
Requires-Dist: opentelemetry-sdk
Requires-Dist: prometheus-client
Requires-Dist: langchain
Provides-Extra: all
Requires-Dist: opentelemetry-instrumentation-requests ; extra == 'all'
Requires-Dist: opentelemetry-api ; extra == 'all'
Requires-Dist: opentelemetry-sdk ; extra == 'all'
Requires-Dist: prometheus-client ; extra == 'all'
Requires-Dist: langchain ; extra == 'all'
Provides-Extra: langchain
Requires-Dist: opentelemetry-instrumentation-requests ; extra == 'langchain'
Requires-Dist: opentelemetry-api ; extra == 'langchain'
Requires-Dist: opentelemetry-sdk ; extra == 'langchain'
Requires-Dist: prometheus-client ; extra == 'langchain'
Requires-Dist: langchain ; extra == 'langchain'

# MLMonitor - Automatic Instrumentation for ML Frameworks


## Roadmap

- Prometheus Support for major ML & LLM frameworks
  - Langchain - Done
  - LLamaIndex - Coming Soon
  - SKLearn - Coming Soon
  - transformers - Coming Soon
  - pytorch - Coming Soon

## Installation

1. Install from PyPI
```shell
pip install xpuls-mlmonitor
```


## Usage
```python
from xpuls.mlmonitor.langchain.instrument import LangchainTelemetry

# Add default labels that will be added to all captured metrics
default_labels = {"service": "ml-project-service", "k8s-cluster": "app0", "namespace": "dev"}

# Enable the auto-telemetry
LangchainTelemetry(default_labels=default_labels).auto_instrument()

```

## License

This project is licensed under the Apache License 2.0. See the LICENSE file for more details.


## Contributing

We welcome contributions to MLMonitor! If you're interested in contributing.

If you encounter any issues or have feature requests, please file an issue on our GitHub repository.
