Metadata-Version: 2.4
Name: indico-plugin-prometheus
Version: 3.3.1
Summary: Prometheus metrics in Indico servers
Project-URL: GitHub, https://github.com/indico/indico-plugins
Author-email: Indico Team <indico-team@cern.ch>
License-Expression: MIT
Classifier: Environment :: Plugins
Classifier: Environment :: Web Environment
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.12
Requires-Python: <3.13,>=3.12.2
Requires-Dist: indico>=3.3
Requires-Dist: prometheus-client==0.21.1
Description-Content-Type: text/markdown

# Indico Prometheus Plugin

This plugin exposes a `/metrics` endpoint which provides Prometheus-compatible output.

![](https://raw.githubusercontent.com/indico/indico-plugins/master/prometheus/screenshot.png)

## prometheus.yml
```yaml
scrape_configs:
  - job_name: indico_stats
    metrics_path: /metrics
    scheme: https
    static_configs:
      - targets:
        - yourindicoserver.example.com
    # it is recommended that you set a bearer token in the config
    authorization:
        credentials: xxxxxx
    # this is only needed in development setups
```

If you're doing development you may want to add this under `scrape_configs`:
```yaml
    tls_config:
      insecure_skip_verify: false
```

## Changelog

### 3.3.1

- Use latest prometheus-client library
- Ensure that only one `Content-type` header (`text/plain`) is sent

### 3.3

- Support (and require) Python 3.12

### 3.2.1

- Support Python 3.11
- Use latest prometheus-client library

### 3.2

- Initial release for Indico 3.2
