yujinchoi-94 commented on issue #488:
URL:
https://github.com/apache/apisix-helm-chart/issues/488#issuecomment-1447897364
@Gallardot
Yes, prometheus operator has been installed.
Here's my configuration for prometheus operator
```
kube-prometheus-stack:
fullnameOverride: "kube-prometheus-stack"
grafana:
service:
type: NodePort
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/scheme: internal
alb.ingress.kubernetes.io/certificate-arn: ***
alb.ingress.kubernetes.io/security-groups: 'common-internal-alb-sg'
alb.ingress.kubernetes.io/listen-ports: '[{"HTTPS": 443}]'
alb.ingress.kubernetes.io/healthcheck-path: /api/health
alb.ingress.kubernetes.io/success-codes: '200'
alb.ingress.kubernetes.io/backend-protocol: HTTP
hosts:
- ***
pathType: Prefix
path: /*
defaultDashboardsTimezone: Asia/Seoul
additionalDataSources:
- name: Thanos
type: prometheus
url: http://thanos-query-frontend.monitor:9090
uid: Thanos
- name: Thanos(auto-resolution)
type: prometheus
url: http://thanos-query-frontend.monitor:9090
uid: ThanosAutoResolution
jsonData:
customQueryParameters: max_source_resolution=auto
persistence:
enabled: true
type: pvc
size: 1Gi
storageClassName: efs
accessModes: ["ReadWriteOnce"]
plugins: []
kubeApiServer:
enabled: false
kubelet:
enabled: true
kubeControllerManager:
enabled: false
coreDns:
enabled: false
kubeEtcd:
enabled: false
kubeScheduler:
enabled: false
kubeProxy:
enabled: false
kubeStateMetrics:
enabled: true
nodeExporter:
enabled: false
prometheus:
serviceAccount:
create: true
name: "kube-prometheus-stack-prometheus"
annotations:
eks.amazonaws.com/role-arn: ***
thanosService:
enabled: true
thanosServiceMonitor:
enabled: true
prometheusSpec:
scrapeInterval: "1m"
scrapeTimeout: "5s"
configMaps:
- bucket
serviceMonitorSelector:
matchExpressions:
- {key: release, operator: In, values: [kube-prometheus-stack,
dev-kube-prometheus-stack]}
shards: 3
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: spec
operator: In
values:
- 4xlarge
storageSpec:
volumeClaimTemplate:
spec:
storageClassName: efs
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 50Gi
## Resource limits & requests
##
resources:
requests:
cpu: 8
memory: 8G
limits:
cpu: 8
memory: 8G
additionalScrapeConfigs:
###
thanos:
baseImage: quay.io/thanos/thanos
version: v0.30.1
objectStorageConfigFile:
/etc/prometheus/configmaps/bucket/bucket.yaml
volumeMounts:
- name: configmap-bucket # prometheus.prometheusSpec.configMaps
설정에 의해 등록된 volume 참조
mountPath: /etc/prometheus/configmaps/bucket
```
### Kubernetes Version
> ❯ kubectl version
WARNING: This version information is deprecated and will be replaced with
the output from kubectl version --short. Use --output=yaml|json to get the
full version.
Client Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.0",
GitCommit:"4ce5a8954017644c5420bae81d72b09b735c21f0", GitTreeState:"clean",
BuildDate:"2022-05-03T13:46:05Z", GoVersion:"go1.18.1", Compiler:"gc",
Platform:"linux/amd64"}
Kustomize Version: v4.5.4
Server Version: version.Info{Major:"1", Minor:"21+",
GitVersion:"v1.21.14-eks-ffeb93d",
GitCommit:"f76e2b475d1433cdb6bd546e9e8f129fde938fb7", GitTreeState:"clean",
BuildDate:"2022-11-29T18:41:00Z", GoVersion:"go1.16.15", Compiler:"gc",
Platform:"linux/amd64"}
(For your information, I've installed apisix and prometheus using argocd.)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]