Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Implement a landing page #69

Closed
ashleyprimo opened this issue Oct 23, 2019 · 3 comments
Closed

Feature Request: Implement a landing page #69

ashleyprimo opened this issue Oct 23, 2019 · 3 comments
Labels
hacktoberfest help wanted Extra attention is needed

Comments

@ashleyprimo
Copy link
Contributor

Currently, if you visit the exporter on http://localhost:9002/ you get a 404 error, which is not an issue per se, however, would be nice to have a simple landing page which just explains what the exporter is- similar to various others such as node exporter.

This could be done using something such as:

	http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
		w.Write([]byte(`<html>
			<head>
				<title>HACluster Exporter</title>
			</head>
			<body>
				<h1>HACluster Exporter</h1>
				<p><a href="/metrics">Metrics</a></p>
                                <br />
				<h2>More information:</h2>
				<p><a href="https://github.com/ClusterLabs/ha_cluster_exporter">github.com/ClusterLabs/ha_cluster_exporter</a></p>
			</body>
			</html>`))
	})

@MalloZup
Copy link
Contributor

I'm ok to mimic it thx for issue ! @stefanotorresi opinions?

@MalloZup MalloZup added hacktoberfest help wanted Extra attention is needed labels Oct 23, 2019
@stefanotorresi
Copy link
Member

@ashleyprimo I would welcome this change! Feel free to submit a PR!

This was referenced Oct 23, 2019
@MalloZup
Copy link
Contributor

done thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants