Skip to content

Commit

Permalink
fixed templating errors
Browse files Browse the repository at this point in the history
  • Loading branch information
christianhuth committed Oct 15, 2024
1 parent 3bcb029 commit 49eb814
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion charts/argocd-metrics-server/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: argocd-metrics-server
description: A Helm chart for running a defragmentation CronJob for ETCD
description: A Helm chart for installing the Argo CD Metrics Server, which connects to Prometheus and displays Metrics in the Argo CD UI
type: application
version: 0.0.1
appVersion: "v1.0.3"
Expand Down
4 changes: 2 additions & 2 deletions charts/argocd-metrics-server/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# argocd-metrics-server

A Helm chart for running a defragmentation CronJob for ETCD
A Helm chart for installing the Argo CD Metrics Server, which connects to Prometheus and displays Metrics in the Argo CD UI

## TL;DR;

Expand Down Expand Up @@ -76,7 +76,7 @@ The command removes all the Kubernetes components associated with the chart and
| resources | object | `{"requests":{"cpu":"100m","memory":"100Mi"}}` | Resource limits and requests for the controller pods. |
| revisionHistoryLimit | int | `0` | The number of old ReplicaSets to retain |
| securityContext | object | `{}` | container-level security context |
| service.port | int | `3000` | Kubernetes port where service is exposed |
| service.port | int | `9003` | Kubernetes port where service is exposed |
| service.type | string | `"ClusterIP"` | Kubernetes service type |
| serviceAccount.annotations | object | `{}` | Annotations to add to the service account |
| serviceAccount.create | bool | `true` | Specifies whether a service account should be created |
Expand Down
16 changes: 8 additions & 8 deletions charts/argocd-metrics-server/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ data:
"description": "",
"graphType": "line",
"metricName": "pod_template_hash",
"queryExpression": "sum(rate(http_server_requests_seconds_sum {namespace=\"{{.namespace}}\", status=\"200\"} [1m])) by (pod_template_hash)"
"queryExpression": "sum(rate(http_server_requests_seconds_sum {namespace=\"{{"{{"}}.namespace{{"}}"}}\", status=\"200\"} [1m])) by (pod_template_hash)"
}
]
},
Expand All @@ -129,15 +129,15 @@ data:
"description": "",
"graphType": "line",
"metricName": "pod_template_hash",
"queryExpression": "sum(rate(http_server_requests_seconds_count {namespace=\"{{.namespace}}\", status=\"500\"} [1m])) by (pod_template_hash)"
"queryExpression": "sum(rate(http_server_requests_seconds_count {namespace=\"{{"{{"}}.namespace{{"}}"}}\", status=\"500\"} [1m])) by (pod_template_hash)"
},
{
"name": "http_error_rate_400",
"title": "HTTP Error 400",
"description": "",
"graphType": "line",
"metricName": "pod_template_hash",
"queryExpression": "sum(rate(http_server_requests_seconds_count {namespace=\"{{.namespace}}\", status=\"404\"} [1m])) by (pod_template_hash)"
"queryExpression": "sum(rate(http_server_requests_seconds_count {namespace=\"{{"{{"}}.namespace{{"}}"}}\", status=\"404\"} [1m])) by (pod_template_hash)"
}
]
},
Expand All @@ -152,7 +152,7 @@ data:
"description": "",
"graphType": "line",
"metricName": "pod_template_hash",
"queryExpression": "sum(rate(http_server_requests_seconds_count {namespace=\"{{.namespace}}\"} [1m])) by (pod_template_hash)"
"queryExpression": "sum(rate(http_server_requests_seconds_count {namespace=\"{{"{{"}}.namespace{{"}}"}}\"} [1m])) by (pod_template_hash)"
}
]
},
Expand Down Expand Up @@ -212,7 +212,7 @@ data:
"description": "",
"graphType": "line",
"metricName": "rollout_template_hash",
"queryExpression": "sum(rate(http_server_requests_seconds_sum {namespace=\"{{.namespace}}\", status=\"200\"} [1m])) by (rollout_template_hash)"
"queryExpression": "sum(rate(http_server_requests_seconds_sum {namespace=\"{{"{{"}}.namespace{{"}}"}}\", status=\"200\"} [1m])) by (rollout_template_hash)"
}
]
},
Expand All @@ -227,15 +227,15 @@ data:
"description": "",
"graphType": "line",
"metricName": "rollout_template_hash",
"queryExpression": "sum(rate(http_server_requests_seconds_count {namespace=\"{{.namespace}}\", status=\"500\"} [1m])) by (rollout_template_hash)"
"queryExpression": "sum(rate(http_server_requests_seconds_count {namespace=\"{{"{{"}}.namespace{{"}}"}}\", status=\"500\"} [1m])) by (rollout_template_hash)"
},
{
"name": "http_error_rate_400",
"title": "HTTP Error 400",
"description": "",
"graphType": "line",
"metricName": "rollout_template_hash",
"queryExpression": "sum(rate(http_server_requests_seconds_count {namespace=\"{{.namespace}}\", status=\"404\"} [1m])) by (rollout_template_hash)"
"queryExpression": "sum(rate(http_server_requests_seconds_count {namespace=\"{{"{{"}}.namespace{{"}}"}}\", status=\"404\"} [1m])) by (rollout_template_hash)"
}
]
},
Expand All @@ -250,7 +250,7 @@ data:
"description": "",
"graphType": "line",
"metricName": "rollout_template_hash",
"queryExpression": "sum(rate(http_server_requests_seconds_count {namespace=\"{{.namespace}}\"} [1m])) by (rollout_template_hash)"
"queryExpression": "sum(rate(http_server_requests_seconds_count {namespace=\"{{"{{"}}.namespace{{"}}"}}\"} [1m])) by (rollout_template_hash)"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion charts/argocd-metrics-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ service:
# -- Kubernetes service type
type: ClusterIP
# -- Kubernetes port where service is exposed
port: 3000
port: 9003

serviceAccount:
# -- Specifies whether a service account should be created
Expand Down

0 comments on commit 49eb814

Please sign in to comment.