Skip to content

Commit

Permalink
Add Service to metrics-exporter (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
bueti authored Aug 3, 2023
1 parent 97ca203 commit 6257644
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/metrics-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: metrics-exporter
version: 1.1.1
version: 1.1.2
appVersion: "0.5"
description: This Chart installs and configures agnostic metrics exporter for
sql servers
Expand All @@ -14,7 +14,7 @@ keywords:
- sql_server
annotations:
artifacthub.io/changes: |
- [internal] New Build Process
- Added Service
artifacthub.io/images: |
- name: free/sql_exporter
image: githubfree/sql_exporter:0.5
2 changes: 1 addition & 1 deletion charts/metrics-exporter/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# metrics-exporter

![Version: 1.1.1](https://img.shields.io/badge/Version-1.1.1-informational?style=flat-square) ![AppVersion: 0.5](https://img.shields.io/badge/AppVersion-0.5-informational?style=flat-square) ![Release Status](https://github.com/ricardo-ch/helm-charts/workflows/Release%20Charts/badge.svg) [![License](https://img.shields.io/github/license/ricardo-ch/helm-charts)](https://github.com/ricardo-ch/helm-charts/blob/main/LICENSE)
![Version: 1.1.2](https://img.shields.io/badge/Version-1.1.2-informational?style=flat-square) ![AppVersion: 0.5](https://img.shields.io/badge/AppVersion-0.5-informational?style=flat-square) ![Release Status](https://github.com/ricardo-ch/helm-charts/workflows/Release%20Charts/badge.svg) [![License](https://img.shields.io/github/license/ricardo-ch/helm-charts)](https://github.com/ricardo-ch/helm-charts/blob/main/LICENSE)

This chart installs [the DBMS agnostic metrics exporter](https://github.com/free/sql_exporter) based on SQL queries.

Expand Down
19 changes: 19 additions & 0 deletions charts/metrics-exporter/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: v1
kind: Service
metadata:
name: {{ template "sqlserver-prometheus-exporter.fullname" . }}
labels:
app: {{ template "sqlserver-prometheus-exporter.name" . }}
chart: {{ template "sqlserver-prometheus-exporter.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
ports:
- name: http
port: {{ .Values.service.port }}
protocol: TCP
targetPort: 9399
selector:
{{- include "sqlserver-prometheus-exporter.selectorLabels" . | nindent 4 }}
sessionAffinity: None
type: {{ .Values.service.type }}

0 comments on commit 6257644

Please sign in to comment.