Skip to content

Commit 4e763df

Browse files
Harsh AroraHarsh Arora
authored andcommitted
updated version
1 parent a37e24c commit 4e763df

4 files changed

Lines changed: 14 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,7 @@ All notable changes to this project will be documented in this file.
3737
### Added
3838
- Added fix for lightweight-CPX not working with CME.
3939
- Updated pip requirements.
40+
41+
## [1.4.9] - 2021-10-05
42+
### Added
43+
- Added fix to handle ERROR message for lbvs added by CIC.

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,15 @@ For this:
100100
<summary>Usage as a Container</summary>
101101
<br>
102102

103-
In order to use the exporter as a container, the image ```quay.io/citrix/citrix-adc-metrics-exporter:1.4.8``` will need to be pulled using;
103+
In order to use the exporter as a container, the image ```quay.io/citrix/citrix-adc-metrics-exporter:1.4.9``` will need to be pulled using;
104104
```
105-
docker pull quay.io/citrix/citrix-adc-metrics-exporter:1.4.8
105+
docker pull quay.io/citrix/citrix-adc-metrics-exporter:1.4.9
106106
```
107107
**NOTE:** It can also be build locally using ```docker build -f Dockerfile -t <image_name>:<tag> ./```
108108

109109
Now, exporter can be run using:
110110
```
111-
docker run -dt -p <host_port>:<container_port> --mount type=bind,source=<host-path-for-config-file>,target=/exporter/config.yaml quay.io/citrix/citrix-adc-metrics-exporter:1.4.8 [flags] --config-file=/exporter/config.yaml
111+
docker run -dt -p <host_port>:<container_port> --mount type=bind,source=<host-path-for-config-file>,target=/exporter/config.yaml quay.io/citrix/citrix-adc-metrics-exporter:1.4.9 [flags] --config-file=/exporter/config.yaml
112112
```
113113
where the flags are:
114114

@@ -131,7 +131,7 @@ flag&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
131131

132132
To setup the exporter as given in the diagram, the following command can be used:
133133
```
134-
docker run -dt -p 8888:8888 --mount type=bind,source=/path/to/config.yaml,target=/exporter/config.yaml --name citrix-adc-exporter quay.io/citrix/citrix-adc-metrics-exporter:1.4.8 --target-nsip=10.0.0.1 --port=8888 --config-file=/exporter/config.yaml
134+
docker run -dt -p 8888:8888 --mount type=bind,source=/path/to/config.yaml,target=/exporter/config.yaml --name citrix-adc-exporter quay.io/citrix/citrix-adc-metrics-exporter:1.4.9 --target-nsip=10.0.0.1 --port=8888 --config-file=/exporter/config.yaml
135135
```
136136
This directs the exporter container to scrape the 10.0.0.1 IP, and the expose the stats it collects on port 8888.
137137

@@ -160,7 +160,7 @@ For this:
160160
Certificate should then be mounted at the '--cacert-path' provided. For instance, if cert is 'cacert.pem' and '--cacert-path' provided in 'config.yaml' is '/exporter/cacert.pem'
161161

162162
```
163-
docker run -dt -p 8888:8888 --mount type=bind,source=/path/to/config.yaml,target=/exporter/config.yaml --mount type=bind,source=/path/to/cacert.pem,target=/exporter/cacert.pem --name citrix-adc-exporter quay.io/citrix/citrix-adc-metrics-exporter:1.4.8 --target-nsip=10.0.0.1 --port=8888 --config-file=/exporter/config.yaml
163+
docker run -dt -p 8888:8888 --mount type=bind,source=/path/to/config.yaml,target=/exporter/config.yaml --mount type=bind,source=/path/to/cacert.pem,target=/exporter/cacert.pem --name citrix-adc-exporter quay.io/citrix/citrix-adc-metrics-exporter:1.4.9 --target-nsip=10.0.0.1 --port=8888 --config-file=/exporter/config.yaml
164164
```
165165
**NOTE:** If default port to connect with ADC is not 80/443 for HTTP/HTTPS respectively, then append --target-nsip with port. For instance, if port for ADC is 9080 then use: --target-nsip=10.0.0.1:9080
166166

@@ -191,7 +191,7 @@ metadata:
191191
spec:
192192
containers:
193193
- name: exporter
194-
image: quay.io/citrix/citrix-adc-metrics-exporter:1.4.8
194+
image: quay.io/citrix/citrix-adc-metrics-exporter:1.4.9
195195
args:
196196
- "--target-nsip=10.0.0.1"
197197
- "--port=8888"
@@ -270,7 +270,7 @@ metadata:
270270
spec:
271271
containers:
272272
- name: exporter
273-
image: quay.io/citrix/citrix-adc-metrics-exporter:1.4.8
273+
image: quay.io/citrix/citrix-adc-metrics-exporter:1.4.9
274274
args:
275275
- "--target-nsip=10.0.0.1"
276276
- "--port=8888"

exporter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,8 @@ def update_lbvs_label(self, label_values, lbvs_dict, log_prefix_match):
584584
0].split("-", 1)[0])
585585
# update lables only if prefix provided is same as CIC prefix used
586586
if cur_prefix == self.k8s_cic_prefix:
587+
if label_values[0] not in lbvs_dict:
588+
return False
587589
comments = lbvs_dict[label_values[0]]
588590
comments = comments.split(',')
589591
if comments[0].split(':')[0] == 'lbsvc':

version/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.4.8
1+
1.4.9

0 commit comments

Comments
 (0)