Linking the Flogo App to the Flogo Enterprise Monitoring Application
- Link the Flogo Monitoring Deployment to the service account created in the previous steps. See the sample deployment YAML.
- In the Flogo Monitoring Deployment YAML, provide the
FLOGO_APP_SELECTOR
label with a value as a key-value pair. For example,appType=flogo
.Note: All Flogo apps which are required to be linked with the Flogo Enterprise Monitoring app must specify this label.
Sample YAML file for Deployment
Deployment
apiVersion: apps/v1 kind: Deployment metadata: name: flogo-mon-service spec: selector: matchLabels: app: flogo-mon-service replicas: 1 template: metadata: labels: app: flogo-mon-service spec: containers: - name: flogo-mon-service image: flogomon:v1 imagePullPolicy: Never env: - name: "FLOGO_APP_SELECTOR" value: "appType=flogo" ports: - containerPort: 7337 serviceAccountName: flogo-mon-service-account