fhir-server-exporter
by chgl
A Helm chart for deploying the FHIR® server exporter on Kubernetes.
About this chart
fhir-server-exporter
FHIR® Server Exporter - Helm chart for deploying the Prometheus FHIR® server exporter
TL;DR;
helm install fhir-server-exporter oci://ghcr.io/chgl/charts/fhir-server-exporter --create-namespace -n fhir
Introduction
This chart deploys the FHIR® server exporter. on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes v1.18+
- Helm v3
Installing the Chart
To install the chart with the release name fhir-server-exporter:
helm install fhir-server-exporter oci://ghcr.io/chgl/charts/fhir-server-exporter -n fhir
The command deploys the FHIR® server exporter. on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall the fhir-server-exporter:
helm uninstall fhir-server-exporter -n fhir
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
The following table lists the configurable parameters of the fhir-server-exporter chart and their default values.
| Parameter | Description | Default |
|---|---|---|
| fhirServerUrl | the URL of the FHIR server whose metrics should be scraped. Interpreted as a template. | "" |
| fhirServerName | the name of the FHIR server (included in the metrics as server_name). Interpreted as a template. | "" |
| fetchIntervalSeconds | FHIR server exporter fetch interval in seconds | 300 |
| serviceMonitor.enabled | if enabled, creates a ServiceMonitor instance for Prometheus Operator-based monitoring | false |
| replicaCount | number of replicas | 1 |
| nameOverride | "" | |
| fullnameOverride | "" | |
| service.type | ClusterIP | |
| service.port | 8080 | |
| serviceAccount.create | Specifies whether a service account should be created. | true |
| serviceAccount.name | The name of the service account to use. If not set and create is true, a name is generated using the fullname template | "" |
| serviceAccount.automountServiceAccountToken | whether to automount the SA token | false |
| resourcesPreset | set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if primary.resources is set (primary.resources is recommended for production). More information: https://github.com/chgl/charts/blob/master/charts/common/templates/_resources.tpl | "micro" |
| podDisruptionBudget.enabled | create a PodDisruptionBudget resource for the pods | false |
| podDisruptionBudget.minAvailable | Minimum available instances; ignored if there is no PodDisruptionBudget | 1 |
| podDisruptionBudget.maxUnavailable | Maximum unavailable instances; ignored if there is no PodDisruptionBudget | "" |
| tests.automountServiceAccountToken | false | |
| tests.resourcesPreset | set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if primary.resources is set (primary.resources is recommended for production). More information: https://github.com/chgl/charts/blob/master/charts/common/templates/_resources.tpl | "nano" |
| networkPolicy.enabled | whether to create a default NetworkPolicy for each processor deployment. extra rules can be added on a per-processor level as .networkPolicy.extraIngress/Egress | false |
Specify each parameter using the --set key=value[,key=value] argument to helm install. For example:
helm install fhir-server-exporter oci://ghcr.io/chgl/charts/fhir-server-exporter -n fhir --set fetchIntervalSeconds=300
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example:
helm install fhir-server-exporter oci://ghcr.io/chgl/charts/fhir-server-exporter -n fhir --values values.yaml
Deploy fhir-server-exporter with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has fhir-server-exporter 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 chartfhir-server-exporter is pinned at v1.2.45 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