Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactoring current metrics exporter implementation #355

Merged
merged 1 commit into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.4.0", features = ["rustls"] }
Expand Down
File renamed without changes.
Loading