Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/damoun/template_exporter
Github Template for Prometheus exporter
https://github.com/damoun/template_exporter
Last synced: about 1 month ago
JSON representation
Github Template for Prometheus exporter
- Host: GitHub
- URL: https://github.com/damoun/template_exporter
- Owner: damoun
- License: mit
- Created: 2019-10-11T15:23:12.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-01T05:45:30.000Z (7 months ago)
- Last Synced: 2024-06-19T14:50:56.122Z (6 months ago)
- Language: Go
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Template Exporter
[![CircleCI](https://circleci.com/gh/damoun/template_exporter/tree/master.svg?style=shield)][circleci]
[![Docker Pulls](https://img.shields.io/docker/pulls/damoun/template-exporter.svg?maxAge=604800)][hub]
[![Go Report Card](https://goreportcard.com/badge/github.com/damoun/template_exporter)][goreportcard]Github Template for [Prometheus](https://github.com/prometheus/prometheus) metrics Exporter.
To run it:
```bash
make
./template_exporter [flags]
```## Exported Metrics
| Metric | Meaning | Labels |
| ------ | ------- | ------ |### Flags
```bash
./template_exporter --help
```* __`log.format`:__ Set the log target and format. Example: `logger:syslog?appname=bob&local=7`
or `logger:stdout?json=true`
* __`log.level`:__ Logging level. `info` by default.
* __`version`:__ Show application version.
* __`web.listen-address`:__ Address to listen on for web interface and telemetry.
* __`web.telemetry-path`:__ Path under which to expose metrics.## Useful Queries
TODO
## Using Docker
You can deploy this exporter using the [damoun/template-exporter](https://hub.docker.com/r/damoun/template-exporter/) Docker image.
For example:
```bash
docker pull damoun/template-exporterdocker run -d -p 9184:9184 \
damoun/template-exporter
```[circleci]: https://circleci.com/gh/damoun/template_exporter
[hub]: https://hub.docker.com/r/damoun/template-exporter/
[goreportcard]: https://goreportcard.com/report/github.com/damoun/template_exporter