Prometheus: Up & Running: Infrastructure and Application Performance Monitoring by Brian Brazil
Author:Brian Brazil [Brazil, Brian]
Language: eng
Format: epub
Publisher: O'Reilly Media
Published: 2018-07-08T23:00:00+00:00
Finally, the custom collector object is instantiated and registered with the default registry, in the same way you would one of the direct instrumentation metrics:
c := ConsulCollector{} prometheus.MustRegister(c)
Exposition is performed in the usual way, which you already saw in “Go”:
http.Handle("/metrics", promhttp.Handler()) log.Fatal(http.ListenAndServe(":8000", nil))
This is, of course, a simplified example. In reality you would have some way to configure the Consul server to talk to, such as a command-line flag, rather than depending on the client’s default. You would also reuse the client between scrapes, and allow the various authentication options of the client to be specified.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7778)
Grails in Action by Glen Smith Peter Ledbrook(7696)
Configuring Windows Server Hybrid Advanced Services Exam Ref AZ-801 by Chris Gill(6553)
Azure Containers Explained by Wesley Haakman & Richard Hooper(6540)
Running Windows Containers on AWS by Marcio Morales(6069)
Kotlin in Action by Dmitry Jemerov(5063)
Microsoft 365 Identity and Services Exam Guide MS-100 by Aaron Guilmette(4910)
Combating Crime on the Dark Web by Nearchos Nearchou(4491)
Management Strategies for the Cloud Revolution: How Cloud Computing Is Transforming Business and Why You Can't Afford to Be Left Behind by Charles Babcock(4414)
Microsoft Cybersecurity Architect Exam Ref SC-100 by Dwayne Natwick(4325)
The Ruby Workshop by Akshat Paul Peter Philips Dániel Szabó and Cheyne Wallace(4164)
The Age of Surveillance Capitalism by Shoshana Zuboff(3948)
Python for Security and Networking - Third Edition by José Manuel Ortega(3731)
Learn Windows PowerShell in a Month of Lunches by Don Jones(3508)
The Ultimate Docker Container Book by Schenker Gabriel N.;(3402)
Mastering Python for Networking and Security by José Manuel Ortega(3344)
Mastering Azure Security by Mustafa Toroman and Tom Janetscheck(3330)
Blockchain Basics by Daniel Drescher(3292)
Learn Wireshark by Lisa Bock(3249)
