Skip to content

Commit

Permalink
Rename archives metric and update dashboard,linter
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunak_deshmukh committed Sep 19, 2022
1 parent 0fc0005 commit ed9de69
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions charts/fission-all/dashboards/.lint
Expand Up @@ -8,6 +8,4 @@ exclusions:
target-instance-rule:
reason: "Most panels dont need to be filtered by instance"
panel-units-rule:
reason: "Some panels are using the 'number' unit which throws a linting error."
target-counter-agg-rule:
reason: "disabled for fission_archives_total. This metric should be not have total due to naming conventions as its a gauge, not a counter"
reason: "Some panels are using the 'number' unit which throws a linting error."
4 changes: 2 additions & 2 deletions charts/fission-all/dashboards/fission-admin-dashboard.json
Expand Up @@ -879,7 +879,7 @@
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "fission_archives_total",
"expr": "fission_archives",
"legendFormat": "Namespace: {{namespace}} Pod: {{pod}}",
"range": true,
"refId": "A"
Expand Down Expand Up @@ -970,7 +970,7 @@
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "rate(fission_archives_total[$__rate_interval])",
"expr": "rate(fission_archives[$__rate_interval])",
"legendFormat": "Namespace: {{namespace}} Pod: {{pod}}",
"range": true,
"refId": "A"
Expand Down
2 changes: 1 addition & 1 deletion pkg/storagesvc/metrics.go
Expand Up @@ -9,7 +9,7 @@ var (
functionLabels = []string{}
totalArchives = promauto.NewGaugeVec(
prometheus.GaugeOpts{
Name: "fission_archives_total",
Name: "fission_archives",
Help: "Number of archives stored",
},
functionLabels,
Expand Down

0 comments on commit ed9de69

Please sign in to comment.