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

NameDescriptionValue
global.labels{}
global.annotations{}

scrapeConfigs Scrape configs for prometheus

NameDescriptionValue
scrapeConfigs.labelsLabels for scrape configs{}
scrapeConfigs.envoy.enabledEnable scrape config for envoytrue
scrapeConfigs.envoy.nameName of the scrape configenvoy-stats
scrapeConfigs.envoy.jobNameJob name for envoyenvoy-stats
scrapeConfigs.envoy.labelsLabels for envoy{}
scrapeConfigs.envoy.annotationsAnnotations for envoy{}
scrapeConfigs.envoy.metricsPathMetrics path for envoy/stats/prometheus
scrapeConfigs.envoy.relabelingsRelabelings for envoy[]
scrapeConfigs.envoy.metricsRelabelingsMetrics relabelings for envoy[]
scrapeConfigs.kubernetesPods.enabledEnable scrape config for kubernetes podstrue
scrapeConfigs.kubernetesPods.nameName of the scrape configkubernetes-pods
scrapeConfigs.kubernetesPods.jobNameJob name for kubernetes podskubernetes-pods
scrapeConfigs.kubernetesPods.labelsLabels for kubernetes pods{}
scrapeConfigs.kubernetesPods.annotationsAnnotations for kubernetes pods{}
scrapeConfigs.kubernetesPods.relabelingsRelabelings for kubernetes pods[]
scrapeConfigs.kubernetesPods.metricsRelabelingsMetrics relabelings for kubernetes pods[]
scrapeConfigs.additionalScrapeConfigsAdditional scrape configs for prometheus[]

alertManagers Alert managers for prometheus

NameDescriptionValue
alertManagers.labelsLabels for alert managers{}
alertManagers.tfyAgent.enabledEnable alert manager for tfy-agenttrue
alertManagers.tfyAgent.nameName of the alert managertfy-alertmanager-config
alertManagers.tfyAgent.labelsLabel for tfy-agent{}
alertManagers.tfyAgent.routeRoute for the alert manager{}
alertManagers.tfyAgent.receiversReceivers for the alert manager[]

prometheusRules Prometheus rules for prometheus

NameDescriptionValue
prometheusRules.labelsLabels for prometheus rules{}
prometheusRules.containerRules.enabledEnable prometheus rules for alertstrue
prometheusRules.containerRules.nameName of the prometheus rulestfy-alertmanager-config-alerting-rules
prometheusRules.containerRules.labelsLabels for the prometheus rules{}
prometheusRules.containerRules.annotationsAnnotations for the prometheus rules{}
prometheusRules.kubecostRules.enabledEnable prometheus rules for kubecosttrue
prometheusRules.kubecostRules.nameName of the prometheus rulestfy-alertmanager-config-kubecost-rules
prometheusRules.kubecostRules.labelsLabels for the prometheus rules{}
prometheusRules.kubecostRules.annotationsAnnotations for the prometheus rules{}
prometheusRules.envoyPortRules.enabledEnable prometheus rules for alertstrue
prometheusRules.envoyPortRules.nameName of the prometheus rulestfy-envoy-port-rules
prometheusRules.envoyPortRules.labelsLabels for the prometheus rules{}
prometheusRules.envoyPortRules.annotationsAnnotations for the prometheus rules{}
prometheusRules.envoyPortRules.portListList of common ports[]

controlPlaneMonitors service monitors for control plane components

