Skip to content

HealthPartners/prom-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prom-Go

Go Report Card MIT License

A go helper library that contains the alert struct for prometheus alerts

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

  • golang
yum/apt-get/brew install go

Installing

Import the library into your go application

import (
	"github.com/HealthPartnersOSS/prom-go"
)

Use the struct to create a new AlertGroup, or parse a message into the struct

alertGroup := prometheus.AlertGroup{
    Version:        "1.2.3",
	GroupKey:       "my-group",
	Status:         "resolved",
	Receiver:       "my-receiver",
	ExternalURL:    "http://example.com",
}

b := []byte(j)

var m prometheus.AlertGroup
err := json.Unmarshal(b, &m)

Built With

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

A go helper library that contains the alert struct for prometheus alerts

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages