8000 docs: yaml by kl7sn · Pull Request #61 · clickvisual/clickvisual · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

docs: yaml #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions data/prometheus/prom2click-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: prom2click
namespace: mogo
labels:
app: prom2click
spec:
replicas: 1
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
selector:
matchLabels:
app: prom2click
template:
metadata:
labels:
app: prom2click
spec:
containers:
- name: prom2click
image: fhalim/prom2click:latest
imagePullPolicy: IfNotPresent
args:
- '-ch.dsn=tcp://127.0.0.1:8123'
- '-ch.db=metrics'
- '-ch.table=samples'
command:
- /usr/local/bin/prom2click
ports:
- name: web
containerPort: 9000
restartPolicy: Always
securityContext: {}
terminationGracePeriodSeconds: 30
15 changes: 15 additions & 0 deletions data/prometheus/prom2click-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: prom2click
namespace: mogo
labels:
name: "prom2click"
spec:
ports:
- name: http
port: 9201
protocol: TCP
targetPort: 9201
selector:
app: prom2click
8 changes: 6 additions & 2 deletions data/prometheus/prometheus-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ data:
# 修改:targets、指定地址与端口
- targets: ["alertmanager:9093"]
remote_read:
- url: "http://127.0.0.1:9201/read"
- url: "http://prom2click:9201/read"
read_recent: true
remote_write:
- url: "http://127.0.0.1:9201/write"
- url: "http://prom2click:9201/write"
queue_config:
capacity: 10000
max_shards: 1
max_samples_per_send: 500
0