Skip to content

Commit

Permalink
updated metrics target (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
paiusCatalin authored Dec 13, 2022
1 parent 23fce9b commit ced3d3c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion charts/prometheus/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.1
version: 0.0.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
8 changes: 4 additions & 4 deletions charts/prometheus/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# prometheus

![Version: 0.0.1](https://img.shields.io/badge/Version-0.0.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.1](https://img.shields.io/badge/AppVersion-0.0.1-informational?style=flat-square)
![Version: 0.0.2](https://img.shields.io/badge/Version-0.0.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.1](https://img.shields.io/badge/AppVersion-0.0.1-informational?style=flat-square)

A Helm chart for Prometheus

Expand Down Expand Up @@ -34,7 +34,7 @@ It is recommended to put non-sensitive configuration values in a configuration f
2. Install via helm to namespace `default`

```bash
helm upgrade my-release-name pharmaledger-imi/prometheus --version=0.0.1 \
helm upgrade my-release-name pharmaledger-imi/prometheus --version=0.0.2 \
--install \
--values my-values.yaml \
```
Expand All @@ -48,7 +48,7 @@ Run `helm upgrade --helm` for full list of options.
You can install into other namespace than `default` by setting the `--namespace` parameter, e.g.

```bash
helm upgrade my-release-name pharmaledger-imi/prometheus --version=0.0.1 \
helm upgrade my-release-name pharmaledger-imi/prometheus --version=0.0.2 \
--install \
--namespace=my-namespace \
--values my-values.yaml \
Expand All @@ -59,7 +59,7 @@ Run `helm upgrade --helm` for full list of options.
Provide the `--wait` argument and time to wait (default is 5 minutes) via `--timeout`

```bash
helm upgrade my-release-name pharmaledger-imi/prometheus --version=0.0.1 \
helm upgrade my-release-name pharmaledger-imi/prometheus --version=0.0.2 \
--install \
--wait --timeout=600s \
--values my-values.yaml \
Expand Down
9 changes: 1 addition & 8 deletions charts/prometheus/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@ data:
type: "governance-metrics"
scrape_configs:
- job_name: "live-metrics"
params:
mode: [ "live" ]
static_configs:
- targets: [ "{{ .Values.configMap.serviceName }}:{{ .Values.configMap.servicePort }}" ]
- job_name: "static-metrics"
params:
mode: [ "static" ]
- job_name: "metrics"
static_configs:
- targets: [ "{{ .Values.configMap.serviceName }}:{{ .Values.configMap.servicePort }}" ]

0 comments on commit ced3d3c

Please sign in to comment.