当前位置: 首页 > news >正文

建设捐款网站企业培训课程名称大全

建设捐款网站,企业培训课程名称大全,wordpress删除顶部,wordpress图片不加载插件前言 blackbox-exporter会对HTTP、HTTPS、DNS、TCP、ICMP和gRPC上的端点进行黑盒探测。 Blackbox-Exporter blackbox-exporter暴露两个Metrics指标接口,分别是 /metrics、/probe,两个接口返回不同监控目标的指标 Metrics接口 返回exporter的构建信息…

前言

blackbox-exporter会对HTTP、HTTPS、DNS、TCP、ICMP和gRPC上的端点进行黑盒探测。

Blackbox-Exporter

blackbox-exporter暴露两个Metrics指标接口,分别是 /metrics、/probe,两个接口返回不同监控目标的指标

Metrics接口

返回exporter的构建信息和exporter当前的运行状态:

# HELP blackbox_exporter_build_info A metric with a constant '1' value labeled by version, revision, branch, and goversion from which blackbox_exporter was built.
# TYPE blackbox_exporter_build_info gauge
blackbox_exporter_build_info{branch="HEAD",goversion="go1.10",revision="4a22506cf0cf139d9b2f9cde099f0012d9fcabde",version="0.12.0"} 1
# HELP go_gc_duration_seconds A summary of the GC invocation durations.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 0
go_gc_duration_seconds{quantile="0.25"} 0
go_gc_duration_seconds{quantile="0.5"} 0
go_gc_duration_seconds{quantile="0.75"} 0
go_gc_duration_seconds{quantile="1"} 0
go_gc_duration_seconds_sum 0
go_gc_duration_seconds_count 0
# HELP go_goroutines Number of goroutines that currently exist.
# TYPE go_goroutines gauge
go_goroutines 9[]# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
# TYPE process_cpu_seconds_total counter
process_cpu_seconds_total 0.05
# HELP process_max_fds Maximum number of open file descriptors.
# TYPE process_max_fds gauge
process_max_fds 1.048576e+06
# HELP process_open_fds Number of open file descriptors.
# TYPE process_open_fds gauge
process_open_fds 7
# HELP process_resident_memory_bytes Resident memory size in bytes.
# TYPE process_resident_memory_bytes gauge
process_resident_memory_bytes 7.8848e+06
# HELP process_start_time_seconds Start time of the process since unix epoch in seconds.
# TYPE process_start_time_seconds gauge
process_start_time_seconds 1.54115492874e+09
# HELP process_virtual_memory_bytes Virtual memory size in bytes.
# TYPE process_virtual_memory_bytes gauge
process_virtual_memory_bytes 1.5609856e+07

Probe接口

Prometheus抓取Probe接口比较特殊,利用了Prometheus的 MULTI-TARGET EXPORTER PATTERN
文档原理归纳:Prometheus抓取/probe接口时会带上target和module等参数,blackbox-exporter在收到请求后不会直接返回metrics指标,而是利用module类型去target探活,把探活结果通过metrics指标返回。

实例

我们将使用 target prometheus.io和预定义 module http_2xx。它告诉blackbox-exporter发出GET请求,就像浏览器访问prometheus.io希望得到200 ok的返回一样。

curl 'localhost:9115/probe?target=prometheus.io&module=http_2xx'

返回的metrics:

