Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nicolastakashi/cole
Cole can use his sixth sense to give you metrics about your Grafana dashboards
https://github.com/nicolastakashi/cole
grafana kubernetes prometheus
Last synced: about 1 month ago
JSON representation
Cole can use his sixth sense to give you metrics about your Grafana dashboards
- Host: GitHub
- URL: https://github.com/nicolastakashi/cole
- Owner: nicolastakashi
- License: apache-2.0
- Created: 2021-12-18T10:12:24.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-18T16:26:07.000Z (over 1 year ago)
- Last Synced: 2024-11-14T13:22:30.772Z (about 1 month ago)
- Topics: grafana, kubernetes, prometheus
- Language: Go
- Homepage:
- Size: 5.58 MB
- Stars: 41
- Watchers: 2
- Forks: 4
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/cole)](https://artifacthub.io/packages/search?repo=cole)
[![Build](https://github.com/nicolastakashi/cole/actions/workflows/docker-publish.yml/badge.svg?event=branch_protection_rule)](https://github.com/nicolastakashi/cole/actions/workflows/docker-publish.yml)# Cole
Cole can use his sixth sense to give you metrics about your Grafana dashboards## Overview
Cole is a lightweight service that handles HTTP logs of Grafana to provide insights about the usage of Grafana instances and expose it through Prometheus metrics.
## Grafana router logging dependency
Cole uses its sixth sense by Grafana HTTP logs, and because of this, you need to enable the `router_logging` to log all HTTP requests (not just errors).For more information about router logging, please, check the [Grafana official documentation](https://grafana.com/docs/grafana/latest/administration/configuration/#router_logging).
## Metrics Documentation
See the [docs](./docs/README.md) directory for more information on the exposed metrics.
## Contributing
Contributions are very welcome! See our [CONTRIBUTING.md](CONTRIBUTING.md) for more information.## Docker images
Docker images are available on [Docker Hub](https://hub.docker.com/r/ntakashi/cole).
## Building from source
To build Cole from source code, first ensure that you have a working
Go environment with [version 1.16 or greater installed](https://golang.org/doc/install).To build the source code you can use the `make build`, which will compile in
the assets so that Cole can be run from anywhere:```bash
$ mkdir -p $GOPATH/src/github.com/nicolastakashi/cole
$ cd $GOPATH/src/github.com/nicolastakashi/cole
$ git clone https://github.com/nicolastakashi/cole.git
$ cd cole
$ make build
$ ./cole server
```The Makefile provides several targets:
* *build*: build the `cole`
* *fmt*: format the source code
* *vet*: check the source code for common errors
* *tests*: run unit tests