Skip to content

Commit

Permalink
fix k8s deployment
Browse files Browse the repository at this point in the history
fix: query may disapper after deploy
  • Loading branch information
rzrbld committed Apr 14, 2020
1 parent 48b6d58 commit 3dcadcb
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions k8s/Deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,22 @@ spec:
- name: ZE3000_METRIC_HELP
value: "description"
- name: ZE3000_ZABBIX_REFRESH_DELAY_SEC
value: 20
value: "20"
- name: ZE3000_ZABBIX_METRIC_LABELS
value: "itemid,key_,hosts>host,hosts>name,interfaces>ip,interface>dns"
- name: ZE3000_HOST_PORT
value: 0.0.0.0:8080
- name: ZE3000_ZABBIX_QUERY
value: '{"jsonrpc": "2.0","method": "item.get","params": {"application":"My Super Application","output": ["itemid","key_","description","lastvalue"],"selectDependencies": "extend","selectHosts": ["name","status","host"],"selectInterfaces": ["ip","dns"],"sortfield":"key_"},"auth": "%auth-token%","id": 1 }'
value: >-
{"jsonrpc":"2.0",
"method":"item.get",
"params":{"application":"My Super Application",
"output":["itemid","key_","description","lastvalue"],
"selectDependencies":"extend",
"selectHosts":["name","status","host"],
"selectInterfaces":["ip","dns"],
"sortfield":"key_"},
"auth":"%auth-token%",
"id":1}
ports:
- containerPort: 8080

0 comments on commit 3dcadcb

Please sign in to comment.