Skip to content

Commit

Permalink
chore(metrics-exporter): refactoring current implementation
Browse files Browse the repository at this point in the history
Signed-off-by: Abhilash Shetty <[email protected]>
  • Loading branch information
abhilashshetty04 committed Oct 12, 2023
1 parent 3d2390e commit 2b08511
Show file tree
Hide file tree
Showing 26 changed files with 440 additions and 393 deletions.
44 changes: 22 additions & 22 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
members = [
"call-home",
"console-logger",
"exporter",
"metrics-exporter",
"k8s/plugin",
"k8s/proxy",
"k8s/supportability",
Expand Down
6 changes: 2 additions & 4 deletions chart/templates/mayastor/io/io-engine-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ spec:
{{- include "base_init_containers" . }}
containers:
{{- if .Values.base.metrics.enabled }}
- name: metrics-exporter-pool
image: "{{ .Values.image.registry }}/{{ .Values.image.repo }}/{{ .Chart.Name }}-metrics-exporter-pool:{{ default .Values.image.tag .Values.image.repoTags.extensions }}"
- name: metrics-exporter-io-engine
image: "{{ .Values.image.registry }}/{{ .Values.image.repo }}/{{ .Chart.Name }}-metrics-exporter-io-engine:{{ default .Values.image.tag .Values.image.repoTags.extensions }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: MY_NODE_NAME
Expand All @@ -53,8 +53,6 @@ spec:
args:
- "-p{{ .Values.base.metrics.pollingInterval }}"
- "--api-versions={{ .Values.io_engine.api }}"
command:
- metrics-exporter-pool
ports:
- containerPort: 9502
protocol: TCP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-metrics-exporter-pool
name: {{ .Release.Name }}-metrics-exporter-io-engine
labels:
app: metrics-exporter-pool
app: metrics-exporter-io-engine
{{ include "label_prefix" . }}/release: {{ .Release.Name }}
{{ include "label_prefix" . }}/version: {{ .Chart.Version }}
spec:
Expand Down
2 changes: 0 additions & 2 deletions exporter/src/lib.rs

This file was deleted.

147 changes: 0 additions & 147 deletions exporter/src/pool/bin/main.rs

This file was deleted.

111 changes: 0 additions & 111 deletions exporter/src/pool/cache.rs

This file was deleted.

10 changes: 0 additions & 10 deletions exporter/src/pool/mod.rs

This file was deleted.

7 changes: 4 additions & 3 deletions exporter/Cargo.toml → metrics-exporter/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
[package]
name = "exporter"
name = "metrics-exporter"
description = "Metrics Exporters"
version = "0.1.0"
edition = "2021"
authors = ["Sahil Raja <[email protected]>"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[bin]]
name = "metrics-exporter-pool"
path = "src/pool/bin/main.rs"
name = "metrics-exporter-io-engine"
path = "src/bin/io_engine/main.rs"


[dependencies]
actix-web = { version = "4.3.1", features = ["rustls"] }
Expand Down
File renamed without changes.
Loading

0 comments on commit 2b08511

Please sign in to comment.