`
turingfellow
  • 浏览: 135303 次
  • 性别: Icon_minigender_1
  • 来自: 福建省莆田市
社区版块
存档分类
最新评论

Prometheus 3/4

    博客分类:
  • jade
 
阅读更多
other).Often what at first appears to be a shared data object can be reconceptualised as
a data source managed by a single agent,with information provided to other agents
as they need it.Alternatively each agent may have its own version of the information,
without there being any need for a single centralised data object.Data objects should
be specified using traditional object oriented techniques.
bo
The system overview dia-
gram ties together the agents,
events and shared data objects.It
is arguably the single most im-
portant artifact of the entire de-
sign process,although of course it
cannot really be understood fully
in isolation.By viewing this dia-
gram we obtain a general under-
standing of how the system as a
whole will function.Messages be-
tween agents can include a reply,
although this is not shown explic-
itly on the diagram.Looking further at agent descriptors provides any additional detail
needed to understand the high level functioning of the system.
The final aspect of the architectural design is to specify fully the interaction be-
tween agents.Interaction diagrams are used as an initial tool for doing this,while fully
specified interaction protocols are the final design artifact.
Interaction diagrams are borrowed directly from object oriented design,showing
interaction between agents rather than objects.One of the main processes for devel-
oping interaction diagrams is to take the use cases developed in the specification phase
and to build corresponding interaction diagrams.Wherever there is a step in the use case
which involves a functionality from a new agent there must be some interaction from
a previously involved agent to the newly participating agent.While it is not possible
to automatically derive the interaction diagrams from the use cases,substantial consis-
tency checking is possible.Figure 1(left)shows an interaction diagram for a scenario
of buying a book at our electronic bookstore.It depicts the user requesting a particular
book from the sales assistant which checks the details with the warehouse then replies.
The user decides to buy the book and places an order;the sales assistant checks for
delivery options,confirms them with the user,checks the user’s credit card details with
the cashier,and then places the order and thanks the user.In addition to deriving inter-
action diagrams from use cases,each of the major environmental events should have an
associated interaction diagram.
Interaction diagrams,like use cases,give only a partial picture of the system’s be-
haviour.In order to have a precisely defined system we progress from interaction dia-
grams to interaction protocols which define precisely which interaction sequences are
valid within the system.
Figure 1(right)shows the protocol for the credit check portion of the interaction
diagram shown in figure 1(left).Because protocols must show all variations they are
often larger than the corresponding interaction diagram and may need to be split into
smaller chunks.We use the AUML notation[19]to specify protocols,
Consistency checking should be done between protocols and interaction diagrams,
the system overview diagram,and use cases.With the appropriate tools,much of this
consistency checking can be automated.
4 Detailed design
Detailed design focuses on developing the internal structure of each of the agents and
how it will achieve its tasks within the system.It is at this stage of the design that
the methodology becomes specific to agents that use user-defined plans,triggered by
goals or events,such as the various implementations of Belief,Desire,Intention(BDI)
systems(e.g.PRS,dMARS,JAM,or JACK).A number of details regarding the im-
plementation platform also become evident at this stage when looking at any particular
design.However,the principles are easily adapted to the specifics of whichever devel-
opment platform has been chosen,as long as it is within the broad general category of
agents which use plans and react to events.
The focus of the detailed design phase is on defining capabilities(modules within
the agent),internal events,plans and detailed data structures.A progressive refinement
process is used which begins by describing agents’internals in terms of capabilities.The
internal structure of each capability is then described,optionally using or introducing
further capabilities.These are refined in turn until all capabilities have been defined.At
the bottom level capabilities are defined in terms of plans,events,and data.
The functionalities from the specification phase provide a good initial set of capa-
bilities,which can be further refined if desired.Sometimes there is also functionality
akin to“library routines”which is required in multiple places-either within multiple
agents,or within multiple capabilities within a single agent.Such functionality should
also be extracted into a capability which can then be included into other capabilities or
agents as required.
Capabilities are allowed to be nested within other capabilities and thus this model
allows for arbitrarily many layers within the detailed design,in order to achieve an
understandable complexity at each level.
Each capability should be described by a capability descriptor which contains in-
formation about the external interface to the capability-which events are inputs and
which events are produced by(as inputs to other capabilities).It also contains a natu-
ral language description of the functionality,a unique descriptive name,information
regarding interactions with other capabilities,or inclusions of other capabilities,and
a reference to data read and written by the capability.We use structured capability
descriptor forms containing the above fields.
The agent overview diagram provides the top level view of the agent internals.It
is very similar in style to the system overview diagram,but instead of agents within a
system,it shows capabilities within an agent.This diagram shows the top level capabil-
ities of the agent and the event or task flow between these capabilities,as well as data
internal to the agent.By reading the relevant capability descriptors,together with the
diagram,it is possible to obtain a clear high level view of how the modules within the
agent will interact to achieve the overall tasks of the agent as described in the agent
descriptor from the architectural design.
The agent overview diagram below is for a warehouse manager agent in the elec-
tronic bookstore.This agent has the capabilities of tracking stock,placing orders for
new stock and organising delivery of books to clients.
A further level of detail is
provided by capability diagrams
which take a single capability and
describe its internals.At the bot-
tom level these will contain plans,
with events providing the connec-
tions between plans,just as they do
between capabilities and between
agents.At intermediate levels they
may contain nested capabilities or
a mixture of capabilities and plans.
These diagrams are similar in style to the system overview and agent overview diagram,
although plans are constrained to have a single incoming(triggering)event.
Just as the agent overview diagram should be checked for consistency with the sys-
tem overview(in terms of incoming and outgoing events),so each capability overview
diagram should be checked against its enclosing context-either the agent overview,or
another capability overview.
The final design artifacts required are the individual plan,event and data descriptors.
These descriptions provide the details necessary to move into implementation.Exactly
what are the appropriate details for these descriptors will depend on aspects of the
implementation platform.For example if the context in which a plan type is to be used
is split into two separate checks within the system being used(as is the case in JACK)
then it is appropriate to specify these separately in the descriptor.Fields regarding what
分享到:
评论

相关推荐

    在k8s中部署prometheus的镜像

    3. 部署Prometheus Server 创建一个包含Prometheus配置的ConfigMap,然后部署Prometheus服务器。 ```yaml apiVersion: v1 kind: ConfigMap metadata: name: prometheus-config data: prometheus.yml: |- global:...

    Prometheus从入门到精通-玩转Prometheus

    3. **配置Prometheus**:更新`prometheus.yml`配置文件,添加MySQL监控任务的详细信息。 4. **启动服务**:重启Prometheus服务以应用新的配置。 #### Grafana集成 Grafana是一款功能强大的可视化工具,常用于展示...

    Prometheus+Grafana部署使用说明1

    4. 启动Prometheus服务:`./service.sh`。 5. 通过Web访问Prometheus UI:http://localhost:9090。 二、Grafana部署 Grafana是一款流行的可视化工具,可以将Prometheus等数据源的数据展示成图表。 1. 下载Grafana...

    Linux安装Prometheus(32)

    3. **表达式语言**:Prometheus提供了一种强大的查询语言PromQL,用于实时分析和可视化数据。 4. **服务发现**:自动发现新的监控目标,并将它们添加到监控范围。 5. **警报管理**:可以配置规则触发警报,将问题...

    Prometheus 2.36.2 / 2022-06-20发布国内下载

    3. **目标发现机制**:Prometheus支持多种服务发现机制,可以自动发现并开始监控新的服务实例,适应动态环境如Kubernetes集群。 4. **警报管理**:Prometheus内置了警报管理器,可以定义规则将监控数据转化为警报,...

    prometheus、grafana离线包

    4. **警报管理**:Prometheus支持定义规则,当满足特定条件时触发警报,可与Alertmanager配合将警报发送至不同的通知渠道。 5. **服务发现**:Prometheus能自动发现和跟踪服务,适应微服务和容器化环境。 而...

    k3s-monitoring:快速入门指南,可通过Prometheus Operator和kube-prometheus-stack Helm Chart在k3s集群上获得完整的监视和警报堆栈并运行

    4. **安装kube-prometheus-stack**: ``` helm install kube-prometheus-stack prometheus-community/kube-prometheus-stack --namespace monitoring ``` 5. **配置和自定义**:你可以通过Helm Chart的值文件...

    prometheus+springboot监控集成.docx

    4. **配置Prometheus监控node_exporter** 修改`prometheus.yml`配置文件,添加对node_exporter的引用,如: ``` static_configs: - targets: ['localhost:9090'] # 采集Prometheus自身监控数据 - job_name: '...

    prometheus安装包.zip

    3. **Prometheus Operator**:在Kubernetes环境中,Prometheus Operator提供了一种声明式的方式来管理Prometheus实例,使得部署和扩展更加便捷。 4. **Alertmanager配置**:Alertmanager的配置文件通常与Prometheus...

    prometheus-api数据采集

    Prometheus 是一个开源的监控和警报系统,广泛应用于云原生环境,它以其强大的时序数据处理能力和灵活的查询语言 Prometheus Query Language ( PromQL ) 而闻名。本篇文章将详细探讨如何通过 Prometheus 的 API 进行...

    Prometheus2.32.1版本镜像及资源清单文件

    原文链接:https://blog.csdn.net/m0_37814112/article/details/122102312 说明:包括prometheus-2.32.1版本镜像及资源清单文件

    prometheus linux安装包 麒麟v10

    4. **启动Prometheus**:Prometheus提供了一个可执行文件`prometheus`,你可以通过命令行启动它。在配置文件所在的目录下运行: ``` ./prometheus --config.file=prometheus.yml ``` 5. **设置开机启动**:为了...

    PyPI 官网下载 | prometheus_client-0.10.0-py2.py3-none-any.whl

    《PyPI上的prometheus_client-0.10.0-py2.py3-none-any.whl:Python监控指标库详解》 PyPI(Python Package Index)是Python开发者们获取和分享软件包的重要平台,其中的“prometheus_client-0.10.0-py2.py3-none-...

    Python调用Prometheus监控数据并计算.zip

    3. **PromQL(Prometheus Query Language)**:PromQL是Prometheus的强大查询语言,允许用户对时间序列数据进行复杂的查询,包括聚合、比较和函数运算。 4. **目标管理**:Prometheus使用服务发现机制来动态地跟踪...

    prometheus-2.47.2.windows-amd64 prometheus windows

    4. **Prometheus Query Language (PromQL)**: PromQL 是一种强大的查询语言,用于从 Prometheus 数据库中提取实时度量信息。例如,你可以用它来计算过去一小时的平均响应时间,或者检测服务是否出现异常。 5. **...

    Prometheus监控

    3. **配置文件**:Prometheus的配置文件是非常重要的部分,它定义了Prometheus如何发现目标、从何处获取数据以及如何存储数据等关键信息。例如,在`prometheus.yml`文件中可以定义job来指定需要监控的目标: ```...

    prometheus一键部署文档,只需要执行install命令安装prometheus+alertmanager+grafana

    3. **Grafana**: - **数据源**:Grafana 可以连接到多个数据源,包括 Prometheus,在这里可以查看和分析监控数据。 - **仪表板**:用户可以创建自定义仪表板,展示关键指标图表,用于监控、故障排查和性能优化。 ...

    Prometheus 安装包

    3. `prometheus.yml`: 这是默认的配置文件,你需要根据自己的需求进行修改,以定义要抓取的指标、规则、通知等。 安装过程中,需要将 `prometheus.yml` 配置文件调整为适合你的环境。基本配置包括设置数据存储路径...

    Prometheus-2.33.4 Linux二进制安装包全家桶

    3. **graphite_exporter-0.12.0.linux-amd64.tar.gz**:Graphite Exporter是一个中间件,它允许Prometheus与Graphite兼容的度量服务器交互。它将Graphite格式的指标转换为Prometheus可以理解的格式。 4. **...

Global site tag (gtag.js) - Google Analytics