forked from ClickHouse/clickhouse_exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
dist: trusty | ||
sudo: required | ||
language: go | ||
|
||
go: | ||
- 1.8.x | ||
- master | ||
|
||
services: | ||
- docker | ||
|
||
before_script: | ||
- docker --version | ||
- docker-compose --version | ||
- docker-compose -f docker-compose.yml up -d | ||
|
||
script: | ||
- make init | ||
- make cover | ||
|
||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) -X fix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Contributing notes | ||
|
||
## Local setup | ||
|
||
The easiest way to make a local development setup is to use Docker Compose: `make env-run` on Linux. | ||
|
||
You can run ClickHouse client with `make clickhouse-client`. | ||
|
||
|
||
## Vendoring | ||
|
||
We use [dep](https://github.com/golang/dep) to vendor dependencies. Please use released version, i.e. do not `go get` | ||
from `master` branch. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
version: '3' | ||
services: | ||
prometheus: | ||
image: prom/prometheus:v2.0.0-beta.2 | ||
ports: | ||
- 127.0.0.1:9090:9090 | ||
network_mode: host | ||
volumes: | ||
- ./docker/prometheus:/etc/prometheus | ||
|
||
clickhouse: | ||
image: yandex/clickhouse-server | ||
ports: | ||
- 127.0.0.1:8123:8123 | ||
- 127.0.0.1:9000:9000 | ||
- 127.0.0.1:9009:9009 | ||
network_mode: host | ||
# volumes: | ||
# - ./config.xml:/etc/clickhouse-server/config.xml | ||
# - ./users.xml:/etc/clickhouse-server/users.xml | ||
|
||
clickhouse_exporter: | ||
image: f1yegor/clickhouse-exporter | ||
ports: | ||
- 127.0.0.1:9116:9116 | ||
network_mode: host | ||
command: -scrape_uri=http://127.0.0.1:8123/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
global: | ||
scrape_interval: 1s | ||
evaluation_interval: 1s | ||
|
||
scrape_configs: | ||
- job_name: prometheus | ||
static_configs: | ||
- targets: ['127.0.0.1:9090'] | ||
|
||
- job_name: clickhouse | ||
static_configs: | ||
- targets: ['127.0.0.1:9116'] |