You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
apiVersion: apps/v1
kind: Deployment
metadata:
name: emqx-exporter
labels:
app: emqx-exporter
spec:
selector:
matchLabels:
app: emqx-exporter
replicas: 1
template:
metadata:
labels:
app: emqx-exporter
spec:
securityContext:
runAsUser: 1000
containers:
- name: exporter
image: emqx-exporter:latest
imagePullPolicy: IfNotPresent
args:
# "emqx-dashboard-service-name" is the service name that creating by operator for exposing 18083 port
- --emqx.nodes=${emqx-dashboard-service-name}:18083
- --emqx.auth-username=${paste_your_new_api_key_here}
- --emqx.auth-password=${paste_your_new_secret_here}
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
ports:
- containerPort: 8085
name: metrics
protocol: TCP
resources:
limits:
cpu: 100m
memory: 100Mi
requests:
cpu: 100m
memory: 20Mi
After applying the yaml the pods are not coming in running state :
k logs pod/emqx-exporter-697f97866-zmvx6
emqx-exporter: error: unknown long flag '--emqx.nodes', try --help
royn2@W1164RNGY3:~$ k logs pod/emqx-exporter-7955d74bdb-9whrw
Error from server (BadRequest): container "exporter" in pod "emqx-exporter-7955d74bdb-9whrw" is waiting to start: trying and failing to pull image
The text was updated successfully, but these errors were encountered:
Hi,
I am unable to run emqx-exporter on my Kind cluster.
I am following https://docs.emqx.com/en/emqx-operator/latest/tasks/configure-emqx-prometheus.html to deploy.
I have configured the following yaml with emqx-dashboard service name , api key and secret.
apiVersion: v1
kind: Service
metadata:
labels:
app: emqx-exporter
name: emqx-exporter-service
spec:
ports:
- name: metrics
port: 8085
targetPort: metrics
selector:
app: emqx-exporter
apiVersion: apps/v1
kind: Deployment
metadata:
name: emqx-exporter
labels:
app: emqx-exporter
spec:
selector:
matchLabels:
app: emqx-exporter
replicas: 1
template:
metadata:
labels:
app: emqx-exporter
spec:
securityContext:
runAsUser: 1000
containers:
- name: exporter
image: emqx-exporter:latest
imagePullPolicy: IfNotPresent
args:
# "emqx-dashboard-service-name" is the service name that creating by operator for exposing 18083 port
- --emqx.nodes=${emqx-dashboard-service-name}:18083
- --emqx.auth-username=${paste_your_new_api_key_here}
- --emqx.auth-password=${paste_your_new_secret_here}
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
ports:
- containerPort: 8085
name: metrics
protocol: TCP
resources:
limits:
cpu: 100m
memory: 100Mi
requests:
cpu: 100m
memory: 20Mi
After applying the yaml the pods are not coming in running state :
k logs pod/emqx-exporter-697f97866-zmvx6
emqx-exporter: error: unknown long flag '--emqx.nodes', try --help
royn2@W1164RNGY3:~$ k logs pod/emqx-exporter-7955d74bdb-9whrw
Error from server (BadRequest): container "exporter" in pod "emqx-exporter-7955d74bdb-9whrw" is waiting to start: trying and failing to pull image
The text was updated successfully, but these errors were encountered: