Skip to content

Commit

Permalink
Rename prometheus indices
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Blaschke <[email protected]>
  • Loading branch information
mblaschke committed Mar 4, 2020
1 parent 9a5c6e0 commit b9f7ffe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ Metrics

| Metric | Description |
|----------------------------------------------|--------------------------------------------------------------------|
| `pagerduty2es_incident_counter` | Total number of processed incidents |
| `pagerduty2es_incident_logentry_counter` | Total number of processed logentries |
| `pagerduty2es_incident_total` | Total number of processed incidents |
| `pagerduty2es_incident_logentry_total` | Total number of processed logentries |
| `pagerduty2es_duration` | Scrape process duration |
| `pagerduty2es_elasticsearch_requet_total` | Number of total requests to ElasticSearch cluster |
| `pagerduty2es_elasticsearch_request_retries` | Number of retried requests to ElasticSearch cluster |
4 changes: 2 additions & 2 deletions exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ func (e *PagerdutyElasticsearchExporter) Init() {

e.prometheus.incident = prometheus.NewCounterVec(
prometheus.CounterOpts{
Name: "pagerduty2es_incident_counter",
Name: "pagerduty2es_incident_total",
Help: "PagerDuty2es incident counter",
},
[]string{},
)

e.prometheus.incidentLogEntry = prometheus.NewCounterVec(
prometheus.CounterOpts{
Name: "pagerduty2es_incident_logentry_counter",
Name: "pagerduty2es_incident_logentry_total",
Help: "PagerDuty2es incident logentry counter",
},
[]string{},
Expand Down

0 comments on commit b9f7ffe

Please sign in to comment.