rancher-partner-charts/charts/prophetstor/federatorai/templates/federatorai-agent/configmaps.yaml

213 lines
7.4 KiB
YAML

---
apiVersion: v1
data:
transmitter.toml: |-
[log]
set-logcallers = false
output-level = "info" # debug, info, warn, error, fatal, none
[input_jobs]
[input_jobs.cost_analysis_normal_daily]
name = "cost_analysis_normal_daily"
schedule-spec = "*/20 * * * *"
agent = "fedemeter"
immediacy = true
lib-configuration = "/etc/alameda/federatorai-agent/input/cost_analysis_normal_daily.toml"
health-check-retry = -1
[input_jobs.cost_analysis_normal_cluster_daily]
name = "cost_analysis_normal_cluster_daily"
schedule-spec = "*/10 * * * *"
agent = "fedemeter"
immediacy = true
lib-configuration = "/etc/alameda/federatorai-agent/input/cost_analysis_normal_cluster_daily.toml"
health-check-retry = -1
[input_jobs.cost_analysis_high_recommendation]
name = "cost_analysis_high_recommendation"
schedule-spec = "*/30 * * * *"
agent = "fedemeter"
lib-configuration = "/etc/alameda/federatorai-agent/input/cost_analysis_high_recommendation.toml"
health-check-retry = -1
[input_jobs.cost_analysis_normal_weekly]
name = "cost_analysis_normal_weekly"
schedule-spec = "0 * * * *"
agent = "fedemeter"
immediacy = true
lib-configuration = "/etc/alameda/federatorai-agent/input/cost_analysis_normal_weekly.toml"
health-check-retry = -1
[input_jobs.cost_analysis_normal_monthly]
name = "cost_analysis_normal_monthly"
schedule-spec = "30 * * * *"
agent = "fedemeter"
immediacy = true
lib-configuration = "/etc/alameda/federatorai-agent/input/cost_analysis_normal_monthly.toml"
health-check-retry = -1
[input_jobs.cost_analysis_normal_yearly]
name = "cost_analysis_normal_yearly"
schedule-spec = "0 0 * * *"
agent = "fedemeter"
immediacy = true
lib-configuration = "/etc/alameda/federatorai-agent/input/cost_analysis_normal_yearly.toml"
health-check-retry = -1
cost_analysis_normal_daily.toml: |
enable_multiple_worker = true
[datahub]
address = "alameda-datahub:50050"
[datahub."retry-interval"]
default = 3 # second
[fedemeter]
url = "http://fedemeter-api:8888/fedemeter-api/v1"
username = ""
password = ""
task = "recommendation_cost_app,recommendation_cost_namespace,cost_namespace_analysis,cost_allocations_application,cost_allocations_namespace"
timeout = 300 # seconds
[cost_analysis]
calculate_current = true
calculate_current_unit = "month"
[recommendation]
ri = true
granularity = "3600" # daily: 3600, weekly: 21600, monthly: 86400
fill_days = "1" # daily: 1, weekly: 7, monthly: 31
cost_analysis_normal_cluster_daily.toml: |
enable_multiple_worker = true
[datahub]
address = "alameda-datahub:50050"
[datahub."retry-interval"]
default = 3 # second
[fedemeter]
url = "http://fedemeter-api:8888/fedemeter-api/v1"
username = ""
password = ""
task = "calculate_instance,recommendation_cost_node,recommendation_cost_cluster,cost_node_analysis,cost_cluster_analysis,cost_allocations_node,cost_allocations_cluster,recommendations_scaling"
timeout = 300 # seconds
[cost_analysis]
calculate_current = true
calculate_current_unit = "month"
[recommendation]
ri = true
granularity = "3600" # daily: 3600, weekly: 21600, monthly: 86400
fill_days = "1" # daily: 1, weekly: 7, monthly: 31
cost_analysis_high_recommendation.toml: |
enable_multiple_worker = true
[datahub]
address = "alameda-datahub:50050"
[datahub."retry-interval"]
default = 3 # second
[fedemeter]
url = "http://fedemeter-api:8888/fedemeter-api/v1"
username = ""
password = ""
task = "recommendation"
timeout = 300 # seconds
[cost_analysis]
calculate_current = false
calculate_current_unit = "month"
[recommendation]
ri = true
granularity = "3600,21600,86400,604800" # daily: 3600, weekly: 21600, monthly: 86400, yearly: 604800
cost_analysis_normal_weekly.toml: |
enable_multiple_worker = true
[datahub]
address = "alameda-datahub:50050"
[datahub."retry-interval"]
default = 3 # second
[fedemeter]
url = "http://fedemeter-api:8888/fedemeter-api/v1"
username = ""
password = ""
task = "calculate_instance,recommendation_cost_app,recommendation_cost_namespace,recommendation_cost_node,recommendation_cost_cluster,cost_namespace_analysis,cost_node_analysis,cost_cluster_analysis,cost_allocations_application,cost_allocations_namespace,cost_allocations_node,cost_allocations_cluster,recommendations_scaling"
timeout = 300 # seconds
[cost_analysis]
calculate_current = false
calculate_current_unit = "month"
[recommendation]
ri = true
granularity = "21600" # daily: 3600, weekly: 21600, monthly: 86400
fill_days = "7" # daily: 1, weekly: 7, monthly: 31
cost_analysis_normal_monthly.toml: |
enable_multiple_worker = true
[datahub]
address = "alameda-datahub:50050"
[datahub."retry-interval"]
default = 3 # second
[fedemeter]
url = "http://fedemeter-api:8888/fedemeter-api/v1"
username = ""
password = ""
task = "calculate_instance,recommendation_cost_app,recommendation_cost_namespace,recommendation_cost_node,recommendation_cost_cluster,cost_namespace_analysis,cost_node_analysis,cost_cluster_analysis,cost_allocations_application,cost_allocations_namespace,cost_allocations_node,cost_allocations_cluster,recommendations_scaling"
timeout = 300 # seconds
[cost_analysis]
calculate_current = false
calculate_current_unit = "month"
[recommendation]
ri = true
granularity = "86400" # daily: 3600, weekly: 21600, monthly: 86400
fill_days = "31" # daily: 1, weekly: 7, monthly: 31
cost_analysis_normal_yearly.toml: |
enable_multiple_worker = true
[datahub]
address = "alameda-datahub:50050"
[datahub."retry-interval"]
default = 3 # second
[fedemeter]
url = "http://fedemeter-api:8888/fedemeter-api/v1"
username = ""
password = ""
task = "calculate_instance,recommendation_cost_app,recommendation_cost_namespace,recommendation_cost_node,recommendation_cost_cluster,cost_namespace_analysis,cost_node_analysis,cost_cluster_analysis,cost_allocations_application,cost_allocations_namespace,cost_allocations_node,cost_allocations_cluster,recommendations_scaling"
timeout = 300 # seconds
[cost_analysis]
calculate_current = false
calculate_current_unit = "month"
[recommendation]
ri = true
granularity = "604800" # daily: 3600, weekly: 21600, monthly: 86400, yearly: 604800
fill_days = "52" # daily: 1, weekly: 7, monthly: 31, yearly: 52
kind: ConfigMap
metadata:
annotations:
{{- if .Values.global.commonAnnotations }}
{{- include "render-value" ( dict "value" .Values.global.commonAnnotations "context" .) | nindent 4 }}
{{- end }}
labels:
{{- if .Values.global.commonLabels }}
{{- include "render-value" ( dict "value" .Values.global.commonLabels "context" .) | nindent 4 }}
{{- end }}
app.kubernetes.io/part-of: federatorai
app: alameda
name: federatorai-agent-config
namespace: {{ .Release.Namespace }}