Skip to content

Commit

Permalink
refacto: rename metrics #39
Browse files Browse the repository at this point in the history
  • Loading branch information
jplanckeel authored Aug 10, 2022
2 parents eb96790 + f649291 commit 7cdb434
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ spec:
metrics:
- type: External
external:
metricName: "prescale_metric"
metricName: "prescaling_metric"
metricSelector:
matchLabels:
deployment: "{{ .Release.Name }}"
Expand All @@ -70,12 +70,12 @@ Here is a configuration example using the prometheus adapter to supply the metri
```
- "metricsQuery": "avg(<<.Series>>{<<.LabelMatchers>>})"
"name":
"as": "prescale_metric"
"as": "prescaling_metric"
"resources":
"overrides":
"namespace":
"resource": "namespace"
"seriesQuery": "prescale_metric"
"seriesQuery": "prescaling_metric"
```

## Configure parameters
Expand Down
4 changes: 2 additions & 2 deletions pkg/exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ type prescalingCollector struct {
func NewPrescalingCollector(p prescaling.IPrescaling) prometheus.Collector {
return &prescalingCollector{
prescaleMetrics: prometheus.NewDesc(
"prescale_metric",
"prescaling_metric",
"Number used for prescale application",
[]string{"project", "deployment", "namespace"},
nil,
), minMetrics: prometheus.NewDesc(
"min_replica",
"prescaling_min_replica",
"Number of pod desired for prescale",
[]string{"project", "deployment", "namespace"},
nil,
Expand Down

0 comments on commit 7cdb434

Please sign in to comment.