Documentation ¶
Overview ¶
Copyright © 2020 Christian González Di Antonio christian@slashdevops.com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
func New ¶
func New(c *config.All, m metrics.Metrics, cwc *cloudwatch.CloudWatch) *Collector
func (*Collector) Collect ¶
func (c *Collector) Collect(ch chan<- prometheus.Metric)
Implements prometheus.Collector Interface
func (*Collector) Describe ¶
func (c *Collector) Describe(ch chan<- *prometheus.Desc)
Implements prometheus.Collector Interface
type OwnMetrics ¶
type OwnMetrics struct { Up prometheus.Gauge Info prometheus.Gauge MetricsTotal prometheus.Gauge ScrapesSuccess prometheus.Counter ScrapesErrors prometheus.Counter ScrapesMessages prometheus.Counter MetricsScrapesSuccess prometheus.Counter MetricsScrapesErrors prometheus.Counter MetricsScrapesEmpty prometheus.Counter MetricsScrapesMessages prometheus.Counter }