eir
by Margays
Helm chartv1.7.2App v1.7.2Verified publisher
A Helm chart for deploying the Eir metrics collector
About this chart
Eir Helm Chart
This Helm chart deploys the Eir metrics collector, a Rust-based service for collecting and exporting metrics from configurable HTTP endpoints.
Features
- Deploys Eir as a containerized service
- Configurable clients, endpoints, and contexts via values.yaml
- Prometheus metrics exporter
- Supports custom environment variables
- ServiceMonitor resource for Prometheus Operator integration
Installation
helm repo add margays https://margays.github.io/charts
helm install eir margays/eir
Configuration
All configuration is managed via values.yaml. Key sections:
- image: Container image settings
- service: Service type and port
- config.clients: HTTP client definitions (headers, max_connections)
- config.endpoint_groups: Endpoint groups with metrics definitions
- config.contexts: Contexts mapping clients to endpoint groups
- env: Additional environment variables
Example:
config:
clients:
main:
headers:
Accept: application/vnd.github+json
Authorization: Bearer <token>
X-GitHub-Api-Version: 2022-11-28
User-Agent: Prometheus
max_connections: 10
endpoint_groups:
github:
url: https://api.github.com/rate_limit
interval: 1m
metrics:
- name: github_rate_limit_core_remaining
description: Remaining core requests
type: gauge
value: jmespath:response.json.resources.core.remaining
labels:
- name: static
value: some_static_value
contexts:
main:
client: main
endpoint_groups:
- github
Prometheus Integration
A ServiceMonitor resource is included for Prometheus Operator. Metrics are exposed at /metrics on the configured service port.
Deploy eir with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has eir on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the charteir is pinned at v1.7.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply