-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
1,258 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { RequestHandler } from 'express'; | ||
import { HttpStatusCode } from '../../../Common/src/types/HTTPTypes'; | ||
import logger from '../logger'; | ||
|
||
const MetricsController: RequestHandler = async (req, res) => { | ||
try { | ||
logger.trace(`Metrics: NONE`); | ||
|
||
return res.send(`# No metrics available.`); | ||
|
||
} catch (err: any) { | ||
logger.error(err); | ||
|
||
// Unknown error | ||
return res.sendStatus(HttpStatusCode.INTERNAL_SERVER_ERROR); | ||
} | ||
} | ||
|
||
export default MetricsController; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { RequestHandler } from 'express'; | ||
import { HttpStatusCode } from '../../../Common/src/types/HTTPTypes'; | ||
import logger from '../logger'; | ||
|
||
const MetricsController: RequestHandler = async (req, res) => { | ||
try { | ||
logger.trace(`Metrics: NONE`); | ||
|
||
return res.send(`# No metrics available.`); | ||
|
||
} catch (err: any) { | ||
logger.error(err); | ||
|
||
// Unknown error | ||
return res.sendStatus(HttpStatusCode.INTERNAL_SERVER_ERROR); | ||
} | ||
} | ||
|
||
export default MetricsController; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Use latest Grafana image | ||
FROM grafana/grafana | ||
|
||
# Copy configuration file over to image | ||
COPY ./Grafana/grafana.ini /etc/grafana/ | ||
|
||
# Expose necessary port to talk with service | ||
EXPOSE 3000 |
Oops, something went wrong.