Add service label

This commit is contained in:
Jackson Harper
2024-02-10 17:21:28 +08:00
parent 5c29a6c185
commit a52e8f7295

View File

@ -154,8 +154,7 @@ export const createApp = (): {
includeStatusCode: true,
includeUp: true,
customLabels: {
project_name: 'hello_world',
project_type: 'test_metrics_labels',
service: 'api',
},
promClient: {
collectDefaultMetrics: {},
@ -173,6 +172,9 @@ export const createApp = (): {
app,
hostnameLabel: false,
defaultMetrics: false,
defaultLabels: {
service: 'api',
},
})
const apollo = makeApolloServer(promExporter)
const httpServer = createServer(app)