Opsgenie Exporter is a Prometheus exporter for sourcing metrics from Opsgenie. It aims to provide real-time insights into Opsgenie's data such as users, teams, integrations, and heartbeats. This tool is designed to help teams monitor their Opsgenie configuration and operation statuses directly from a Prometheus setup.
To install Opsgenie Exporter, you will need to clone this repository and build the binary from source. Ensure you have Go installed on your system.
git clone https://github.com/jsedy7/opsgenie-exporter.git
cd opsgenie-exporter
go build -o opsgenie-exporter .
Run the exporter using the following command:
./opsgenie-exporter
By default, the exporter runs on port 8080 and updates metrics every 600 seconds. These settings can be customized using command-line flags.
--http.port
: Specifies the port on which the exporter server runs. Default is8080
.--refresh
: Sets the interval for metrics update in seconds. Default is600
.
Example usage with flags:
./opsgenie-exporter --http.port=9090 --refresh=300
This command runs the exporter on port 9090 and updates metrics every 5 minutes.
The Opsgenie Exporter requires an Opsgenie API key for fetching data. Set your Opsgenie API key as an environment variable:
export OPSGENIE_API_KEY='your_opsgenie_api_key_here'
Ensure this environment variable is set before running the exporter.
Go to metrics documentation.
Contributions to the Opsgenie Exporter are welcome and appreciated. Here are ways you can contribute:
- Submit bugs and feature requests.
- Review the source code and improve code quality.
- Add new features or enhance existing ones.
- Fork the repository.
- Create a new branch for your feature or fix.
- Commit your changes with meaningful commit messages.
- Push your branch and submit a pull request against the main branch.
This project is licensed under the MIT License - see the LICENSE file for details.