<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>Hi Yujun,</div>
<div>
<div id="MAC_OUTLOOK_SIGNATURE"></div>
</div>
</div>
<div><br>
</div>
<div>Please see my answers below.</div>
<div><br>
</div>
<div>
<div>
<div>Best Regards,</div>
<div>Ifat.</div>
</div>
</div>
<div><br>
</div>
<div>
<div style="font-family: Calibri; font-size: 12pt; border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0in 0in; border-top-color: rgb(181, 196, 223);">
<span style="font-weight: bold;">From: </span>Yujun Zhang<br>
<span style="font-weight: bold;">Date: </span>Tuesday, 9 August 2016 at 12:06<br>
</div>
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="border-left-color: rgb(181, 196, 223); border-left-width: 5px; border-left-style: solid; padding: 0px 0px 0px 5px; margin: 0px 0px 0px 5px;">
<div dir="ltr">
<div>
<div><br>
</div>
<div>For proprietary datasource, I'm considering to adapt the api to common protocol/interface, e.g. RESTful, SNMP and etc and I wish to know how to add support for these interface.</div>
</div>
</div>
</blockquote>
<div>[Ifat]: Do you mean that you want to write a datasource that gets its information from SNMP/REST API? Note that for alarm datasources, we have in our roadmap to support OPNFV Doctor SB REST API[1]. Will it be relevant for your use cases?</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Some documents are found in <a href="https://github.com/openstack/vitrage-specs" rel="noreferrer" target="_blank">
https://github.com/openstack/vitrage-specs</a> and datasource seems to be related to synchronizer but I didn't find a dedicated spec.<br>
</blockquote>
</div>
</div>
</div>
</blockquote>
</span>
<div>[Ifat]: We started documenting the process of adding a new datasource, but the document is not final. We will try to finish it shortly. BTW, there are many other documents in Vitrage wiki page[2].</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
1. How do I register a new datasource in an existing system?<br>
2. Is the type of datasource (ALARM/RESOURCE) configured in `/etc/vitrage/datasource_values/<datasource>.yaml` ?<br>
</blockquote>
</div>
</div>
</div>
</blockquote>
</span>
<div>[Ifat]: No, it is configured in the datasource code. For information about datasource_values please see [3]</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
3. Is there any other datasource type besides ALARM/RESOURCE?</blockquote>
</div>
</div>
</div>
</blockquote>
</span>
<div>[Ifat]: No, and at the moment we don’t see a need for that. Vitrage can hold resources of any type in a topology graph, and manage alarms that are raised on these resources. If you see a use case for other datasource types, let us know.  </div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
4. What does `aggregated values` and `priority` mean<br>
</blockquote>
</div>
</div>
</div>
</blockquote>
</span>
<div>[Ifat]: Detailed in [3]</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
5. What is the required data format for the datasource driver api? The inline comments give some brief description but didn't specify the api signature.<br>
Many thanks.<br>
</blockquote>
</div>
</div>
</div>
</blockquote>
</span>
<div>[Ifat]: This should be part of the datasource documentation that we need to add. But basically, the driver should return a dictionary with few predefined fields (like datasource type, timestamp), and add whatever data is needed for the datasource. Then,
 the datasource transformer will transform this data into a vertex and decide where to connect it to the graph.</div>
<div><br>
</div>
<div><br>
</div>
<div>[1] <a href="https://gerrit.opnfv.org/gerrit/12179">https://gerrit.opnfv.org/gerrit/12179</a> </div>
<div>[2] <a href="https://wiki.openstack.org/wiki/Vitrage">https://wiki.openstack.org/wiki/Vitrage</a></div>
<div><u>[3] </u><a href="https://github.com/openstack/vitrage/blob/master/doc/source/resource-state-config.rst">https://github.com/openstack/vitrage/blob/master/doc/source/resource-state-config.rst</a></div>
<div><br>
</div>
<div>
<div><br>
</div>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div>
<div>
<div class="gmail_quote">
<div><br>
</div>
</div>
</div>
</div>
</span>
</body>
</html>