gcp-status-exporter

command module
v0.0.0-...-4140444 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README

GCP Status Exporter

An exporter to get metrics for availability status of GCP services and observe the incident impacts in GCP environments.

Note: This is a work in progress. Contributions are welcome.

Approach

Components

  • Opentelemetry library is used for creating metrics.
  • logrus for structured logging.
  • cobra for creating a CLI application.

Metrics

List of metrics created by this exporter is listed here along with the description.

Building the Exporter

$ git clone https://github.com/ishantanu/gcp-status-exporter
$ go build -o gcp-status-exporter
$ ./gcp-status-exporter start -e https://status.cloud.google.com/incidents.json

Running the Exporter

$ go run main.go start -e https://status.cloud.google.com/incidents.json

Visit http://localhost:8888 for metrics.

Adding gcp-status-exporter config to Prometheus

Add the below block to prometheus config to start scraping the metrics

scrape_configs:
    - job_name: 'gcp-status-exporter'

    static_configs:
    - targets: ['<gcp-status-exporter>:8888']

Documentation

Overview

Copyright © 2021 NAME HERE <EMAIL ADDRESS>

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.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL