Learn how to set up monitoring and telemetry for your self-hosted Infisical instance using Grafana, Prometheus, and OpenTelemetry.
OTEL_COLLECTOR_BASIC_AUTH_USERNAME
and OTEL_COLLECTOR_BASIC_AUTH_PASSWORD
values must match the credentials configured in your OpenTelemetry Collector’s basicauth/server
extension. These are not hardcoded values - you configure them in your collector configuration file.
/metrics
endpoint, allowing Prometheus to scrape the data. The metrics are exposed in Prometheus format but originate from OpenTelemetry instrumentation.
prometheus.yml
):
infisical-backend:9464
with the actual hostname and port where your Infisical backend is running. This could be:
infisical-backend:9464
(service name)infisical-backend.default.svc.cluster.local:9464
(service name)192.168.1.100:9464
(actual IP address)your-infisical.example.com:9464
(domain name)otel-collector-config.yaml
):
your_username:your_password
with your chosen credentials. These must match the values you set in Infisical’s OTEL_COLLECTOR_BASIC_AUTH_USERNAME
and OTEL_COLLECTOR_BASIC_AUTH_PASSWORD
environment variables.
otel-collector:8889
with the actual hostname and port where your OpenTelemetry Collector is running. This could be:
otel-collector:8889
(service name)otel-collector.default.svc.cluster.local:8889
(service name)192.168.1.100:8889
(actual IP address)your-collector.example.com:8889
(domain name)API_latency
- API request latency histogram in milliseconds
route
, method
, statusCode
API_errors
- API error count histogram
route
, method
, type
, name
integration_secret_sync_errors
- Integration secret sync error count
version
, integration
, integrationId
, type
, status
, name
, projectId
secret_sync_sync_secrets_errors
- Secret sync operation error count
version
, destination
, syncId
, projectId
, type
, status
, name
secret_sync_import_secrets_errors
- Secret import operation error count
version
, destination
, syncId
, projectId
, type
, status
, name
secret_sync_remove_secrets_errors
- Secret removal operation error count
version
, destination
, syncId
, projectId
, type
, status
, name
http_server_duration
- HTTP server request duration metrics (histogram buckets, count, sum)http_client_duration
- HTTP client request duration metrics (histogram buckets, count, sum)infisical_secret_operations_total
- Total secret operationsinfisical_secrets_processed_total
- Total secrets processedOTEL_TELEMETRY_COLLECTION_ENABLED=true
OTEL_EXPORT_TYPE
is set