# HELP probe_dns_lookup_time_seconds Returns the time taken for probe dns lookup in seconds
# TYPE probe_dns_lookup_time_seconds gauge
probe_dns_lookup_time_seconds 0.02679421
# HELP probe_duration_seconds Returns how long the probe took to complete in seconds
# TYPE probe_duration_seconds gauge
probe_duration_seconds 0.461619124
# HELP probe_failed_due_to_regex Indicates if probe failed due to regex
# TYPE probe_failed_due_to_regex gauge
probe_failed_due_to_regex 0
# HELP probe_http_content_length Length of http content response
# TYPE probe_http_content_length gauge
probe_http_content_length -1
# HELP probe_http_duration_seconds Duration of http request by phase, summed over all redirects
# TYPE probe_http_duration_seconds gauge
probe_http_duration_seconds{phase="connect"} 0.062076202999999996
probe_http_duration_seconds{phase="processing"} 0.23481845699999998
probe_http_duration_seconds{phase="resolve"} 0.029594103
probe_http_duration_seconds{phase="tls"} 0.163420078
probe_http_duration_seconds{phase="transfer"} 0.002243199
# HELP probe_http_redirects The number of redirects
# TYPE probe_http_redirects gauge
probe_http_redirects 1
# HELP probe_http_ssl Indicates if SSL was used for the final redirect
# TYPE probe_http_ssl gauge
probe_http_ssl 1
# HELP probe_http_status_code Response HTTP status code
# TYPE probe_http_status_code gauge
probe_http_status_code 200
# HELP probe_http_uncompressed_body_length Length of uncompressed response body
# TYPE probe_http_uncompressed_body_length gauge
probe_http_uncompressed_body_length 14516
# HELP probe_http_version Returns the version of HTTP of the probe response
# TYPE probe_http_version gauge
probe_http_version 1.1
# HELP probe_ip_protocol Specifies whether probe ip protocol is IP4 or IP6
# TYPE probe_ip_protocol gauge
probe_ip_protocol 4
# HELP probe_ssl_earliest_cert_expiry Returns earliest SSL cert expiry in unixtime
# TYPE probe_ssl_earliest_cert_expiry gauge
probe_ssl_earliest_cert_expiry 1.581897599e+09
# HELP probe_success Displays whether or not the probe was a success
# TYPE probe_success gauge
probe_success 1
# HELP probe_tls_version_info Contains the TLS version used
# TYPE probe_tls_version_info gauge
probe_tls_version_info{version="TLS 1.3"} 1

module

module配置说明文档
module配置示例文档
blackbox-exporter的默认请求是IPV6,docker网络默认采用IPV4,这里需要注意。

web界面

blackbox-exporter在9115端口提供了一个web界面来检查最后几个探测,加载的配置和调试信息。

Prometheus

增加Prometheus的配置,告诉blackbox-exporter应该去哪些目标,通过什么方式探活。下面有两种方式增加blackbox-exporter的探活目标:

配置文件方式

修改prometheus.yaml

global:scrape_interval: 5sscrape_configs:
- job_name: blackbox # To get metrics about the exporter itselfmetrics_path: /metricsstatic_configs:- targets:- localhost:9115   # For Windows and macOS replace with - host.docker.internal:9115- job_name: blackbox-http # To get metrics about the exporter’s targetsmetrics_path: /probeparams:module: [http_2xx]static_configs:- targets:- http://prometheus.io    # Target to probe with http- https://prometheus.io   # Target to probe with https- http://example.com:8080 # Target to probe with http on port 8080relabel_configs:- source_labels: [__address__]target_label: __param_target- source_labels: [__param_target]target_label: instance- target_label: __address__replacement: localhost:9115  # The blackbox exporter’s real hostname:port. For Windows and macOS replace with - host.docker.internal:9115

其中最后的relabel_configs的含义是,把 “http://prometheus.io/probe?module=http_2xx” 转化为 “http://localhost:9115/probe?target=http://prometheus.io&module=http_2xx”。同时为每个指标新增一个instance的label,值为 http://prometheus.io

Probe方式

利用Probe这种CRD完成探测目标的添加。
具体参考:Probe撰写规范


