tfy-prometheus-config
by TrueFoundry
Helm chartv0.2.20Verified publisher
A Helm chart for Prometheus Config
About this chart
Prometheus Config
This chart is used to configure prometheus. It is used to configure the scrape configs, alert managers, prometheus rules, and service monitors for prometheus.
Parameters
global Global settings for prometheus
| Name | Description | Value |
|---|---|---|
global.labels | {} | |
global.annotations | {} |
scrapeConfigs Scrape configs for prometheus
| Name | Description | Value |
|---|---|---|
scrapeConfigs.labels | Labels for scrape configs | {} |
scrapeConfigs.envoy.enabled | Enable scrape config for envoy | true |
scrapeConfigs.envoy.name | Name of the scrape config | envoy-stats |
scrapeConfigs.envoy.jobName | Job name for envoy | envoy-stats |
scrapeConfigs.envoy.labels | Labels for envoy | {} |
scrapeConfigs.envoy.annotations | Annotations for envoy | {} |
scrapeConfigs.envoy.metricsPath | Metrics path for envoy | /stats/prometheus |
scrapeConfigs.envoy.relabelings | Relabelings for envoy | [] |
scrapeConfigs.envoy.metricsRelabelings | Metrics relabelings for envoy | [] |
scrapeConfigs.kubernetesPods.enabled | Enable scrape config for kubernetes pods | true |
scrapeConfigs.kubernetesPods.name | Name of the scrape config | kubernetes-pods |
scrapeConfigs.kubernetesPods.jobName | Job name for kubernetes pods | kubernetes-pods |
scrapeConfigs.kubernetesPods.labels | Labels for kubernetes pods | {} |
scrapeConfigs.kubernetesPods.annotations | Annotations for kubernetes pods | {} |
scrapeConfigs.kubernetesPods.relabelings | Relabelings for kubernetes pods | [] |
scrapeConfigs.kubernetesPods.metricsRelabelings | Metrics relabelings for kubernetes pods | [] |
scrapeConfigs.additionalScrapeConfigs | Additional scrape configs for prometheus | [] |
alertManagers Alert managers for prometheus
| Name | Description | Value |
|---|---|---|
alertManagers.labels | Labels for alert managers | {} |
alertManagers.tfyAgent.enabled | Enable alert manager for tfy-agent | true |
alertManagers.tfyAgent.name | Name of the alert manager | tfy-alertmanager-config |
alertManagers.tfyAgent.labels | Label for tfy-agent | {} |
alertManagers.tfyAgent.route | Route for the alert manager | {} |
alertManagers.tfyAgent.receivers | Receivers for the alert manager | [] |
prometheusRules Prometheus rules for prometheus
| Name | Description | Value |
|---|---|---|
prometheusRules.labels | Labels for prometheus rules | {} |
prometheusRules.containerRules.enabled | Enable prometheus rules for alerts | true |
prometheusRules.containerRules.name | Name of the prometheus rules | tfy-alertmanager-config-alerting-rules |
prometheusRules.containerRules.labels | Labels for the prometheus rules | {} |
prometheusRules.containerRules.annotations | Annotations for the prometheus rules | {} |
prometheusRules.kubecostRules.enabled | Enable prometheus rules for kubecost | true |
prometheusRules.kubecostRules.name | Name of the prometheus rules | tfy-alertmanager-config-kubecost-rules |
prometheusRules.kubecostRules.labels | Labels for the prometheus rules | {} |
prometheusRules.kubecostRules.annotations | Annotations for the prometheus rules | {} |
prometheusRules.envoyPortRules.enabled | Enable prometheus rules for alerts | true |
prometheusRules.envoyPortRules.name | Name of the prometheus rules | tfy-envoy-port-rules |
prometheusRules.envoyPortRules.labels | Labels for the prometheus rules | {} |
prometheusRules.envoyPortRules.annotations | Annotations for the prometheus rules | {} |
prometheusRules.envoyPortRules.portList | List of common ports | [] |
controlPlaneMonitors service monitors for control plane components
| Name | Description | Value |
|---|---|---|
controlPlaneMonitors.enabled | Enable service monitors for control plane components | false |
controlPlaneMonitors.releaseNamespace | Release namespace for the control plane | truefoundry |
controlPlaneMonitors.tenantName | Tenant name for the control plane | <to_be_provided> |
controlPlaneMonitors.namespaceSelector | Namespace selector for the control plane monitors | {} |
controlPlaneMonitors.serviceSelectorLabel | Service selector label for the control plane monitors | app.kubernetes.io/name |
controlPlaneMonitors.alerts.enabled | Enable alerts for control plane | false |
controlPlaneMonitors.alerts.alertRules.labels | Labels for control plane alert rules | {} |
controlPlaneMonitors.alerts.alertRules.annotations | Annotations for control plane alert rules | {} |
controlPlaneMonitors.alerts.alertRules.enabled | Enable alert rules for control plane | true |
controlPlaneMonitors.alerts.alertRules.name | Name of the alert rules | tfy-control-plane-alerting-rules |
controlPlaneMonitors.alerts.alertManager.enabled | Enable alert manager for control plane | true |
controlPlaneMonitors.alerts.alertManager.labels | Labels for control plane alert manager | {} |
controlPlaneMonitors.alerts.alertManager.annotations | Annotations for control plane alert manager | {} |
controlPlaneMonitors.alerts.alertManager.name | Name of the alert manager | tfy-control-plane-alert-manager |
controlPlaneMonitors.alerts.alertManager.secret.create | Create a secret for the alert manager | false |
controlPlaneMonitors.alerts.alertManager.secret.name | Name of the secret for the alert manager | tfy-control-plane-alert-manager-secret |
controlPlaneMonitors.alerts.alertManager.secret.data | Data for the secret for the alert manager | {} |
controlPlaneMonitors.alerts.alertManager.route | Route for the alert manager | {} |
controlPlaneMonitors.alerts.alertManager.receivers | Receivers for the alert manager | [] |
controlPlaneMonitors.clickHouseOperator.enabled | Enable service monitor for ClickHouse operator | true |
controlPlaneMonitors.clickHouseOperator.name | Name of the service monitor | tfy-clickhouse-operator |
controlPlaneMonitors.clickHouseOperator.labels | Labels for ClickHouse operator | {} |
controlPlaneMonitors.clickHouseOperator.annotations | Annotations for ClickHouse operator | {} |
controlPlaneMonitors.clickHouseOperator.jobLabel | Job label for ClickHouse operator | app.kubernetes.io/name |
controlPlaneMonitors.clickHouseOperator.endpoints | Endpoints for ClickHouse operator | [] |
controlPlaneMonitors.clickHouseOperator.namespaceSelector | Namespace selector for ClickHouse operator | {} |
controlPlaneMonitors.clickHouseOperator.serviceSelectorLabels | Service selector labels for ClickHouse operator | {} |
controlPlaneMonitors.servicefoundryServer.enabled | Enable service monitor for servicefoundry server | true |
controlPlaneMonitors.servicefoundryServer.name | Name of the service monitor | servicefoundry-server |
controlPlaneMonitors.servicefoundryServer.labels | Labels for servicefoundry server | {} |
controlPlaneMonitors.servicefoundryServer.annotations | Annotations for servicefoundry server | {} |
controlPlaneMonitors.servicefoundryServer.endpoints | Endpoints for servicefoundry server | [] |
controlPlaneMonitors.servicefoundryServer.serviceSelectorLabels | Service selector labels for servicefoundry server | {} |
controlPlaneMonitors.servicefoundryServer.namespaceSelector | Namespace selector for servicefoundry server | {} |
controlPlaneMonitors.mlfoundryServer.enabled | Enable service monitor for mlfoundry server | true |
controlPlaneMonitors.mlfoundryServer.name | Name of the service monitor | mlfoundry-server |
controlPlaneMonitors.mlfoundryServer.labels | Labels for mlfoundry server | {} |
controlPlaneMonitors.mlfoundryServer.annotations | Annotations for mlfoundry server | {} |
controlPlaneMonitors.mlfoundryServer.endpoints | Endpoints for mlfoundry server | [] |
controlPlaneMonitors.mlfoundryServer.serviceSelectorLabels | Service selector labels for mlfoundry server | {} |
controlPlaneMonitors.mlfoundryServer.namespaceSelector | Namespace selector for mlfoundry server | {} |
controlPlaneMonitors.sfyManifestService.enabled | Enable service monitor for sfy manifest service | true |
controlPlaneMonitors.sfyManifestService.name | Name of the service monitor | sfy-manifest-service |
controlPlaneMonitors.sfyManifestService.labels | Labels for sfy manifest service | {} |
controlPlaneMonitors.sfyManifestService.annotations | Annotations for sfy manifest service | {} |
controlPlaneMonitors.sfyManifestService.endpoints | Endpoints for sfy manifest service |
Deploy tfy-prometheus-config with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has tfy-prometheus-config 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 charttfy-prometheus-config is pinned at v0.2.20 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