Uh oh!
There was an error while loading. Please reload this page.
Add prometheus dataset support - #265
Conversation
4e1c11a to
87f775dCompare| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| # ============================================================================== | ||
| """PrometheusInput.""" |
| """Create a Prometheus Reader. | ||
| Args: | ||
| filename: A `tf.string` tensor containing one or more filenames. |
There was a problem hiding this comment.
Missing docs for the other args
| import tensorflow_io.prometheus as prometheus_io # pylint: disable=wrong-import-position | ||
| if sys.platform == "darwin": | ||
| pytest.skip("pubsub is not supported on macOS yet", allow_module_level=True) |
There was a problem hiding this comment.
Remove unnecessary pubsub reference here
| # License for the specific language governing permissions and limitations under | ||
| # the License. | ||
| # ============================================================================== | ||
| """Tests for Prometheus Input.""" |
| output_types=self.output_types, | ||
| output_shapes=self.output_shapes) | ||
| @property |
There was a problem hiding this comment.
Should we implement all future datasets based on 2.0 tf.data.Dataset?
e0d858e to
50a5d9eComparef24c187 to
d5aac20CompareThis fix adds prometheus dataset support, with prometheus library in golang. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
yongtang
commented
Jun 17, 2019
@BryanCutler@terrytangyuan The PR has been updated and now all tests passed. There are several motivations to have a prometheus as data input.
The test case is wired up with CoreDNS as a example server with Prometheus scraping the metrics from CoreDNS. tensorflow-io connects to Prometheus' endpoint to get metrics and delivers as tf.data pipeline. Should be possible to work with tf.keras directly for training or inference. Also cc @ihac in case you are interested in Prometheus+CoreDNS. |
This fix adds prometheus dataset support, with prometheus library in golang. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This fix adds prometheus dataset support, with prometheus library in golang.
This fix fixes#246.
Signed-off-by: Yong Tang yong.tang.github@outlook.com