Add nginx metrics to prometheus
This commit is contained in:
parent
81cd7782c6
commit
86dbf979cb
8 changed files with 477 additions and 17 deletions
|
|
@ -16,7 +16,9 @@ limitations under the License.
|
|||
|
||||
package controller
|
||||
|
||||
import "github.com/prometheus/client_golang/prometheus"
|
||||
import (
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
)
|
||||
|
||||
const (
|
||||
ns = "ingress_controller"
|
||||
|
|
@ -27,9 +29,6 @@ const (
|
|||
func init() {
|
||||
prometheus.MustRegister(reloadOperation)
|
||||
prometheus.MustRegister(reloadOperationErrors)
|
||||
|
||||
reloadOperationErrors.WithLabelValues(reloadLabel).Set(0)
|
||||
reloadOperation.WithLabelValues(reloadLabel).Set(0)
|
||||
}
|
||||
|
||||
var (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue