Configuring LLM Gateway exporters
LLM Gateway Exporters allow you to store logs from your processors, enabling better monitoring and analysis of your system’s behavior.
Logs can be exported in two ways:
- Local File Export – Save logs to a specified location.
- Cloud Storage Export – Send logs to a Google Cloud Storage (GCP) or Amazon S3 bucket.
Logs are written automatically as they are generated, ensuring that you always have up-to-date insights into your system's performance.
Configuring exporters
All export configurations are managed within gateway_config.yaml. Below is an example for each type of configuration:
/etc/lunar-proxy/gateway_config.yaml
exporters:
file: #Local Exporter
exporter_id: my_file_exporter
file_dir: "/var/log/lunar-proxy" # Directory where HAR files will be stored
file_name: "transaction.log" # Naming pattern for log files
cloud: #Cloud Exporter
exporter_id: <exporter id>
type: "s3"/"gcp"
bucket_name: <bucket name>
region: <region name>
note
You can only have one cloud exporter, meaning either Amazon s3 or GCP. The example above shows how you can configure each one.