NameDescriptionValue
controlPlaneMonitors.enabledEnable service monitors for control plane componentsfalse
controlPlaneMonitors.releaseNamespaceRelease namespace for the control planetruefoundry
controlPlaneMonitors.tenantNameTenant name for the control plane<to_be_provided>
controlPlaneMonitors.namespaceSelectorNamespace selector for the control plane monitors{}
controlPlaneMonitors.serviceSelectorLabelService selector label for the control plane monitorsapp.kubernetes.io/name
controlPlaneMonitors.alerts.enabledEnable alerts for control planefalse
controlPlaneMonitors.alerts.alertRules.labelsLabels for control plane alert rules{}
controlPlaneMonitors.alerts.alertRules.annotationsAnnotations for control plane alert rules{}
controlPlaneMonitors.alerts.alertRules.enabledEnable alert rules for control planetrue
controlPlaneMonitors.alerts.alertRules.nameName of the alert rulestfy-control-plane-alerting-rules
controlPlaneMonitors.alerts.alertManager.enabledEnable alert manager for control planetrue
controlPlaneMonitors.alerts.alertManager.labelsLabels for control plane alert manager{}
controlPlaneMonitors.alerts.alertManager.annotationsAnnotations for control plane alert manager{}
controlPlaneMonitors.alerts.alertManager.nameName of the alert managertfy-control-plane-alert-manager
controlPlaneMonitors.alerts.alertManager.secret.createCreate a secret for the alert managerfalse
controlPlaneMonitors.alerts.alertManager.secret.nameName of the secret for the alert managertfy-control-plane-alert-manager-secret
controlPlaneMonitors.alerts.alertManager.secret.dataData for the secret for the alert manager{}
controlPlaneMonitors.alerts.alertManager.routeRoute for the alert manager{}
controlPlaneMonitors.alerts.alertManager.receiversReceivers for the alert manager[]
controlPlaneMonitors.clickHouseOperator.enabledEnable service monitor for ClickHouse operatortrue
controlPlaneMonitors.clickHouseOperator.nameName of the service monitortfy-clickhouse-operator
controlPlaneMonitors.clickHouseOperator.labelsLabels for ClickHouse operator{}
controlPlaneMonitors.clickHouseOperator.annotationsAnnotations for ClickHouse operator{}
controlPlaneMonitors.clickHouseOperator.jobLabelJob label for ClickHouse operatorapp.kubernetes.io/name
controlPlaneMonitors.clickHouseOperator.endpointsEndpoints for ClickHouse operator[]
controlPlaneMonitors.clickHouseOperator.namespaceSelectorNamespace selector for ClickHouse operator{}
controlPlaneMonitors.clickHouseOperator.serviceSelectorLabelsService selector labels for ClickHouse operator{}
controlPlaneMonitors.servicefoundryServer.enabledEnable service monitor for servicefoundry servertrue
controlPlaneMonitors.servicefoundryServer.nameName of the service monitorservicefoundry-server
controlPlaneMonitors.servicefoundryServer.labelsLabels for servicefoundry server{}
controlPlaneMonitors.servicefoundryServer.annotationsAnnotations for servicefoundry server{}
controlPlaneMonitors.servicefoundryServer.endpointsEndpoints for servicefoundry server[]
controlPlaneMonitors.servicefoundryServer.serviceSelectorLabelsService selector labels for servicefoundry server{}
controlPlaneMonitors.servicefoundryServer.namespaceSelectorNamespace selector for servicefoundry server{}
controlPlaneMonitors.mlfoundryServer.enabledEnable service monitor for mlfoundry servertrue
controlPlaneMonitors.mlfoundryServer.nameName of the service monitormlfoundry-server
controlPlaneMonitors.mlfoundryServer.labelsLabels for mlfoundry server{}
controlPlaneMonitors.mlfoundryServer.annotationsAnnotations for mlfoundry server{}
controlPlaneMonitors.mlfoundryServer.endpointsEndpoints for mlfoundry server[]
controlPlaneMonitors.mlfoundryServer.serviceSelectorLabelsService selector labels for mlfoundry server{}
controlPlaneMonitors.mlfoundryServer.namespaceSelectorNamespace selector for mlfoundry server{}
controlPlaneMonitors.sfyManifestService.enabledEnable service monitor for sfy manifest servicetrue
controlPlaneMonitors.sfyManifestService.nameName of the service monitorsfy-manifest-service
controlPlaneMonitors.sfyManifestService.labelsLabels for sfy manifest service{}
controlPlaneMonitors.sfyManifestService.annotationsAnnotations for sfy manifest service{}
controlPlaneMonitors.sfyManifestService.endpointsEndpoints 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the charttfy-prometheus-config is pinned at v0.2.20 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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