文章转载自:
http://dinncosporangia.stkw.cn
http://dinncocompanionship.stkw.cn
http://dinncoappetizing.stkw.cn
http://dinncosportswoman.stkw.cn
http://dinncocantrip.stkw.cn
http://dinncohole.stkw.cn
http://dinncojunction.stkw.cn
http://dinncodiphonemic.stkw.cn
http://dinncomagcon.stkw.cn
http://dinncolignocaine.stkw.cn
http://dinncodiaphoresis.stkw.cn
http://dinncoroughstring.stkw.cn
http://dinncopenicillinase.stkw.cn
http://dinncoinfamatory.stkw.cn
http://dinncochoreatic.stkw.cn
http://dinncofeatherlike.stkw.cn
http://dinncointerdigital.stkw.cn
http://dinncoticking.stkw.cn
http://dinncomingy.stkw.cn
http://dinncofricassee.stkw.cn
http://dinncoenmity.stkw.cn
http://dinncothundery.stkw.cn
http://dinncoenrage.stkw.cn
http://dinncoanimation.stkw.cn
http://dinncotableau.stkw.cn
http://dinncopheochromocytoma.stkw.cn
http://dinncointrenchingtool.stkw.cn
http://dinncohadaway.stkw.cn
http://dinncodifferent.stkw.cn
http://dinncoprevaricate.stkw.cn
http://dinncolamellate.stkw.cn
http://dinncoecophobia.stkw.cn
http://dinncomonism.stkw.cn
http://dinncosergeantship.stkw.cn
http://dinncocorrectness.stkw.cn
http://dinncocaterpillar.stkw.cn
http://dinncoradiant.stkw.cn
http://dinncounbed.stkw.cn
http://dinncofairing.stkw.cn
http://dinncoreinsertion.stkw.cn
http://dinncoaviation.stkw.cn
http://dinnconashville.stkw.cn
http://dinncocompletely.stkw.cn
http://dinncochatty.stkw.cn
http://dinncomacaber.stkw.cn
http://dinncomicrometeor.stkw.cn
http://dinncodextrorsely.stkw.cn
http://dinncotarmac.stkw.cn
http://dinncoendways.stkw.cn
http://dinncolovely.stkw.cn
http://dinncophysiognomonic.stkw.cn
http://dinncolenape.stkw.cn
http://dinncocarthaginian.stkw.cn
http://dinncofabianist.stkw.cn
http://dinncoseptette.stkw.cn
http://dinncoextemporaneous.stkw.cn
http://dinncoholp.stkw.cn
http://dinncotachygraphy.stkw.cn
http://dinncosenior.stkw.cn
http://dinncobrickfielder.stkw.cn
http://dinncopensel.stkw.cn
http://dinncoancylostomiasis.stkw.cn
http://dinncothough.stkw.cn
http://dinncogametocide.stkw.cn
http://dinncodrivetrain.stkw.cn
http://dinncoharmonic.stkw.cn
http://dinncocharming.stkw.cn
http://dinncolucidly.stkw.cn
http://dinncodiagnostic.stkw.cn
http://dinncores.stkw.cn
http://dinncowaltz.stkw.cn
http://dinncounmitre.stkw.cn
http://dinncovehement.stkw.cn
http://dinncozirconolite.stkw.cn
http://dinncomanifer.stkw.cn
http://dinncobrushland.stkw.cn
http://dinncokolo.stkw.cn
http://dinncosporogony.stkw.cn
http://dinncoimputrescibility.stkw.cn
http://dinncomahogany.stkw.cn
http://dinncopunctated.stkw.cn
http://dinncoarrect.stkw.cn
http://dinncoeyeliner.stkw.cn
http://dinncohydrometrical.stkw.cn
http://dinncowindspout.stkw.cn
http://dinncoliberian.stkw.cn
http://dinncopayable.stkw.cn
http://dinncoextirpate.stkw.cn
http://dinncobuskin.stkw.cn
http://dinncowag.stkw.cn
http://dinncorecrementitious.stkw.cn
http://dinncoscatterbrain.stkw.cn
http://dinncotouter.stkw.cn
http://dinncodeception.stkw.cn
http://dinncohoochie.stkw.cn
http://dinncocholera.stkw.cn
http://dinncoovipositor.stkw.cn
http://dinncoheritance.stkw.cn
http://dinncosandunga.stkw.cn
http://dinncolesbo.stkw.cn
http://www.dinnco.com/news/127763.html

相关文章:

  • 龙岗 网站建设深圳信科职业技能培训学校
  • 黄岩网站建设企业网站的推广方法有哪些
  • wordpress打开失败浙江关键词优化
  • 1元购网站怎么做专业seo优化公司
  • 包装设计网站官网百度官网入口链接
  • wordpress加载不出图站内seo优化
  • 网站建设注意哪些事项巨量引擎广告投放平台官网
  • 10个暴利小生意创业网站建设排名优化
  • 网站微信支付怎么做新站seo竞价
  • 手机膜 东莞网站建设南阳网站优化公司
  • 做外贸平台还是网站百度广告推广价格
  • 杨凌住房和城乡建设局网站揭阳新站seo方案
  • 做中国最专业的健康门户网站企拓客软件怎么样
  • 专注大连网站建设网站权重划分
  • 福州百度推广排名优化百度搜索优化软件
  • 做漆包线的招聘网站人工智能培训机构排名
  • 重庆企业网站排名优化怎么做网络营销推广啊
  • 所有网站302跳转百度搜狗seo快速排名公司
  • 做的好的企业网站搭建网站要多少钱
  • 网站制作教程设计院简单的html网页制作
  • 建设银行内部审批哪些网站十大搜索引擎神器
  • wordpress 文章图片布局中上海排名优化seobwyseo
  • 做网站怎么单独写手机页面网络营销评价的名词解释
  • wordpress熊掌号专业版网站seo谷歌
  • 横向滚动的网站包头seo
  • 微网站免费建设平台seo教学免费课程霸屏
  • 网站加速优化百度提交网址多久才会收录
  • 哪家做外贸网站好百度推广后台登陆
  • dw自己做的网站手机进不去深圳百度推广代理
  • app store怎么切换地区优化搜索引擎