Skip to content

Commit

Permalink
docs: specify ServiceMonitor requirements in values.yaml (apache#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zebradil authored Sep 30, 2023
1 parent d48f244 commit be31a91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/apisix-ingress-controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ The same for container level, you need to set:
| serviceAccount.automountServiceAccountToken | bool | `true` | Whether automounting API credentials for a service account |
| serviceAccount.create | bool | `true` | Specifies whether a ServiceAccount should be created |
| serviceAccount.name | string | `""` | The name of the ServiceAccount to use. If not set and create is true, a name is generated using the fullname template |
| serviceMonitor | object | `{"annotations":{},"enabled":false,"interval":"15s","labels":{},"metricRelabelings":{},"namespace":"monitoring"}` | namespace: "ingress-apisix" |
| serviceMonitor | object | `{"annotations":{},"enabled":false,"interval":"15s","labels":{},"metricRelabelings":{},"namespace":"monitoring"}` | Enable creating ServiceMonitor objects for Prometheus operator. Requires Prometheus operator v0.38.0 or higher. |
| serviceMonitor.annotations | object | `{}` | @param serviceMonitor.annotations ServiceMonitor annotations |
| serviceMonitor.labels | object | `{}` | @param serviceMonitor.labels ServiceMonitor extra labels |
| serviceMonitor.metricRelabelings | object | `{}` | @param serviceMonitor.metricRelabelings MetricRelabelConfigs to apply to samples before ingestion. ref: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs |
Expand Down
4 changes: 3 additions & 1 deletion charts/apisix-ingress-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,10 @@ affinity: {}
# ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
topologySpreadConstraints: []

# -- namespace: "ingress-apisix"
# namespace: "ingress-apisix"

# -- Enable creating ServiceMonitor objects for Prometheus operator.
# Requires Prometheus operator v0.38.0 or higher.
serviceMonitor:
enabled: false
namespace: "monitoring"
Expand Down

0 comments on commit be31a91

Please sign in to comment.