ArthurSens/just-a-rather-very-intelligent-system 1
Inspired by MCU J.A.R.V.I.S, a simple chatbot with voice
Prometheus Alertmanager
Bot for Prometheus' Alertmanager
Declarative continuous deployment for Kubernetes.
Exposing BME280 metrics with ESP8266-01, so a Prometheus server can scrape it
An operator that installs Grafana and manages Dashboards
Use Prometheus to monitor Kubernetes and applications running on Kubernetes
PR opened prometheus/alertmanager
…ng of alarm information
添加支持微信群组,便于交流分享报警信息
Signed-off-by: hai046 [email protected]
-
Added support for WeChat groups to facilitate communication and sharing of alarm information 添加支持微信群组,便于交流分享报警信息
-
add wechat group chat type groupText and groupMarkdown
-
add test config and script and screenshot
the config at examples/ha/wechat_alertmanager.yml
send a alert msg with script: examples/ha/wechat_group_alerts.sh the template at : examples/ha/wechat_group*.tmpl
the result group msg:

My test alertmanager.yml please replace the configuration variable by yourself
global:
wechat_api_url: 'https://qyapi.weixin.qq.com/cgi-bin/'
wechat_api_secret: '#wechat_api_secret'
wechat_api_corp_id: '#wechat corp id '
resolve_timeout: 1m
route:
group_by: ['application']
group_wait: 30s
group_interval: 1m
repeat_interval: 1m
receiver: 'groupWechat'
templates:
- /etc/alertmanager/config/*.tmpl
receivers:
- name: 'groupWechat'
wechat_configs:
- send_resolved: true
to_tag: '服务报警'
message_type: 'groupMarkdown'
message: '{{ template "wechat.default.groupMessage" . }}'
agent_id: '#wechat agent id'
group_title: '{{ template "wechat.default.groupTitle" . }}' #create group chatId
group_users:
- #{group_user1}
- #{group_user2}
- name: 'wechat'
wechat_configs:
- send_resolved: true
to_user: "xxx"
to_tag: '服务报警'
message_type: 'groupMarkdown'
message: '{{ template "wechat.default.message" . }}'
agent_id: '#wechat agent id'
inhibit_rules:
- source_match:
severity: 'critical'
target_match:
severity: 'warning'
equal: ['alertname', 'dev', 'instance']
the script post alerts
#!/usr/bin/env bash
alerts1='[
{
"labels": {
"application": "app1",
"instance": "instance1",
"groupTitle": "微服务测试"
},
"startsAt": "2021-01-20T14:31:39.000Z",
"endsAt": "2021-06-28T04:09:43.534Z",
"annotations": {
"summary": "summary info",
"message": "message content"
},
"generatorURL": "http://GecyXAtxISsqBCNScCD.xldw-xtmZQKncZJequKpc,2CQ1J7lE-SKEx2i1dYxWDbo071rZFoiN7OQEbKltIARN+"
},
{
"labels": {
"application": "app1",
"instance": "instance1",
"groupTitle": "微服务测试"
},
"startsAt": "2021-01-20T14:31:39.000Z",
"endsAt": "2021-06-28T04:09:43.534Z",
"annotations": {
"summary": "summary info2",
"message": "message content2"
},
"generatorURL": "http://GecyXAtxISsqBCNScCD.xldw-xtmZQKncZJequKpc,2CQ1J7lE-SKEx2i1dYxWDbo071rZFoiN7OQEbKltIARN+"
}
]'
curl -XPOST -d"$alerts1" -H "Content-Type:application/json" http://localhost:9093/api/v2/alerts
pr created time in an hour
PR closed prometheus/alertmanager
-
Added support for WeChat groups to facilitate communication and sharing of alarm information 添加支持微信群组,便于交流分享报警信息
-
add wechat group chat type groupText and groupMarkdown
-
add test config and script and screenshot
the config at examples/ha/wechat_alertmanager.yml
send a alert msg with script: examples/ha/wechat_group_alerts.sh the template at : examples/ha/wechat_group*.tmpl
the result group msg:

pr closed time in an hour
pull request commentprometheus/alertmanager
OK,the auth and email mix ,I open a new one
comment created time in an hour
push eventgitpod-io/gitpod
commit sha 4621c0749023cabf3d6986939bb4bba887b9de8b
WIP: oauth2 token <-> gitpod token
push time in 4 hours
issue commentprometheus/prometheus
Azure/azure-sdk-for-go does not contain arm/compute.
Hmm, odd. Very curious why go mod vendor is finding a version of github.com/prometheus/prometheus/discovery/config that imports github.com/prometheus/prometheus/discovery/azure.
We are running Go 1.15.
I see a line like the following above:
go: found github.com/prometheus/prometheus/discovery/config in github.com/prometheus/prometheus v2.5.0+incompatible
Any reason why go would fetch v2.5.0 if I've explicitly listed the SHA of 2.26.0 in our go.mod file?
Thanks for all your help @roidelapluie.
comment created time in 5 hours
push eventgitpod-io/gitpod
Manuel Alejandro de Brito Fontes
commit sha d0db3772479ed978a9fcc70b07263987ebb9c6d4
Refactor backup/restore paths
Manuel Alejandro de Brito Fontes
commit sha b4781688dd79e8b730cbf004c0cf6ca028aedc98
Cleanup
Manuel Alejandro de Brito Fontes
commit sha 5796e60da7fafbba197227518c078ed94d41602d
delete
push time in 6 hours
issue openedprometheus/prometheus
Add a prod() or product() function
Currently working on a fully Prometheus/Grafana based monitoring infrastructure, we want/need to create high-level "health" metrics, based on lower level health metrics, themselves bases on more lower level health metrics, etc...
These "health" metrics should be between 0 and 1. A higher value meaning that the component is healthy, and a lower value that the component is unhealthy.
A simple average is not a good solution since a critical value would be masked by other values, especially if combining more than 3 or 4 values. For example, avg(0.1, 0.8, 1.0, 0.9) = 0.7 => the value 0.1 has not enough impact on the result.
The best solution we found to combine these metrics is to use the Geometric Mean concept, which is basically the n'th root of a product of n elements. A geom_avg() is probably not a good idea since the need is really specific. However, a prod() function might be more useful and would be enough to achieve our goal, combined with the power of a fraction (^(1/n)).
Moreover, I believe its implementation would be really simple, and could be useful to other users in their specific use-cases.
Any thought or remark will be appreciated! Thanks.
created time in 7 hours
push eventgitpod-io/gitpod
Manuel Alejandro de Brito Fontes
commit sha 1ac3ee75b96480084e1150509ae2efd8d69e60e9
test
push time in 7 hours
issue commentcncf/toc
[PROJECT ONBOARDING] GitOps WG
@lukaszgryglicki the OpenGitOps artwork PR was for the Sandbox project. The GitOps WG artwork was under "other", and added just because the same person also made a cool logo for the GitOps WG under SIG App Delivery 😄
comment created time in 7 hours
push eventgitpod-io/gitpod
Manuel Alejandro de Brito Fontes
commit sha 36b05822d03956e058e4bec9ea4caf9822460616
test
push time in 7 hours
issue commentprometheus/alertmanager
Time of day based alert routing/notification
Hi @bimmerkiev, you were almost there with this version:
routes:
- group_wait: 10s
match:
severity: loww
mute_time_intervals:
- business_hours
receiver: pagerduty
The problem is that the receiver was indented, so Alertmanager was getting confused because it should be at the top level alongside mute_time_intervals, group wait etc. This config should be ok:
routes:
- group_wait: 10s
match:
severity: loww
mute_time_intervals:
- business_hours
receiver: pagerduty
comment created time in 7 hours
issue commentprometheus/prometheus
Azure/azure-sdk-for-go does not contain arm/compute.
Which version of go are you using?
comment created time in 8 hours
issue commentprometheus/prometheus
Azure/azure-sdk-for-go does not contain arm/compute.
In 2.26 github.com/prometheus/prometheus/config does not depend on azure (except for the tests).
comment created time in 8 hours
push eventgitpod-io/gitpod
Manuel Alejandro de Brito Fontes
commit sha d8a5696d120d0dbe3150675a362536bff78a13e8
Refactor backup/restore paths
Manuel Alejandro de Brito Fontes
commit sha 79520d8d5a43b1e6ad76bf4f954691c5b5a4c519
Cleanup
Manuel Alejandro de Brito Fontes
commit sha f9f433ef1f07b79e544bdd0ccaa4b337a802d7b1
delete
push time in 8 hours
issue commentprometheus/prometheus
Azure/azure-sdk-for-go does not contain arm/compute.
Thanks @roidelapluie. I'm not trying to run make or build Prometheus. Instead, we depend on it in our own repo. Eg.
import (
...
prom_config "github.com/prometheus/prometheus/config"
...
)
We are trying to use 2.26.0. We are upgrading from 2.13.0.
comment created time in 8 hours
push eventgitpod-io/gitpod
Manuel Alejandro de Brito Fontes
commit sha e1c9515295f91bdeb787182482218a5070da1aea
Fix
push time in 8 hours
issue commentprometheus/prometheus
Azure/azure-sdk-for-go does not contain arm/compute.
To build Prometheus, please clone the repository or run make build. go get does not fully respect the go.mod file (e.g. does not respect the replace). go get also does not build the UI.
Which version of go are you using?
comment created time in 8 hours
issue commentprometheus/prometheus
Azure/azure-sdk-for-go does not contain arm/compute.
For reference, I've read through:
- https://github.com/prometheus/prometheus/issues/4468
- https://github.com/prometheus/prometheus/issues/8586
- https://github.com/prometheus/prometheus/issues/5590
I'm curious why prometheus/discovery/azure depends on github.com/Azure/azure-sdk-for-go/arm/compute when is no where to be found in the project.
comment created time in 8 hours
issue openedprometheus/prometheus
Azure/azure-sdk-for-go does not contain arm/compute.
I've tried the following with an number of different @SHAs including @main and get the same error:
GO111MODULE=on go get github.com/prometheus/prometheus@main
go mod vendor
go: downloading google.golang.org/grpc v1.37.0
go: downloading github.com/aws/aws-sdk-go v1.38.35
go: downloading golang.org/x/net v0.0.0-20210505214959-0714010a04ed
go: downloading golang.org/x/oauth2 v0.0.0-20210427180440-81ed05c6b58c
go: downloading google.golang.org/genproto v0.0.0-20210429181445-86c259c2b4ab
go: downloading github.com/prometheus/common v0.23.0
go: downloading golang.org/x/sys v0.0.0-20210503173754-0981d6026fa6
go: downloading google.golang.org/api v0.46.0
go: downloading cloud.google.com/go v0.81.0
go: downloading golang.org/x/text v0.3.6
go: finding module for package github.com/prometheus/prometheus/discovery/config
go: downloading github.com/uber/jaeger-client-go v2.28.0+incompatible
go: finding module for package k8s.io/api/discovery/v1beta1
go: downloading github.com/google/pprof v0.0.0-20210504235042-3a04a4d88a10
go: downloading github.com/docker/docker v20.10.6+incompatible
go: downloading github.com/json-iterator/go v1.1.11
go: downloading github.com/uber/jaeger-lib v2.4.1+incompatible
go: found github.com/prometheus/prometheus/discovery/config in github.com/prometheus/prometheus v2.5.0+incompatible
go: downloading github.com/gophercloud/gophercloud v0.17.0
go: downloading github.com/Azure/azure-sdk-for-go v54.0.0+incompatible
go: finding module for package github.com/Azure/azure-sdk-for-go/arm/network
go: finding module for package github.com/Azure/azure-sdk-for-go/arm/compute
github.com/.... imports
github.com/prometheus/prometheus/discovery/config imports
github.com/prometheus/prometheus/discovery/azure imports
github.com/Azure/azure-sdk-for-go/arm/compute: module github.com/Azure/azure-sdk-for-go@latest found (v54.2.0+incompatible), but does not contain package github.com/Azure/azure-sdk-for-go/arm/compute
github.com/.... imports
github.com/prometheus/prometheus/discovery/config imports
github.com/prometheus/prometheus/discovery/azure imports
github.com/Azure/azure-sdk-for-go/arm/network: module github.com/Azure/azure-sdk-for-go@latest found (v54.2.0+incompatible), but does not contain package github.com/Azure/azure-sdk-for-go/arm/network
created time in 8 hours
issue commentprometheus/prometheus
Cannot install with go anymore
Similar issue here:
GO111MODULE=on go get github.com/prometheus/prometheus@main
go mod vendor
go: downloading google.golang.org/grpc v1.37.0
go: downloading github.com/aws/aws-sdk-go v1.38.35
go: downloading golang.org/x/net v0.0.0-20210505214959-0714010a04ed
go: downloading golang.org/x/oauth2 v0.0.0-20210427180440-81ed05c6b58c
go: downloading google.golang.org/genproto v0.0.0-20210429181445-86c259c2b4ab
go: downloading github.com/prometheus/common v0.23.0
go: downloading golang.org/x/sys v0.0.0-20210503173754-0981d6026fa6
go: downloading google.golang.org/api v0.46.0
go: downloading cloud.google.com/go v0.81.0
go: downloading golang.org/x/text v0.3.6
go: finding module for package github.com/prometheus/prometheus/discovery/config
go: downloading github.com/uber/jaeger-client-go v2.28.0+incompatible
go: finding module for package k8s.io/api/discovery/v1beta1
go: downloading github.com/google/pprof v0.0.0-20210504235042-3a04a4d88a10
go: downloading github.com/docker/docker v20.10.6+incompatible
go: downloading github.com/json-iterator/go v1.1.11
go: downloading github.com/uber/jaeger-lib v2.4.1+incompatible
go: found github.com/prometheus/prometheus/discovery/config in github.com/prometheus/prometheus v2.5.0+incompatible
go: downloading github.com/gophercloud/gophercloud v0.17.0
go: downloading github.com/Azure/azure-sdk-for-go v54.0.0+incompatible
go: finding module for package github.com/Azure/azure-sdk-for-go/arm/network
go: finding module for package github.com/Azure/azure-sdk-for-go/arm/compute
github.com/.... imports
github.com/prometheus/prometheus/discovery/config imports
github.com/prometheus/prometheus/discovery/azure imports
github.com/Azure/azure-sdk-for-go/arm/compute: module github.com/Azure/azure-sdk-for-go@latest found (v54.2.0+incompatible), but does not contain package github.com/Azure/azure-sdk-for-go/arm/compute
github.com/.... imports
github.com/prometheus/prometheus/discovery/config imports
github.com/prometheus/prometheus/discovery/azure imports
github.com/Azure/azure-sdk-for-go/arm/network: module github.com/Azure/azure-sdk-for-go@latest found (v54.2.0+incompatible), but does not contain package github.com/Azure/azure-sdk-for-go/arm/network
comment created time in 8 hours
issue commentgitpod-io/gitpod
@meysholdt I am seeing this as documented in the chart values, maybe make it a default. https://github.com/gitpod-io/gitpod/blob/360759883778f3414e5c54fdfc8cae16068a19c9/chart/values.yaml#L407 /dev/net/tun was #3258 and may have been fixed since (?): https://github.com/gitpod-io/gitpod/commit/44a47ef48e5edd0d4b239138fb6ff9fb949c67bd
comment created time in 9 hours
push eventgitpod-io/gitpod
Manuel Alejandro de Brito Fontes
commit sha efe7ea42dbbe65146bc61c52a80b82ec2eb5a57e
delete
push time in 9 hours
issue commentcncf/toc
[SANDBOX PROJECT ONBOARDING] Antrea
@amye No thanks, we are working on the Website items and we will update the status here later.
BTW, we have a passing CII best practices badge for Antrea: https://bestpractices.coreinfrastructure.org/en/projects/4173. We have had it for a while, but I went over the form today to make sure all links were up-to-date.
comment created time in 9 hours
push eventgitpod-io/gitpod
Manuel Alejandro de Brito Fontes
commit sha 5dff003729aa024180d85e75c377c024c6d71bd1
Cleanup
push time in 9 hours
issue commentprometheus/prometheus
Prevent scrape OOM by scrape stage limitation when target expose too many metrics
Thank you. Relying on a client header is fragile but we could use an io.LimitReader.
Note that the default limit should be pretty high (we have users scraping 4 GB per scrape).
comment created time in 9 hours
issue commentprometheus/prometheus
readCheckpoint wasn't able to read all data from the checkpoint xxx
cc @cstyan @csmarchbanks @codesome
comment created time in 9 hours
issue commentprometheus/prometheus
prometheus_sd_discovered_target only shows values from single data center (consul sd)
Thanks. A fix is in #8828.
comment created time in 9 hours